Closed
Bug 139186
Opened 24 years ago
Closed 22 years ago
empty element gives garbage in DOM
Categories
(Core :: XBL, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: oct, Assigned: hyatt)
Details
Attachments
(1 file)
|
2.78 KB,
application/zip
|
Details |
Using empty xbl elements inside xul and closing them in the same element breaks
the dom:
<xblent /><xblent />
gives
<xblent>
|-<xblent>
in the DOM.
| Reporter | ||
Comment 1•24 years ago
|
||
Uses XBL and a chrome package. Please read the readme.
Updated•24 years ago
|
Summary: emtpy element gives garbage in DOM → empty element gives garbage in DOM
Updated•24 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•24 years ago
|
||
Pierre, are you saying that when you create an empty element in the form of
<element />, that it isn't closed, and everything following that is put inside
the element? That's what I'm seeing in regular HTML and XHTML, but your
testcase showed no problem. Perhaps it's working for chrome again.
My problem: <div /><div />
The second div is nested inside the first. It should be a sibling, not a child.
Comment 3•24 years ago
|
||
Anything sent as text/html is treated as HTML, so <foo/> is treated as a badly
written <foo> start tag.
Since XBL doesn't work at all sent as text/html, I'm guessing this is not what
you are seeing here, though.
Comment 4•24 years ago
|
||
That's new. It used to handle those in regular HTML. I've verified that in
documents sent as XHTML, it is handled, so my only remaining question is should
documents sent as text/html but with an XHTML DOCTYPE be allowed to use <foo/>?
Comment 5•24 years ago
|
||
According to the XHTML spec, the answer is that XHTML documents sent as
text/html should never have the <foo /> form, so the answer is no.
Updated•22 years ago
|
Attachment #80373 -
Attachment mime type: application/x-tar → application/zip
Comment 6•22 years ago
|
||
Marking worksforme, since it does. If this is still a problem please reopen...
(and if so, a testcase that can be run directly from bugzilla would be most
helpful).
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•