Closed
Bug 335649
Opened 18 years ago
Closed 18 years ago
"Show anonymous content" hides dynamically created child nodes
Categories
(Other Applications :: DOM Inspector, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mnyromyr, Unassigned)
Details
Attachments
(1 file)
264 bytes,
application/vnd.mozilla.xul+xml
|
Details |
Given a XUL element with an XBL binding without a <children> tag in its <content>, eg. a checkbox, and some JS-generated child nodes to that element, DOMI with "show anonymous content" turned on will only show the anonymous content in its DOM tree, but not the dynamic children. Turning "show anonymous content" off will show the generated elements, but, of course, not the anonymous content... This is quite surprising behaviour, as one expects to see all nodes in that case. (Especially since the generated elements are accessible as usual via the Javascript panel.)
Reporter | ||
Comment 1•18 years ago
|
||
UL testcase with a checkbox getting a JS-generated child node.
Reporter | ||
Comment 2•18 years ago
|
||
BTW: the code in question starts at <http://lxr.mozilla.org/mozilla/source/extensions/inspector/base/src/inDOMView.cpp#1143>
Comment 3•18 years ago
|
||
We just show what the core stuff reports to us. If you have a problem with the way XBL handles document mutations, that's a different issue, but there are already lots of bugs on that. [Note that if you start off with the <createdElement> as a child of the textbox, the rendering is different than if you append it dynamically; that's XBL screwing up for you.]
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 4•18 years ago
|
||
Boris, I disagree: > We just show what the core stuff reports to us. > If you have a problem with the way XBL handles document mutations, > that's a different issue, but there are already lots of bugs on that. XBL is not the problem here. The XBL shall not include child nodes and so it does. That's perfectly okay here. The thing is that DOMI's menu item "Show anonymous content" doesn't really imply that it actually does mean "Show *only* the content that's part of the anonymous content structure, and nothing else". This created element is part of the DOM and it should be possible in DOMI to see both at once, imo. > [Note that if you start off with the <createdElement> as a child of the > textbox, the rendering is different than if you append it dynamically; > that's XBL screwing up for you.] Yeah, I know. So your answer is essentially "don't fix DOMI because XBL is broken"?
Comment 5•18 years ago
|
||
> XBL is not the problem here. Trust me. It is. ;) > The XBL shall not include child nodes Actually, no. In this case XBL should show the child node and not the anonymous content from the binding. > doesn't really imply that it actually does mean It means "show whatever content Gecko tells us about". In this case, Gecko is lying. My answer is "fix XBL and this will just work; there's no way to fix this without fixing XBL".
Updated•17 years ago
|
Assignee: dom-inspector → nobody
QA Contact: timeless → dom-inspector
You need to log in
before you can comment on or make changes to this bug.
Description
•