Closed Bug 265087 Opened 20 years ago Closed 20 years ago

GetOwnerDocument is broken in XUL

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

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).
See also the slightly related bug 255077.
Depends on: 255077
Fixed by bug 198533, looks like. smaug, please reopen if I'm wrong?
Status: NEW → RESOLVED
Closed: 20 years ago
Depends on: 198533
Resolution: --- → FIXED
Resolution: FIXED → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.