Closed
Bug 100569
Opened 23 years ago
Closed 23 years ago
getAnonymousNodes() doesn't take care about child added with DOM appendChild
Categories
(Core :: XBL, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: dolivari, Assigned: hyatt)
Details
I defined a XBL with two new tag : - mymenu - mymenuitem I make xul file with : <mymenu id="amenu"> <mymenuitem value='item 1'/> <mymenuitem value='item 2'/> <mymenuitem value='item 3'/></mymenu> in Javascript : document.getAnonymousNodes(document.getElementById("amenu")).length return -> 3 if I append some child with DOM method : aNew = document.createElement("mymenuitem"); aNew.setAttribute("value","item 4"); document.getElementById("amenu").appendChild(aNew); then I can see the new item on the the but : document.getAnonymousNodes(document.getElementById("amenu")).length still return -> 3
Comment 1•23 years ago
|
||
those elements are explicitly in the DOM, and appending with the DOM is still explicit.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•