Closed Bug 139186 Opened 24 years ago Closed 22 years ago

empty element gives garbage in DOM

Categories

(Core :: XBL, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: oct, Assigned: hyatt)

Details

Attachments

(1 file)

Using empty xbl elements inside xul and closing them in the same element breaks the dom: <xblent /><xblent /> gives <xblent> |-<xblent> in the DOM.
Uses XBL and a chrome package. Please read the readme.
Summary: emtpy element gives garbage in DOM → empty element gives garbage in DOM
Status: UNCONFIRMED → NEW
Ever confirmed: true
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.
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.
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/>?
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.
Attachment #80373 - Attachment mime type: application/x-tar → application/zip
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.

Attachment

General

Creator:
Created:
Updated:
Size: