@@ -16213,7 +16213,7 @@ isn't his only passion. He also enjoys other pleasures.</p>
16213
16213
<dd><span>Palpable content</span>.</dd>
16214
16214
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
16215
16215
<dd>As a child of an <code>hgroup</code> element.</dd>
16216
- <dd>Where <span>flow content</span> is expected.</dd>
16216
+ <dd>Where <span>flow content</span> or <span>heading content</span> is expected.</dd>
16217
16217
<dt><span data-x="concept-element-content-model">Content model</span>:</dt>
16218
16218
<dd><span>Phrasing content</span>.</dd>
16219
16219
<dt><span data-x="concept-element-attributes">Content attributes</span>:</dt>
@@ -16314,7 +16314,7 @@ interface <dfn>HTMLHeadingElement</dfn> : <span>HTMLElement</span> {
16314
16314
<dd><span>Heading content</span>.</dd>
16315
16315
<dd><span>Palpable content</span>.</dd>
16316
16316
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
16317
- <dd>Where <span>flow content</span> is expected.</dd>
16317
+ <dd>Where <span>flow content</span> or <span>heading content</span> is expected.</dd>
16318
16318
<dt><span data-x="concept-element-content-model">Content model</span>:</dt>
16319
16319
<dd>One or more <code>h1</code>, <code>h2</code>, <code>h3</code>, <code>h4</code>,
16320
16320
<code>h5</code>, <code>h6</code> elements, optionally intermixed with <span>script-supporting
@@ -53274,6 +53274,31 @@ interface <dfn>HTMLFieldSetElement</dfn> : <span>HTMLElement</span> {
53274
53274
53275
53275
</div>
53276
53276
53277
+ <div class="example">
53278
+
53279
+ <p>This example shows a grouping of controls where the <code>legend</code> element both labels
53280
+ the grouping, and the nested heading element surfaces the grouping in the document outline:</p>
53281
+
53282
+ <pre><code class="html" data-x=""><fieldset>
53283
+ <legend> <h2>
53284
+ How can we best reach you?
53285
+ </h2> </legend>
53286
+ <p> <label>
53287
+ <input type=radio checked name=contact_pref>
53288
+ Phone
53289
+ </label> </p>
53290
+ <p> <label>
53291
+ <input type=radio name=contact_pref>
53292
+ Text
53293
+ </label> </p>
53294
+ <p> <label>
53295
+ <input type=radio name=contact_pref>
53296
+ Email
53297
+ </label> </p>
53298
+ </fieldset></code></pre>
53299
+
53300
+ </div>
53301
+
53277
53302
53278
53303
<h4>The <dfn><code>legend</code></dfn> element</h4>
53279
53304
@@ -53283,7 +53308,7 @@ interface <dfn>HTMLFieldSetElement</dfn> : <span>HTMLElement</span> {
53283
53308
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
53284
53309
<dd>As the <span>first child</span> of a <code>fieldset</code> element.</dd>
53285
53310
<dt><span data-x="concept-element-content-model">Content model</span>:</dt>
53286
- <dd><span>Phrasing content</span>.</dd>
53311
+ <dd><span>Phrasing content</span>, optionally intermixed with <span>heading content</span> .</dd>
53287
53312
<dt><span data-x="concept-element-attributes">Content attributes</span>:</dt>
53288
53313
<dd><span>Global attributes</span></dd>
53289
53314
<dt><span
@@ -57950,8 +57975,7 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {
57950
57975
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
57951
57976
<dd>As the <span>first child</span> of a <code>details</code> element.</dd>
57952
57977
<dt><span data-x="concept-element-content-model">Content model</span>:</dt>
57953
- <dd>Either: <span>phrasing content</span>.</dd>
57954
- <dd>Or: one element of <span>heading content</span>.</dd>
57978
+ <dd><span>Phrasing content</span>, optionally intermixed with <span>heading content</span>.</dd>
57955
57979
<dt><span data-x="concept-element-attributes">Content attributes</span>:</dt>
57956
57980
<dd><span>Global attributes</span></dd>
57957
57981
<dt><span
@@ -120608,7 +120632,8 @@ interface <dfn>External</dfn> {
120608
120632
<td><span data-x="Flow content">flow</span>;
120609
120633
<span data-x="Heading content">heading</span>;
120610
120634
<span data-x="Palpable content">palpable</span></td>
120611
- <td><code>hgroup</code>;
120635
+ <td><code>legend</code>;
120636
+ <code>summary</code>;
120612
120637
<span data-x="Flow content">flow</span></td>
120613
120638
<td><span data-x="Phrasing content">phrasing</span></td>
120614
120639
<td><span data-x="global attributes">globals</span></td>
@@ -120642,7 +120667,10 @@ interface <dfn>External</dfn> {
120642
120667
<td><span data-x="Flow content">flow</span>;
120643
120668
<span data-x="Heading content">heading</span>;
120644
120669
<span data-x="Palpable content">palpable</span></td>
120645
- <td><span data-x="Flow content">flow</span></td>
120670
+ <td>
120671
+ <code>legend</code>;
120672
+ <code>summary</code>;
120673
+ <span data-x="Flow content">flow</span></td>
120646
120674
<td><code>h1</code>;
120647
120675
<code>h2</code>;
120648
120676
<code>h3</code>;
@@ -120833,7 +120861,8 @@ interface <dfn>External</dfn> {
120833
120861
<td>Caption for <code>fieldset</code></td>
120834
120862
<td>none</td>
120835
120863
<td><code>fieldset</code></td>
120836
- <td><span data-x="Phrasing content">phrasing</span></td>
120864
+ <td><span data-x="Phrasing content">phrasing</span>;
120865
+ <span data-x="heading content">heading content</span></td>
120837
120866
<td><span data-x="global attributes">globals</span></td>
120838
120867
<td><code>HTMLLegendElement</code></td>
120839
120868
</tr>
@@ -121378,7 +121407,8 @@ interface <dfn>External</dfn> {
121378
121407
<td>Caption for <code>details</code></td>
121379
121408
<td>none</td>
121380
121409
<td><code>details</code></td>
121381
- <td><span data-x="Phrasing content">phrasing</span></td>
121410
+ <td><span data-x="Phrasing content">phrasing</span>;
121411
+ <span data-x="Heading content">heading content</span></td>
121382
121412
<td><span data-x="global attributes">globals</span></td>
121383
121413
<td><code>HTMLElement</code></td>
121384
121414
</tr>
0 commit comments