diff --git a/source b/source index b8a0cef9a14..8a22133e550 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, but there must be no descendants which are datalist
,
+ object
, or interactive content, and no descendants may have the tabindex
attribute specified.
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
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 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 " "
.
Return the result of strip and collapse ASCII whitespace given + text.
fieldset
element.optgroup
element.fieldset
element:
+ Phrasing content, optionally intermixed with heading content.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.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 +141333,8 @@ interface External {
form-associated;
palpableoption
;
- optgroup
;
- script-supporting elementsbutton
*autocomplete
;
disabled
;
@@ -141285,7 +141395,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
+