Closed Bug 1121475 Opened 8 years ago Closed 8 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)

x86
macOS
defect
Not set
normal

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)
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)
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)
The answer to the question posed in the summary is basically "historical reasons". We should update things to the current spec.
Flags: needinfo?(hsivonen)
Depends on: 1121473
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #8552595 - Flags: review?(bugs) → review+
Flags: in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/5c148656f69d
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.