Closed
Bug 1121475
Opened 11 years ago
Closed 11 years ago
Why is <command> treated as a void HTML element by IsVoidTag/IsHTMLVoid and in the sanitizer whitelist?
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
I see no such element in the HTML spec...
Flags: needinfo?(hsivonen)
Comment 1•11 years ago
|
||
Hmm, wasn't <command> part of the <menu> mess.
The spec used to have something odd, we implemented something simpler and IMO saner, and yet the
spec ended up looking still something different. But <command> got removed somewhere in the process.
But <command> is now gone, AFAIK.
Flags: needinfo?(Jan.Varga)
Comment 2•11 years ago
|
||
We have <menuitem> which is similar and void too. Hixie didn't like it originally, but after several years he updated the spec to be closer to implementation in Firefox. IIRC, he removed <command> and introduced <menuitem> in the spec.
Flags: needinfo?(Jan.Varga)
Comment 3•11 years ago
|
||
The answer to the question posed in the summary is basically "historical reasons". We should update things to the current spec.
Flags: needinfo?(hsivonen)
| Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8552595 -
Flags: review?(bugs)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Updated•11 years ago
|
Attachment #8552595 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 5•11 years ago
|
||
Target Milestone: --- → mozilla38
| Assignee | ||
Updated•11 years ago
|
Flags: in-testsuite+
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•