Skip to content

Commit 0149cc0

Browse files
[HTML] Make select/option content model clearer about children versus descendants whatwg/html@2a92e95
1 parent b9018fc commit 0149cc0

3 files changed

Lines changed: 89 additions & 77 deletions

File tree

HTML-dom-ja.html

Lines changed: 47 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@
139139

140140
●●options
141141

142-
spec_date:2026-05-12
143-
trans_update:2026-05-12
142+
spec_date:2026-06-03
143+
trans_update:2026-06-04
144144
source_checked:260312
145145
page_state_key:HTML
146146
spec_status:LS
@@ -3305,7 +3305,7 @@ <h4 title="Reporting document loading status">3.1.5. 文書~読込ng状態sの
33053305
%文書 には`~HTML構文解析器$が結付けられている
33063306
]:
33073307
3308-
If document is associated with an HTML parser, then:
3308+
If document is associated with an HTML parser:
33093309
</p>
33103310
<ol>
33113311
<li>
@@ -5458,7 +5458,7 @@ <h4 title="HTML element constructors">3.2.3. ~HTML要素の構築子</h4>
54585458
%~prototype は `Object$jt でない
54595459
]:
54605460
5461-
If prototype is not an Object, then:
5461+
If prototype is not an Object:
54625462
</p>
54635463
<ol>
54645464
<li>
@@ -6710,85 +6710,89 @@ <h6 title="Script-supporting elements">3.2.5.2.9. ~scriptを~supportする要素
67106710
<section id="select-element-inner-content-elements">
67116711
<h6 title="select element inner content elements">3.2.5.2.10. `select^e 要素の内縁~内容~要素</h6>
67126712

6713+
<div>
67136714
<p>
67146715
`~select_e要素の内縁~内容~要素@
6715-
とは、
6716-
`select$e 要素の子孫として許容される要素である
6717-
— 次に挙げるものが該当する:
6718-
6719-
select element inner content elements are the elements which are allowed as descendants of select elements.
6720-
6721-
The following are select element inner content elements:
6716+
とは、[
6717+
`select$e 要素, それに関係する要素
6718+
]の子として(内容~modelにより定義される所で)許容される要素であり,
6719+
次に挙げるものが該当する:
67226720
</p>
67236721

67246722
<ul>
67256723
<li>`option$e
67266724
<li>`optgroup$e
67276725
<li>`hr$e
67286726
<li>`~scriptを~supportする要素$
6729-
6730-
script-supporting elements
67316727
<li>`noscript$e
67326728
<li>`div$e
67336729
</ul>
67346730

6731+
6732+
select element inner content elements are the elements which are allowed (where defined by the content model) as children of select elements and related elements.
6733+
6734+
The following are select element inner content elements:
6735+
• option
6736+
• optgroup
6737+
• hr
6738+
• script-supporting elements
6739+
• noscript
6740+
• div
6741+
</div>
6742+
67356743
</section>
67366744
<section id="optgroup-element-inner-content-elements">
67376745
<h6 title="optgroup element inner content elements">3.2.5.2.11. `optgroup^e 要素の内縁~内容~要素</h6>
67386746

6747+
<div>
67396748
<p>
67406749
`~optgroup_e要素の内縁~内容~要素@
6741-
とは、
6742-
`optgroup$e 要素の子孫として許容される要素である
6743-
— 次に挙げるものが該当する:
6744-
6745-
optgroup element inner content elements are the elements which are allowed as descendants of optgroup elements.
6746-
6747-
The following are optgroup element inner content elements:
6750+
とは、[
6751+
`optgroup$e 要素, それに関係する要素
6752+
]の子として(内容~modelにより定義される所で)許容される要素であり,
6753+
次に挙げるものが該当する:
67486754
</p>
67496755

67506756
<ul>
67516757
<li>`option$e
67526758
<li>`~scriptを~supportする要素$
6753-
6754-
script-supporting elements
67556759
<li>`noscript$e
67566760
<li>`div$e
67576761
</ul>
6762+
6763+
optgroup element inner content elements are the elements which are allowed (where defined by the content model) as children of optgroup elements and related elements.
6764+
6765+
The following are optgroup element inner content elements:
6766+
• option
6767+
• script-supporting elements
6768+
• noscript
6769+
• div
6770+
</div>
67586771

67596772
</section>
67606773
<section id="option-element-inner-content-elements">
67616774
<h6 title="option element inner content elements">3.2.5.2.12. `option^e 要素の内縁~内容~要素</h6>
67626775

6776+
<div>
67636777
<p>
67646778
`~option_e要素の内縁~内容~要素@
6765-
とは、
6766-
`option$e 要素の子孫として許容される要素である
6767-
— 次に挙げるものが該当する:
6768-
6769-
option element inner content elements are the elements which are allowed as descendants of option elements.
6770-
6771-
The following are option element inner content elements:
6779+
とは、[
6780+
`option$e 要素, それに関係する要素
6781+
]の子として(内容~modelにより定義される所で)許容される要素であり,
6782+
次に挙げるものが該当する:
67726783
</p>
67736784

67746785
<ul>
67756786
<li>`div$e
67766787
<li>`句ng内容$
6777-
— ただし,次に挙げるものは除外される
6778-
⇒#
6779-
`datalist$e,
6780-
`object$e,
6781-
`ヤリトリありな内容$,
6782-
`tabindex$a 属性を有する要素
6783-
6784-
phrasing content that is not in the following exclusion list
6785-
6786-
The following are excluded from option element inner content elements:
6787-
• datalist
6788-
• object
6789-
• interactive content
6790-
• elements with the tabindex attribute specified
67916788
</ul>
6789+
6790+
option element inner content elements are the elements which are allowed (where defined by the content model) as children of option elements and related elements.
6791+
6792+
The following are option element inner content elements:
6793+
• div
6794+
• phrasing content
6795+
</div>
67926796

67936797
</section>
67946798
</section>

HTML-form-elements-ja.html

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@
158158

159159
●●options
160160

161-
spec_date:2026-05-19
162-
trans_update:2026-05-26
161+
spec_date:2026-05-26
162+
trans_update:2026-05-27
163163
source_checked:250314
164164
page_state_key:HTML
165165
spec_status:LS
@@ -3558,13 +3558,12 @@ <h4 title="The button element">4.10.6. ``button^e 要素</h4>
35583558
</li>
35593559
<li>
35603560
この要素が `select$e 要素の最初の子である場合には、
3561-
1 個以下の `selectedcontent$e 要素も在ってもヨイ
3561+
1 個の `selectedcontent$e 要素が在ってもヨイ
35623562
</li>
35633563
</ul>
35643564
35653565
Phrasing content, but there must be no interactive content descendant and no descendant with the tabindex attribute specified.\
3566-
3567-
If the element is the first child of a select element, then it may also have zero or one descendant selectedcontent element.
3566+
If the element is the first child of a select element, then it may also have one descendant selectedcontent element.
35683567
</dd>
35693568

35703569
<dt>`text/html における~tag省略$</dt>
@@ -6743,22 +6742,50 @@ <h4 title="The option element">4.10.10. ``option^e 要素</h4>
67436742

67446743
<dt>`内容~model$</dt>
67456744
<dd>
6746-
この要素は ``label$a 属性を有する場合
6747-
⇒#
6748-
この要素は ``value$a 属性を有する場合は `なし$/
6749-
~ELSE_ `~text$
6745+
<p>
6746+
この要素は ``label$a 属性を有する場合:
6747+
</p>
6748+
<ul>
6749+
<li>
6750+
この要素は ``value$a 属性を有する場合
6751+
6752+
`なし$
6753+
</li>
6754+
<li>
6755+
他の場合
6756+
6757+
`~text$
6758+
</li>
6759+
</ul>
67506760
67516761
If the element has a label attribute and a value attribute: Nothing.
67526762
67536763
If the element has a label attribute but no value attribute: Text.
67546764
</dd>
67556765
<dd>
6766+
<p>
6767+
他の場合:
6768+
</p>
6769+
<ul>
6770+
<li>
6771+
この要素は `datalist$e 要素の子孫である場合
6772+
6773+
`~text$
6774+
</li>
6775+
<li>
67566776
他の場合
6777+
6778+
0 個以上の`~option_e要素の内縁~内容~要素$
6779+
— ただし,【この要素の】子孫として次に挙げるものが在ってはナラナイ
67576780
⇒#
6758-
この要素は `datalist$e 要素の子孫である場合は `~text$ /
6759-
~ELSE_ 0 個以上の`~option_e要素の内縁~内容~要素$
6781+
`ヤリトリありな内容$,
6782+
`datalist$e 要素,
6783+
`object$e 要素,
6784+
`tabindex$a 属性を有するもの
6785+
</li>
6786+
</ul>
67606787
6761-
If the element has no label attribute and is not a descendant of a datalist element: Zero or more option element inner content elements.
6788+
If the element has no label attribute and is not a descendant of a datalist element: Zero or more option element inner content elements, but there must be no interactive content descendant, datalist element descendant, object element descendant, or descendant with the tabindex attribute specified
67626789
67636790
If the element has no label attribute and is a descendant of a datalist element: Text.
67646791
</dd>

HTML-text-level-ja.html

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@
137137

138138
●●options
139139

140-
spec_date:2026-05-14
141-
trans_update:2026-05-15
140+
spec_date:2026-06-03
141+
trans_update:2026-06-04
142142
source_checked:210309
143143
page_state_key:HTML
144144
spec_status:LS
@@ -249,7 +249,6 @@
249249
e.code:#the-code-element
250250
e.data:#the-data-element
251251
e.del:~HEedits#the-del-element
252-
e.div:~HEgrouping#the-div-element
253252
e.dfn:#the-dfn-element
254253
e.em:#the-em-element
255254
e.h1:#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements
@@ -258,7 +257,6 @@
258257
e.i:#the-i-element
259258
e.kbd:#the-kbd-element
260259
e.mark:#the-mark-element
261-
e.option:~HEforms#the-option-element
262260
e.pre:#the-pre-element
263261
e.q:#the-q-element
264262
e.rp:#the-rp-element
@@ -384,7 +382,6 @@
384382
なし:~HTMLdom#concept-content-nothing
385383
可触~内容:~HTMLdom#palpable-content-2
386384
句ng内容:~HTMLdom#phrasing-content-2
387-
~option_e要素の内縁~内容~要素:~HTMLdom#option-element-inner-content-elements-2
388385
text/html における~tag省略:~HTMLdom#concept-element-tag-omission
389386
~text:~HTMLdom#text-content
390387
透過的:~HTMLdom#transparent
@@ -422,7 +419,6 @@
422419
title0:title
423420
title1:title
424421
value0:value
425-
option_e:<code class="element">option</code>
426422

427423
●●words_table
428424

@@ -7159,24 +7155,9 @@ <h4 title="The span element">4.5.26. `span^e 要素</h4>
71597155

71607156
<dt>`内容~model$</dt>
71617157
<dd>
7162-
この要素が `option$e 要素の子孫である場合
7163-
7164-
0 個以上の次を満たす要素
7165-
7166-
7167-
`~option_e要素の内縁~内容~要素$である
7168-
]~AND[
7169-
`div$e 要素でない
7170-
7171-
7172-
If the element is a descendant of an option element: Zero or more option element inner content elements, except div elements.
7173-
</dd>
7174-
<dd>
7175-
他の場合
7176-
71777158
`句ng内容$
71787159
7179-
Otherwise: Phrasing content.
7160+
Phrasing content.
71807161
</dd>
71817162

71827163
<dt>`text/html における~tag省略$</dt>

0 commit comments

Comments
 (0)