diff --git a/index b/index index 8b8c0dee951..9f134a9668d 100644 --- a/index +++ b/index @@ -26792,8 +26792,42 @@ function AddCloud(data, x, y) { ... }

... -

4.9.5 The label - element

+

4.9.5 The label element

+ +
+
Categories + +
Phrasing content. + +
Interactive content. + +
Contexts in which this element may be used: + +
Where phrasing content is expected. + +
Content model: + +
Phrasing content. + +
Element-specific attributes: + +
form + +
for + +
DOM interface: + +
+
interface HTMLLabelElement : HTMLElement {
+  readonly attribute HTMLFormElement form;
+           attribute DOMString htmlFor;
+  readonly attribute HTMLElement control;
+};
+
+ +

...

4.9.6 The select element

@@ -29900,7 +29934,7 @@ XXX selection ranges -->
type -
label +
label
icon @@ -29926,7 +29960,7 @@ XXX selection ranges -->
interface HTMLCommandElement : HTMLElement {
            attribute DOMString type;
-           attribute DOMString label;
+           attribute DOMString label;
            attribute DOMString icon;
            attribute boolean disabled;
            attribute boolean checked;
@@ -29953,7 +29987,7 @@ XXX selection ranges -->
    may also be omitted if the element is to represent the first of these
    types, a simple command.
 
-  

The label +

The label attribute gives the name of the command, as shown to the user.

The title @@ -30011,7 +30045,7 @@ XXX selection ranges -->

The type, label, label, icon, disabled, checked,

type -
label +
label
DOM interface: @@ -30318,7 +30352,7 @@ menu li:not(:first-child)::before { content: ' | '; }
interface HTMLMenuElement : HTMLElement {
            attribute DOMString type;
-           attribute DOMString label;
+           attribute DOMString label;
 };
@@ -30360,14 +30394,14 @@ menu li:not(:first-child)::before { content: ' | '; } href="#li">li element children, flow content describing available commands. -

The label +

The label attribute gives the label of the menu. It is used by user agents to display nested menus in the UI. For example, a context menu containing another menu would use the nested menu's label attribute for the submenu's menu label. + href="#label2">label attribute for the submenu's menu label.

The type and label DOM attributes + id=label3 title=dom-menu-label>label DOM attributes must reflect the content attributes of the same name. @@ -30523,7 +30557,7 @@ menu li:not(:first-child)::before { content: ' | '; } element.

A menu element with no label attribute + title=attr-menu-label>label attribute
A select element @@ -30532,7 +30566,7 @@ menu li:not(:first-child)::before { content: ' | '; } then append another separator.
A menu element with a label attribute + title=attr-menu-label>label attribute
An optgroup element @@ -30546,14 +30580,15 @@ menu li:not(:first-child)::before { content: ' | '; }
Ignore the node. -

We should support label in the algorithm above - -- just iterate through the contents like with li, to support input elements in label elements. - Also, optgroup elements without labels should be ignored - (maybe? or at least should say they have no label so that they are dropped - below), and select elements inside label - elements may need special processing. +

We should support label in + the algorithm above -- just iterate through the contents like with + li, to support input elements in label elements. Also, optgroup + elements without labels should be ignored (maybe? or at least should say + they have no label so that they are dropped below), and + select elements inside label elements may need special processing.

Once all the nodes have been processed as described above, the user agent must the post-process the menu as follows: @@ -30684,7 +30719,7 @@ menu li:not(:first-child)::before { content: ' | '; } or from script. If a command has no ID, it is an anonymous command. -

Label +
Label
The name of the command as seen by the user. @@ -30742,7 +30777,7 @@ menu li:not(:first-child)::before { content: ' | '; } --> readonly attribute DOMString commandType; readonly attribute DOMString id; - readonly attribute DOMString label; + readonly attribute DOMString label; readonly attribute DOMString title; readonly attribute DOMString icon; readonly attribute boolean hidden; @@ -30780,10 +30815,10 @@ menu li:not(:first-child)::before { content: ' | '; } by the id DOM attribute on the HTMLElement interface. -

The label - attribute must return the command's The label + attribute must return the command's Label, or null if the element does not - define a command or does not specify a Label. This attribute will be shadowed by the label DOM attribute on option and command elements. @@ -30883,7 +30918,7 @@ menu li:not(:first-child)::before { content: ' | '; } the element, if the attribute is present and not empty. Otherwise the command is an anonymous command. -

The Label of the command +

The Label of the command is the string given by the element's textContent DOM attribute. @@ -30925,7 +30960,7 @@ menu li:not(:first-child)::before { content: ' | '; } href="#command1" title=concept-command>defines a command.

The Type, ID, ID, Label, Hint, Icon, the element, if the attribute is present and not empty. Otherwise the command is an anonymous command. -

The Label of the command +

The Label of the command depends on the Type of the command:

If the Type is "command", @@ -30974,14 +31009,14 @@ menu li:not(:first-child)::before { content: ' | '; } the button itself if the attribute is absent.

Otherwise, the Type is - "radio" or "checkbox". If the element has a label element - associated with it, the label element associated with it, the textContent of the first such element is - the Label (in DOM terms, + the Label (in DOM terms, this the string given by element.labels[0].textContent). Otherwise, the value - of the value attribute, if present, is the Label. Otherwise, the value attribute, if present, is the Label. Otherwise, the Label is the empty string.

The Hint of the command is @@ -31039,7 +31074,7 @@ menu li:not(:first-child)::before { content: ' | '; } the element, if the attribute is present and not empty. Otherwise the command is an anonymous command. -

The Label of the command +

The Label of the command is the value of the option element's label attribute, if there is one, or the value of the option element's the element, if the attribute is present and not empty. Otherwise the command is an anonymous command. -

The Label of the command +

The Label of the command is the value of the element's label attribute, if there is one, or the empty + href="#label0">label attribute, if there is one, or the empty string if it doesn't.

The Hint of the command is @@ -31154,7 +31189,7 @@ menu li:not(:first-child)::before { content: ' | '; } the element, if the attribute is present and not empty. Otherwise the command is an anonymous command. -

The Label of the command +

The Label of the command is the string given by the element's textContent DOM attribute, if that is not the empty string, or a user-agent-defined string appropriate for the @@ -50859,8 +50894,8 @@ interface MessageChannel {

A start tag whose tag name is one of: "address", "article", "aside", "blockquote", "center", "datagrid", "details", "dialog", "dir", "div", - "dl", "fieldset", "figure", "footer", "h1", "h2", "h3", "h4", "h5", "h6", - "header", "menu", "nav", "ol", "p", "section", "ul" + "dl", "figure", "footer", "h1", "h2", "h3", "h4", "h5", "h6", "header", + "menu", "nav", "ol", "p", "section", "ul"
+ +
A start tag whose tag name is "fieldset" + +
+

If the stack of open elements has a p element in + scope, then act as if an end tag with the tag name "p" had been + seen.

+ +

Insert an HTML element for the token.

+ +

If the form element + pointer is not null, then associate + the newly created fieldset element + with the form element pointed to by the + form element pointer.

+
A start tag whose tag name is "li" @@ -51583,6 +51636,20 @@ interface MessageChannel { the form element pointed to by the form element pointer.

+
A start tag whose tag name is "input" + +
+

Reconstruct the active formatting elements, + if any.

+ +

Insert an HTML element for the token.

+ +

If the form element + pointer is not null, then associate + the newly created label element with + the form element pointed to by the form element pointer.

+
A start tag whose tag name is "isindex"
diff --git a/source b/source index fb2aba199da..ec44deb3826 100644 --- a/source +++ b/source @@ -24102,7 +24102,31 @@ function AddCloud(data, x, y) { ... }

...

-

The label element

+

The label element

+ +
+
Categories
+
Phrasing content.
+
Interactive content.
+
Contexts in which this element may be used:
+
Where phrasing content is expected.
+
Content model:
+
Phrasing content.
+
Element-specific attributes:
+
form
+
for
+
DOM interface:
+
+
interface HTMLLabelElement : HTMLElement {
+  readonly attribute HTMLFormElement form;
+           attribute DOMString htmlFor;
+  readonly attribute HTMLElement control;
+};
+
+
+ +

...

+

The select element

@@ -47589,9 +47613,9 @@ interface MessageChannel {
A start tag whose tag name is one of: "address", "article", "aside", "blockquote", "center", "datagrid", "details", "dialog", - "dir", "div", "dl", "fieldset", "figure", "footer", "h1", "h2", - "h3", "h4", "h5", "h6", "header", "menu", "nav", "ol", "p", - "section", "ul"
+ "dir", "div", "dl", "figure", "footer", "h1", "h2", "h3", "h4", + "h5", "h6", "header", "menu", "nav", "ol", "p", "section", + "ul"
+
A start tag whose tag name is "fieldset"
+
+ +

If the stack of open elements has a p element in + scope, then act as if an end tag with the tag name + "p" had been seen.

+ +

Insert an HTML element for the token.

+ +

If the form element pointer + is not null, then associate the + newly created fieldset element with the + form element pointed to by the form element pointer.

+ +
+
A start tag whose tag name is "li"
@@ -48353,6 +48396,22 @@ interface MessageChannel {
+
A start tag whose tag name is "input"
+
+ +

Reconstruct the active formatting elements, if + any.

+ +

Insert an HTML element for the token.

+ +

If the form element pointer + is not null, then associate the + newly created label element with the + form element pointed to by the form element pointer.

+ +
+
A start tag whose tag name is "isindex"