TreeWalker does not traverse – Douglas Jan 28 '14 at 10:45

  • 1
    ` – Aaron Digulla Jan 28 '14 at 10:48
  • 1
    True, but fact remains that all iframes are strictly isolated from the rest of the page, for security reasons – Joeytje50 Jan 28 '14 at 10:48
  • 1 Answers1

    0

    Maybe you use this for your iframes or similar

    window.frames[0].document.createTreeWalker(
            window.frames[0].document.body
    

    for the creation tree, with iframe.

    like this

     var treeWalker =  window.frames[0].document.createTreeWalker(
        window.frames[0].document.body,
        NodeFilter.SHOW_ALL,
        { acceptNode: acceptTextNode });
    

    In the iframes.