diff --git a/source b/source index dce024a305f..bc570e86e80 100644 --- a/source +++ b/source @@ -12975,6 +12975,55 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E% +
Select element inner content elements
+ +

Select element inner content elements are the elements which are allowed as + descendants of select elements.

+ +

The following are select element inner content elements:

+ + + +
Optgroup element inner content elements
+ +

Optgroup element inner content elements are the elements which are allowed as + descendants of optgroup elements.

+ +

The following are optgroup element inner content elements:

+ + + +
Option element inner content elements
+ + + +

Option element inner content elements are div and phrasing + content, but there must be no descendants which are datalist, + object, or interactive content, and no descendants may have the tabindex attribute specified.

+ +
Transparent content models
@@ -19978,6 +20027,7 @@ and is further discussed below.</div>
Categories:
Flow content.
+
Select element inner content elements.
Contexts in which this element can be used:
Where flow content is expected.
As a child of a select element.
@@ -21712,12 +21762,18 @@ included with Exhibit B.
Categories:
Flow content.
Palpable content.
+
Select element inner content elements.
+
Optgroup element inner content elements.
+
Option element inner content elements.
Contexts in which this element can be used:
Where flow content is expected.
As a child of a dl element.
Content model:
If the element is a child of a dl element: one or more dt elements followed by one or more dd elements, optionally intermixed with script-supporting elements.
-
If the element is not a child of a dl element: flow content.
+
Otherwise, if the element is a descendant of an option element: Zero or more option element inner content elements.
+
Otherwise, if the element is a descendant of an optgroup element: Zero or more optgroup element inner content elements.
+
Otherwise, if the element is a descendant of a select element: Zero or more select element inner content elements.
+
Otherwise: flow content.
Content attributes:
Global attributes
</p>
Contexts in which this element can be used:
Where phrasing content is expected.
Content model:
-
Phrasing content.
+
If the element is a descendant of an option element: Zero or more option element inner content elements.
+
Otherwise: Phrasing content.
Content attributes:
Global attributes
Palpable content.
Contexts in which this element can be used:
Where phrasing content is expected.
+
As the first child of a select element.
Content model:
Phrasing content, but there must be no interactive content descendant and no descendant with the tabindex attribute @@ -53410,7 +53468,7 @@ interface HTMLButtonElement : HTMLElement {
Contexts in which this element can be used:
Where phrasing content is expected.
Content model:
-
Zero or more option, optgroup, hr, and script-supporting elements.
+
Zero or one button element if the select is a drop-down box followed by zero or more select element inner content elements.
Content attributes:
Global attributes
autocomplete
@@ -54137,11 +54195,11 @@ interface HTMLDataListElement : HTMLElement {
Categories:
-
None.
+
Select element inner content elements.
Contexts in which this element can be used:
-
As a child of a select element.
+
As a descendant of a select element.
Content model:
-
Zero or more option and script-supporting elements.
+
Zero or one legend element followed by zero or more optgroup element inner content elements.
Content attributes:
Global attributes
disabled
@@ -54234,17 +54292,18 @@ interface HTMLOptGroupElement : HTMLElement {
Categories:
-
None.
+
Select element inner content elements.
+
Optgroup element inner content elements.
Contexts in which this element can be used:
-
As a child of a select element.
+
As a descendant of a select element.
As a child of a datalist element.
-
As a child of an optgroup element.
+
As a descendant of an optgroup element.
Content model:
If the element has a label attribute and a value attribute: Nothing.
If the element has a label attribute but no value attribute: Text.
If the element has no label attribute and is not a - child of a datalist element: Text that is not - inter-element whitespace.
+ descendant of a datalist element: Zero or more option element inner content + elements.
If the element has no label attribute and is a child of a datalist element: Text.
Content attributes:
@@ -55980,8 +56039,13 @@ interface HTMLFieldSetElement : HTMLElement {
None.
Contexts in which this element can be used:
As the first child of a fieldset element.
+
As the first child of an optgroup element.
Content model:
-
Phrasing content, optionally intermixed with heading content.
+
If the element is the first child of a fieldset element: + Phrasing content, optionally intermixed with heading content.
+
If the element is the first child of an optgroup element: + Phrasing content, but there must be no interactive content and no + descendant with the tabindex attribute.
Content attributes:
Global attributes
HTMLLegendElement : HTMLElement {

The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if - any.

+ any
. Otherwise, if the legend has a parent optgroup element, then + the legend represents the optgroup's label.

legend.form
@@ -63571,6 +63636,8 @@ not-slash = %x0000-002E / %x0030-10FFFF
Metadata content.
Flow content.
Phrasing content.
+
Select element inner content elements.
+
Optgroup element inner content elements.
Contexts in which this element can be used:
In a head element of an HTML document, if there are no ancestor noscript elements.
Where phrasing content is expected in HTML documents, if there are no ancestor noscript elements.
@@ -140460,6 +140527,8 @@ interface External { HTMLElement + select List box control