diff --git a/source b/source index 7408cde5fec..3dca0b81ff5 100644 --- a/source +++ b/source @@ -56578,7 +56578,7 @@ fur
menu element whose type attribute is in the popup menu state.typeA menuitem element that uses one or more of the
type,
- label,
icon,
disabled,
checked, and
radiogroup
- attributes defines a new command.
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.
<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, wbrmeta, param, source, track,
+ wbr
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.
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);
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.
Stop parsing.
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);
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.
+ +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);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.
+ +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?')) {
menu;
templatetype;
label;