diff --git a/source b/source index f1ceb847a67..aa8ed668dee 100644 --- a/source +++ b/source @@ -12951,6 +12951,74 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E% +
select
element inner content elementsselect
element inner content elements are the elements which are
+ allowed as descendants of select
elements.
The following are select
element inner content elements:
option
optgroup
hr
noscript
div
optgroup
element inner content elementsoptgroup
element inner content elements are the elements which are
+ allowed as descendants of optgroup
elements.
The following are optgroup
element inner content elements:
option
noscript
div
option
element inner content elementsoption
element inner content elements are the elements which are
+ allowed as descendants of option
elements.
The following are option
element inner content elements:
div
The following are excluded from option
element inner content
+ elements:
datalist
object
tabindex
attribute specifiedselect
elements have an associated non-replaced inline CSS box
whose child boxes include only those of optgroup
and option
element
- child nodes;
optgroup
elements have an associated non-replaced block-level CSS
- box whose child boxes include only those of option
element child nodes;
- and
option
element descendant
+ nodes; and
the option
element have an associated non-replaced block-level CSS
box whose child boxes are as normal for non-replaced block-level
select
element inner content elements.select
element.select
element inner content elements.optgroup
element inner content elements.option
element inner content elements.dl
element.dl
element: one or more dt
elements followed by one or more dd
elements, optionally intermixed with script-supporting elements.dl
element: flow content.option
element: Zero or more
+ option
element inner content elements.optgroup
element: Zero or more
+ optgroup
element inner content elements.select
element: Zero or more
+ select
element inner content elements.option
element: Zero or more
+ option
element inner content elements, except div
+ elements.select
element.tabindex
attribute
@@ -53577,9 +53659,10 @@ interface HTMLButtonElement : HTMLElement {
type
attribute is in the Auto state and both the Auto
command
and commandfor
content attributes are not present;
+ data-x="attr-button-commandfor">commandfor content attributes are not present, and the
+ parent node is not a select
element;
or
the A custom command keyword is a string that
starts with " If a A The first child type
attribute is in the HTMLButtonElement : HTMLElement {
--
".button
element is the first child
+ which is an element of a select
element, then it is
+ inert.button
element element's activation behavior given
@@ -53968,7 +54055,9 @@ interface HTMLButtonElement : HTMLElement {
option
, optgroup
, hr
, and script-supporting elements.button
element if the select
is a drop-down
+ box followed by zero or more select
element inner content
+ elements.autocomplete
button
element as allowed by the content model of
+ select
is not a submit button. It is used to replace the in-page rendering of the
+ select
element. Its form submission behavior is prevented because it has inert set
+ in the UA stylesheet.The
@@ -54714,11 +54810,12 @@ interface HTMLDataListElement : HTMLElement {
datalist
element
select
element inner content elements.select
element.select
element.option
and script-supporting elements.legend
element followed by zero or more optgroup
+ element inner content elements.disabled
option
elements together.
The label
- attribute must be specified. Its value gives the name of the group, for the purposes of the user
- interface. User agents should use this attribute's value when labeling the group of
- option
elements in a select
element.
optgroup
has no child legend
+ element.
To get an optgroup
element's label,
+ given an optgroup
optgroup:
If optgroup has a child legend
element, then return the result of
+ stripping and collapsing ASCII
+ whitespace from the concatenation of data of all the
+ Text
node descendants of optgroup's first child legend
+ element, in tree order, excluding any that are descendants of descendants of the
+ legend
that are themselves script
or SVG
+ script
elements.
Otherwise, return the value of optgroup's label
attribute.
The value of the optgroup
label
+ algorithm gives the name of the group, for the purposes of the user interface. User agends should use this attribute's value when labeling the group of
+ option
elements in a select
element.
There is no way to select an optgroup
element. Only
option
elements can be selected. An optgroup
element merely provides a
label for a group of option
elements.
select
element inner content elements.optgroup
element inner content elements.select
element.select
element.datalist
element.optgroup
element.optgroup
element.label
attribute and a value
attribute: Nothing.label
attribute but no value
attribute: Text.label
attribute and is not a
- child of a datalist
element: Text that is not
- inter-element whitespace.label
attribute and is a child
- of a datalist
element: Text.datalist
element: Zero or more option
element
+ inner content elements.
+ label
attribute and is a
+ descendant of a datalist
element: Text.disabled
The value
attribute provides a value for element. The value of an
option
element is the value of the value
- content attribute, if there is one, or, if there is not, the value of the element's text
IDL attribute.
The selected
attribute is a boolean attribute. It represents the default HTMLOptionElement : HTMLElement {
IDL attribute must return the element's index.
The text
IDL
- attribute, on getting, must return the result of stripping and collapsing ASCII whitespace from the concatenation of data of all the Text
node descendants of the
- option
element, in tree order, excluding any that are descendants of
- descendants of the option
element that are themselves script
or
- SVG script
elements.
The text
attribute's setter must string replace
all with the given value within this element.
Return option.
To collect option text, given an option
element option and a
+ boolean includeAltText:
Let text be the empty string.
For each descendant of option in tree order:
+ +If descendant is a script
or SVG
+ script
element, then continue skipping all descendants of descendant.
If descendant is a Text
node, then set text to the
+ concatenation of text and descendant's data.
If descendant is an img
element and includeAltText is
+ true, then:
If the value of descendant's alt
+ attribute is not empty, then set text to the concatenation of text,
+ " "
, the value of descendant's alt
attribute, and " "
.
Continue skipping all descendants of + descendant.
Return the result of strip and collapse ASCII whitespace given + text.
When no value
attribute is set on the
+ option
element, its text contents are used to generate a submittable value. In the
+ case that the option
element has child elements, this can lead to unexpected results
+ such as option
elements which render differently but have the same value. In order
+ to address this, setting the value
attribute on
+ option
elements is recommended.
fieldset
element.optgroup
element.optgroup
element: Phrasing content,
+ but there must be no interactive content and no descendant with the tabindex
attribute.The legend
element represents a caption for the rest of the contents
of the legend
element's parent fieldset
element, if
- any.
legend
has a parent optgroup
element, then
+ the legend
represents the optgroup
's label.
legend.form
select
element inner content elements.optgroup
element inner content elements.head
element of an HTML document, if there are no ancestor noscript
elements.noscript
elements.optgroup
element children
providing headers for groups of options where applicable.
- An optgroup
element is expected to be rendered by displaying the element's label
attribute.
An optgroup
element is expected to be rendered by displaying the element's label.
An option
element is expected to be rendered by displaying the element's label, indented under its optgroup
element if it
- has one.
An option
element is expected to be rendered by displaying the result of
+ collect option text given the option
and true, indented under its
+ optgroup
element if it has one.
Each sequence of one or more child hr
element siblings may be rendered as a single
separator.
div
dl
elementsselect
element inner content elements;
+ optgroup
element inner content elements;
+ option
element inner content elements
dl
dl
;
+ select
element inner content elements;
+ optgroup
element inner content elements;
+ option
element inner content elements
+ select
element inner content elements*;
+ optgroup
element inner content elements*;
+ option
element inner content elements*HTMLDivElement
hr
select
element inner content elementsselect
element inner content elementsHTMLHRElement
legend
fieldset
fieldset
fieldset
;
+ optgroup
HTMLLegendElement
select
element inner content elements;
+ optgroup
element inner content elements
head
*;
phrasing*optgroup
select
option
;
- script-supporting elementsselect
element inner content elementsselect
;
+ div
*optgroup
element inner content elements
;
+ legend
*disabled
;
label
option
select
element inner content elements;
+ optgroup
element inner content elementsselect
;
datalist
;
- optgroup
optgroup
;
+ div
*
+ option
element inner content elements*disabled
;
label
;
@@ -142917,9 +143105,8 @@ interface External {
form-associated;
palpableoption
;
- optgroup
;
- script-supporting elementsselect
element inner content elements;
+ button
*autocomplete
;
disabled
;
@@ -142980,7 +143167,8 @@ interface External {
option
element inner content elements*HTMLSpanElement
select
element inner content elements
+ option
;
+ optgroup
;
+ hr
;
+ script-supporting elements;
+ noscript
;
+ div
+ optgroup
element inner content elements
+ option
;
+ script-supporting elements;
+ noscript
;
+ div
+ option
element inner content elements
+ div
+ datalist
, object
,
+ interactive content, or elements with tabindex
+