diff --git a/source b/source index b8a0cef9a14..e02940022d9 100644 --- a/source +++ b/source @@ -12927,6 +12927,55 @@ https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E% +
Select 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 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 elements are div
and phrasing
+ content, except descendants which are datalist
, object
,
+ interactive content, or elements with the tabindex
attribute specified.
select
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
option
element have an associated non-replaced block-level CSS
box whose child boxes are as normal for non-replaced block-level
select
element.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.select
element.tabindex
attribute
@@ -53601,7 +53659,7 @@ 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
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,
+ and must not be specified if the optgroup
has a 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.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.
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
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
@@ -140406,10 +140529,19 @@ interface External {
div
dl
elementsdl
dl
;
+ select element inner content elements;
+ optgroup element inner content elements;
+ option element inner content elements
+ HTMLDivElement
hr
HTMLHRElement
legend
fieldset
fieldset
fieldset
;
+ optgroup
HTMLLegendElement
head
*;
phrasing*optgroup
select
option
;
- script-supporting elementsselect
;
+ div
*optgroup element inner content elements
;
+ legend
*disabled
;
label
option
select
;
datalist
;
- optgroup
optgroup
;
+ div
*
+ disabled
;
label
;
@@ -141222,9 +141363,8 @@ interface External {
form-associated;
palpableoption
;
- optgroup
;
- script-supporting elementsbutton
*autocomplete
;
disabled
;
@@ -141285,7 +141425,8 @@ interface External {
HTMLSpanElement
option
;
+ optgroup
;
+ hr
;
+ script-supporting elements;
+ noscript
;
+ div
+ option
;
+ script-supporting elements;
+ noscript
;
+ div
+ div
+ datalist
, object
,
+ interactive content, or elements with tabindex
+