Closed Bug 891005 Opened 12 years ago Closed 12 years ago

<menuitem> tag not autoclosing

Categories

(Core :: DOM: HTML Parser, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 676236

People

(Reporter: zpao, Unassigned)

Details

According to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menuitem and http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-menuitem-element, <menuitem> is supposed to be used without the close tag (no </menuitem>). However when used that way, the resulting DOM actually adds sibling menuitems as children. STR: data:text/html,<button contextmenu="menu">menu</button><menu id="menu" type="context"><menuitem label="one"><menuitem label="two"></menu> That DOM should have the 2 menuitems as siblings and both appear in the context menu. When you inspect the DOM can see this: <button contextmenu="menu">menu</button> <menu id="menu" type="context"> <menuitem label="one"> <menuitem label="two"></menuitem> </menuitem> </menu>
Will be fixed in Bug 676236.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.