Closed
Bug 265087
Opened 20 years ago
Closed 20 years ago
GetOwnerDocument is broken in XUL
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 198533
People
(Reporter: bzbarsky, Unassigned)
References
Details
The problem is that a slotless XUL element not in a document will defer to the
prototype (if there is one) for the nodeinfo. So GetOwnerDoc() will return the
prototype document, not the actual XUL document.
Now this situation doesn't arise much, currently, since creation of elements off
prototypes always sets mDocument. But that's a bug in some cases (eg CloneNode()).
So we really need to fix this to allow us to fix bug 53901 (and bug 226620).
Comment 1•20 years ago
|
||
See also the slightly related bug 255077.
Reporter | ||
Comment 2•20 years ago
|
||
Fixed by bug 198533, looks like.
smaug, please reopen if I'm wrong?
Updated•14 years ago
|
Resolution: FIXED → DUPLICATE
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•