diff --git a/source b/source index 7408cde5fec..3dca0b81ff5 100644 --- a/source +++ b/source @@ -56578,7 +56578,7 @@ fur
Contexts in which this element can be used:
As a child of a menu element whose type attribute is in the popup menu state.
Content model:
-
Nothing.
+
Text.
Content attributes:
Global attributes
type
@@ -56609,12 +56609,12 @@ fur

A menuitem element that uses one or more of the type, - label, icon, disabled, checked, and radiogroup - attributes defines a new command.

+ attributes, or has a non-empty label, defines a new + command.


@@ -56649,10 +56649,16 @@ fur

The label attribute gives the name of the - command, as shown to the user. The label attribute must - be specified if the element is in the explicit command mode. If the attribute is + command, as shown to the user. If the label attribute is specified, it must have a value that is not the empty string.

+

The label of a menuitem element is the + value of the label content attribute, if there is one + and its value is not the empty string, or, otherwise, the result of stripping and collapsing + whitespace from the child text content of the menuitem element. + The label must not be the empty string if the element + is in the explicit command mode.

+

The icon attribute gives a picture that represents the command. If the attribute is specified, the attribute's value must contain a valid non-empty URL potentially surrounded by spaces. To obtain @@ -56707,8 +56713,18 @@ fur reflect the content attribute of the same name, limited to only known values.

-

The label, icon, disabled, checked, and radiogroup, and default IDL attributes must reflect - the respective content attributes of the same name.

+

The label IDL attribute, on getting, if + there is a label content attribute, must return that + attribute's value; otherwise, it must return the element's label. On setting, the element's label content attribute must be set to the new value.

+ +

The icon, disabled, checked, and radiogroup, and default IDL attributes must reflect the + respective content attributes of the same name.


@@ -56804,8 +56820,10 @@ fur
<form name="npc">
  <label>Character name: <input name=char type=text contextmenu=namemenu required></label>
  <menu type=context id=namemenu>
-  <menuitem label="Pick random name" onclick="document.forms.npc.elements.char.value = getRandomName()">
-  <menuitem label="Prefill other fields based on name" onclick="prefillFields(document.forms.npc.elements.char.value)">
+  <menuitem onclick="document.forms.npc.elements.char.value = getRandomName()">
+   Pick random name
+  <menuitem onclick="prefillFields(document.forms.npc.elements.char.value)">
+   Prefill other fields based on name
  </menu>
 </form>
@@ -57161,9 +57179,8 @@ dictionary RelatedEventInit : EventInit {

A menuitem element always defines a command.

-

The Label of the command is the value of the element's - label attribute, if there is one, or the empty string if - it doesn't.

+

The Label of the command is the element's label.

The AccessKey of the command is the element's assigned access key, if any.

@@ -96578,8 +96595,8 @@ dictionary StorageEventInit : EventInit {
area, base, br, col, embed, hr, img, input, keygen, link, - menuitem, meta, param, source, - track, wbr
+ meta, param, source, track, + wbr
Raw text elements
@@ -97153,6 +97170,12 @@ dictionary StorageEventInit : EventInit { if it is immediately followed by an optgroup element, or if there is no more content in the parent element.

+ +

A menuitem element's end tag may be omitted + if the menuitem element is immediately followed by a menuitem, + hr, or menu element, or if there is no more content in the parent + element.

+

A colgroup element's start tag may be omitted if the first thing inside the colgroup element is a col element, @@ -98901,12 +98924,13 @@ dictionary StorageEventInit : EventInit { style, summary, table, tbody, td, template, textarea, tfoot, th, thead, title, tr, track, - ul, wbr, and xmp; MathML mi, - MathML mo, MathML mn, MathML - ms, MathML mtext, and MathML - annotation-xml; and SVG foreignObject, SVG - desc, and SVG title.

- + ul, wbr, and xmp; MathML's mi, mo, mn, + ms, mtext, and annotation-xml; and SVG's foreignObject, desc, and title.

Formatting

The following HTML elements are those that end up in the list of active formatting @@ -101876,10 +101900,10 @@ document.body.appendChild(text);

When the steps below require the UA to generate implied end tags, then, while the current node is a dd element, a dt element, an - li element, an optgroup element, an option element, a - p element, an rb element, an rp element, an rt - element, or an rtc element, the UA must pop the current node off the - stack of open elements.

+ li element, a menuitem element, an optgroup element, an + option element, a p element, an rb element, an + rp element, an rt element, or an rtc element, the UA must + pop the current node off the stack of open elements.

If a step requires the UA to generate implied end tags but lists an element to exclude from the process, then the UA must perform the above steps as if that element was not in the above @@ -102820,13 +102844,14 @@ document.body.appendChild(text);

  1. If there is a node in the stack of open elements that is not either a - dd element, a dt element, an li element, an - optgroup element, an option element, a p element, an - rb element, an rp element, an rt element, an - rtc element, a tbody element, a td element, a - tfoot element, a th element, a thead element, a - tr element, the body element, or the html element, then - this is a parse error.

  2. + dd element, a dt element, an li element, a + menuitem element, an optgroup element, an option + element, a p element, an rb element, an rp element, an + rt element, an rtc element, a tbody element, a + td element, a tfoot element, a th element, a + thead element, a tr element, the body element, or the + html element, then this is a parse error.

  3. Stop parsing.

  4. @@ -102844,15 +102869,15 @@ document.body.appendChild(text);

    Otherwise, if there is a node in the stack of open elements that is not either a - dd element, a dt element, an li element, an - optgroup element, an option element, a p element, an - rb element, an rp element, an rt element, an - rtc element, a tbody element, a td element, a - tfoot element, a th element, a thead element, a - tr element, the body element, or the html element, then - this is a parse error.

    + dd element, a dt element, an li element, a + menuitem element, an optgroup element, an option element, + a p element, an rb element, an rp element, an + rt element, an rtc element, a tbody element, a + td element, a tfoot element, a th element, a + thead element, a tr element, the body element, or the + html element, then this is a parse error.

    @@ -102873,15 +102898,15 @@ document.body.appendChild(text);

    Otherwise, if there is a node in the stack of open elements that is not either a - dd element, a dt element, an li element, an - optgroup element, an option element, a p element, an - rb element, an rp element, an rt element, an - rtc element, a tbody element, a td element, a - tfoot element, a th element, a thead element, a - tr element, the body element, or the html element, then - this is a parse error.

    + dd element, a dt element, an li element, a + menuitem element, an optgroup element, an option element, + a p element, an rb element, an rp element, an + rt element, an rtc element, a tbody element, a + td element, a tfoot element, a th element, a + thead element, a tr element, the body element, or the + html element, then this is a parse error.

    @@ -102899,7 +102924,7 @@ document.body.appendChild(text);
    A start tag whose tag name is one of: "address", "article", "aside", "blockquote", "center", "details", "dialog", "dir", "div", "dl", "fieldset", "figcaption", "figure", "footer", "header", - "hgroup", "main", "menu", "nav", "ol", "p", "section", "summary", "ul"
    + "hgroup", "main", "nav", "ol", "p", "section", "summary", "ul"
    +
    A start tag whose tag name is "menu"
    +
    + +

    If the stack of open elements has a + p element in button scope, then close a p + element.

    + + +

    If the current node is a menuitem element, pop that node from the + stack of open elements.

    + + +

    Insert an HTML element for the token.

    + +
    +
    A start tag whose tag name is one of: "h1", "h2", "h3", "h4", "h5", "h6"
    @@ -103167,7 +103209,7 @@ document.body.appendChild(text); - +
    An end tag whose tag name is one of: "address", "article", "aside", "blockquote", "button", "center", "details", "dialog", "dir", "div", "dl", "fieldset", "figcaption", "figure", "footer", "header", "hgroup", "listing", "main", "menu", "nav", "ol", "pre", "section", "summary", @@ -103520,7 +103562,7 @@ document.body.appendChild(text);
-
A start tag whose tag name is one of: "menuitem", "param", "source", "track"
+
A start tag whose tag name is one of: "param", "source", "track"

Insert an HTML element for the token. Immediately pop the current @@ -103538,6 +103580,11 @@ document.body.appendChild(text); p element in button scope, then close a p element.

+ +

If the current node is a menuitem element, pop that node from the + stack of open elements.

+ +

Insert an HTML element for the token. Immediately pop the current node off the stack of open elements.

@@ -103727,6 +103774,16 @@ document.body.appendChild(text);
+
A start tag whose tag name is "menuitem"
+
+ +

If the current node is a menuitem element, then pop the + current node off the stack of open elements.

+ +

Insert an HTML element for the token.

+ +
+
A start tag whose tag name is one of: "rb", "rtc"
@@ -103803,9 +103860,9 @@ document.body.appendChild(text);
A start tag whose tag name is one of: "caption", "col", "colgroup", "frame", "head", "tbody", "td", "tfoot", "th", "thead", "tr"
+ "hr", "iframe", "image", "img", "input", "isindex", "keygen", "link", "meta", "noembed", + "noframes", "param", "script", "select", "source", "style", "table", "textarea", "title", + "track", "wbr"-->
@@ -106535,9 +106592,9 @@ document.body.appendChild(text);

If current node is an area, base, basefont, bgsound, br, col, embed, frame, hr, img, - input, keygen, link, menuitem, - meta, param, source, track or - wbr element, then continue on to the next child node at this point.

+ input, keygen, link, meta, + param, source, track or wbr element, + then continue on to the next child node at this point.

@@ -113161,7 +113218,7 @@ if (s = prompt('What is your name?')) { none menu; template - empty + text* globals; type; label;