Skip to content

Commit b9c5dee

Browse files
authored
Allow
to be used inside

1 file changed

+52
-13
lines changed

source

Lines changed: 52 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19364,6 +19364,7 @@ and is further discussed below.</div>
1936419364
Flow content.
1936519365
Contexts in which this element can be used:
1936619366
Where flow content is expected.
19367+
As a child of a select element.
1936719368
Content model:
1936819369
Nothing.
1936919370
Content attributes:
@@ -19385,8 +19386,9 @@ interface HTMLHRElement : HTMLElement {
1938519386
1938619387

1938719388

The hr element represents a paragraph-level thematic

19388-
break, e.g. a scene change in a story, or a transition to another topic within a section of a
19389-
reference book.

19389+
break, e.g., a scene change in a story, or a transition to another topic within a section of a
19390+
reference book; alternatively, it represents a separator between a set of options of a
19391+
select element.

1939019392

1939119393
1939219394

@@ -52319,7 +52321,7 @@ interface HTMLButtonElement : HTMLElement {
5231952321
Contexts in which this element can be used:
5232052322
Where phrasing content is expected.
5232152323
Content model:
52322-
Zero or more option, optgroup, and script-supporting elements.
52324+
Zero or more option, optgroup, hr, and script-supporting elements.
5232352325
Content attributes:
5232452326
Global attributes
5232552327
autocomplete
@@ -52873,6 +52875,19 @@ interface HTMLSelectElement : HTMLElement {
5287352875

5287452876
5287552877

52878+
52879+

Occasionally it can be useful to have a separator:

52880+
52881+
<label>
52882+
Select the song to play next:
52883+
<select required name="next">
52884+
<option value="sr">Random
52885+
<hr>
52886+
<option value="s1">It Sucks to Be Me (Reprise)
52887+
<option value="s2">There is Life Outside Your Apartment
52888+
52889+
52890+
5287652891

5287752892

5287852893

The datalist element

@@ -112874,10 +112889,11 @@ dictionary StorageEventInit : EventInit {
112874112889
below can handle the non-
112875112890

An optgroup element's end tag may be omitted

112876112891
if the optgroup element is
112877-
immediately followed by another optgroup element, or if there is no more content in
112880-
the parent element.

112892+
immediately followed by another optgroup element, if it is immediately followed by an
112893+
hr element, or if there is no more content in the parent
112896+
element.

112881112897
112890112906

An option element's end tag may be omitted if

112891-
the option element is immediately followed by another option element, or
112892-
if it is immediately followed by an optgroup element, or if there is no more content
112893-
in the parent element.

112907+
the option element is immediately followed by another option element, if
112908+
it is immediately followed by an optgroup element, if it is immediately followed by
112909+
an hr element, or if there is no more content in the parent element.

112894112910

112895112911
112896112912

A colgroup element's start tag may be

@@ -121080,6 +121096,25 @@ document.body.appendChild(text);
121080121096

Insert an HTML element for the token.

121081121097
121082121098

121099+
A start tag whose tag name is "hr"
121100+
121101+
121102+

If the current node is an option element, pop that node from the

121103+
stack of open elements.

121104+
121105+
121106+
121107+

If the current node is an optgroup element, pop that node from the

121108+
stack of open elements.

121109+
121110+
121111+

Insert an HTML element for the token. Immediately pop the current

121112+
node off the stack of open elements.

121113+
121114+

Acknowledge the token's

121115+
flag">self-closing flag, if it is set.

121116+
121117+
121083121118
An end tag whose tag name is "optgroup"
121084121119
121085121120
@@ -125976,6 +126011,9 @@ progress { appearance: auto; }
125976126011
data-x="concept-option-label">label, indented under its optgroup element if it
125977126012
has one.

125978126013

126014+

Each sequence of one or more child hr element siblings may be rendered as a single

126015+
separator.

126016+
125979126017

The width of the select's labels is the wider of the width necessary to

125980126018
render the widest optgroup, and the width necessary to render the widest
125981126019
option element in the element's list of
@@ -134187,16 +134225,16 @@ INSERT INTERFACES HERE
134187134225
Dean Edridge,
134188134226
Dean Edwards,
134189134227
Dean Jackson,
134190-
Debanjana Sarkar ,
134228+
Debanjana Sarkar,
134191134229
Debi Orton,
134192-
Delan Azabani,
134230+
Delan Azabani,
134193134231
Derek Featherstone,
134194134232
Derek Guenther,
134195134233
Devarshi Pant,
134196134234
Devdatta,
134197134235
Devin Rousso,
134198134236
Diego Ferreiro Val,
134199-
Diego González Zúñiga ,
134237+
Diego González Zúñiga,
134200134238
Diego Ponce de León,
134201134239
Dimitri Glazkov,
134202134240
Dimitry Golubovsky,
@@ -134240,6 +134278,7 @@ INSERT INTERFACES HERE
134240134278
Eric Portis,
134241134279
Eric Rescorla,
134242134280
Eric Semling,
134281+
Eric Shepherd,
134243134282
Eric Willigers,
134244134283
Erik Arvidsson,
134245134284
Erik Charlebois,

0 commit comments

Comments
 (0)