Hi,

I have problems going through the HTML DOM node tree from a user
script (or context script):

        var d = document.createElement('div');

        var varRoot = document.childNodes[0];
        var varBody = varRoot.childNodes[1];
        var name = varBody;

        d.innerHTML = name;
        document.body.appendChild(d);

which returns "undefined"

I understand from Aaron's previous posting that this might be caused
by the fact that the default content scripts run in DOMContentLoaded
event.
What can I do to access the whole DOM object hierarchy of the page? I
already use @run-at document-end.

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to