getAnonymousNodes() doesn't take care about child added with DOM appendChild

RESOLVED INVALID

Status

()

Core
XBL
RESOLVED INVALID
17 years ago
17 years ago

People

(Reporter: David Olivari, Assigned: David Hyatt)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
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

17 years ago
those elements are explicitly in the DOM, and appending with the DOM is still
explicit. 
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.