Skip to content

Commit 7cd976b

Browse files
committed
[c] (0) Be clearer about the content models of <option>, <textarea>, <title>.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20472 Affected topics: HTML git-svn-id: http://svn.whatwg.org/webapps@7622 340c8d12-0b0e-0410-8428-c7bf67bfef74
1 parent 1b619cf commit 7cd976b

File tree

3 files changed

+50
-29
lines changed

3 files changed

+50
-29
lines changed

complete.html

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248

249249
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
250250
<hgroup><h1 class=allcaps>HTML</h1>
251-
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 30 December 2012</h2>
251+
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 31 December 2012</h2>
252252
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
253253
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
254254
<dt>Multiple-page version:</dt>
@@ -12103,13 +12103,11 @@ <h6 id=heading-content-0><span class=secno>3.2.5.1.4 </span>Heading content</h6>
1210312103
content can only contain elements that are themselves categorized as
1210412104
phrasing content, not any flow content.</p>
1210512105

12106-
<p><dfn id=text-content title="text content">Text</dfn>, in the context of content
12107-
models, means <code><a href=#text>Text</a></code> nodes. <a href=#text-content title="text
12108-
content">Text</a> is sometimes used as a content model on its
12109-
own, but is also <a href=#phrasing-content>phrasing content</a>, and can be
12110-
<a href=#inter-element-whitespace>inter-element whitespace</a> (if the <code><a href=#text>Text</a></code>
12111-
nodes are empty or contain just <a href=#space-character title="space character">space
12112-
characters</a>).</p>
12106+
<p><dfn id=text-content title="text content">Text</dfn>, in the context of content models, means either nothing,
12107+
or <code><a href=#text>Text</a></code> nodes. <a href=#text-content title="text content">Text</a> is sometimes used as a content
12108+
model on its own, but is also <a href=#phrasing-content>phrasing content</a>, and can be <a href=#inter-element-whitespace>inter-element
12109+
whitespace</a> (if the <code><a href=#text>Text</a></code> nodes are empty or contain just <a href=#space-character title="space
12110+
character">space characters</a>).</p>
1211312111

1211412112
<p><code><a href=#text>Text</a></code> nodes and attribute values must consist of
1211512113
<a href=#unicode-character title="Unicode character">Unicode characters</a>, must not
@@ -13932,6 +13930,12 @@ <h4 id=the-title-element><span class=secno>4.2.2 </span>The <dfn><code>title</co
1393213930
<p>There must be no more than one <code><a href=#the-title-element>title</a></code> element per
1393313931
document.</p>
1393413932

13933+
<p>The <code><a href=#the-title-element>title</a></code> element must not be empty.</p>
13934+
13935+
<p class=note>If it's reasonable for the <code><a href=#document>Document</a></code> to have no title, then the
13936+
<code><a href=#the-title-element>title</a></code> element is probably not required. See the <code><a href=#the-head-element>head</a></code> element's content
13937+
model for a description of when the element is required.</p>
13938+
1393513939
<!--TOPIC:DOM APIs-->
1393613940
<dl class=domintro><dt><var title="">title</var> . <code title=dom-title-text><a href=#dom-title-text>text</a></code> [ = <var title="">value</var> ]</dt>
1393713941

@@ -52823,6 +52827,9 @@ <h4 id=the-option-element><span class=secno>4.10.12 </span>The <dfn><code>option
5282352827
element is the value of the <code title=attr-option-label><a href=#attr-option-label>label</a></code> content attribute, if there
5282452828
is one, or, if there is not, the value of the element's <code title=dom-option-text><a href=#dom-option-text>text</a></code> IDL attribute.</p>
5282552829

52830+
<p>The <code title=attr-option-label><a href=#attr-option-label>label</a></code> content attribute, if specified, must not be
52831+
empty. If the attribute is not specified, then the element itself must not be empty.</p>
52832+
5282652833
<p>The <dfn id=attr-option-value title=attr-option-value><code>value</code></dfn>
5282752834
attribute provides a value for element. The <dfn id=concept-option-value title=concept-option-value>value</dfn> of an <code><a href=#the-option-element>option</a></code>
5282852835
element is the value of the <code title=attr-option-value><a href=#attr-option-value>value</a></code> content attribute, if there
@@ -101705,7 +101712,7 @@ <h3 class=no-num id=elements-1>Elements</h3>
101705101712
<td><code><a href=#the-select-element>select</a></code>;
101706101713
<code><a href=#the-datalist-element>datalist</a></code>;
101707101714
<code><a href=#the-optgroup-element>optgroup</a></code></td>
101708-
<td><a href=#text-content title="text content">text</a></td>
101715+
<td><a href=#text-content title="text content">text</a>*</td>
101709101716
<td><a href=#global-attributes title="global attributes">globals</a>;
101710101717
<code title=attr-option-disabled><a href=#attr-option-disabled>disabled</a></code>;
101711101718
<code title=attr-option-label><a href=#attr-option-label>label</a></code>;
@@ -102020,7 +102027,7 @@ <h3 class=no-num id=elements-1>Elements</h3>
102020102027
<td>Document title</td>
102021102028
<td><a href=#metadata-content title="Metadata content">metadata</a></td>
102022102029
<td><code><a href=#the-head-element>head</a></code></td>
102023-
<td><a href=#text-content title="text content">text</a></td>
102030+
<td><a href=#text-content title="text content">text</a>*</td>
102024102031
<td><a href=#global-attributes title="global attributes">globals</a></td>
102025102032
<td><code><a href=#htmltitleelement>HTMLTitleElement</a></code></td>
102026102033
<tr><th><code><a href=#the-tr-element>tr</a></code></th>

index

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248

249249
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
250250
<hgroup><h1 class=allcaps>HTML</h1>
251-
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 30 December 2012</h2>
251+
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 31 December 2012</h2>
252252
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
253253
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
254254
<dt>Multiple-page version:</dt>
@@ -12103,13 +12103,11 @@ background: transparent"&gt;blue&lt;/span&gt;.&lt;/p&gt;</pre>
1210312103
content can only contain elements that are themselves categorized as
1210412104
phrasing content, not any flow content.</p>
1210512105

12106-
<p><dfn id=text-content title="text content">Text</dfn>, in the context of content
12107-
models, means <code><a href=#text>Text</a></code> nodes. <a href=#text-content title="text
12108-
content">Text</a> is sometimes used as a content model on its
12109-
own, but is also <a href=#phrasing-content>phrasing content</a>, and can be
12110-
<a href=#inter-element-whitespace>inter-element whitespace</a> (if the <code><a href=#text>Text</a></code>
12111-
nodes are empty or contain just <a href=#space-character title="space character">space
12112-
characters</a>).</p>
12106+
<p><dfn id=text-content title="text content">Text</dfn>, in the context of content models, means either nothing,
12107+
or <code><a href=#text>Text</a></code> nodes. <a href=#text-content title="text content">Text</a> is sometimes used as a content
12108+
model on its own, but is also <a href=#phrasing-content>phrasing content</a>, and can be <a href=#inter-element-whitespace>inter-element
12109+
whitespace</a> (if the <code><a href=#text>Text</a></code> nodes are empty or contain just <a href=#space-character title="space
12110+
character">space characters</a>).</p>
1211312111

1211412112
<p><code><a href=#text>Text</a></code> nodes and attribute values must consist of
1211512113
<a href=#unicode-character title="Unicode character">Unicode characters</a>, must not
@@ -13932,6 +13930,12 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p&gt;
1393213930
<p>There must be no more than one <code><a href=#the-title-element>title</a></code> element per
1393313931
document.</p>
1393413932

13933+
<p>The <code><a href=#the-title-element>title</a></code> element must not be empty.</p>
13934+
13935+
<p class=note>If it's reasonable for the <code><a href=#document>Document</a></code> to have no title, then the
13936+
<code><a href=#the-title-element>title</a></code> element is probably not required. See the <code><a href=#the-head-element>head</a></code> element's content
13937+
model for a description of when the element is required.</p>
13938+
1393513939
<!--TOPIC:DOM APIs-->
1393613940
<dl class=domintro><dt><var title="">title</var> . <code title=dom-title-text><a href=#dom-title-text>text</a></code> [ = <var title="">value</var> ]</dt>
1393713941

@@ -52823,6 +52827,9 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
5282352827
element is the value of the <code title=attr-option-label><a href=#attr-option-label>label</a></code> content attribute, if there
5282452828
is one, or, if there is not, the value of the element's <code title=dom-option-text><a href=#dom-option-text>text</a></code> IDL attribute.</p>
5282552829

52830+
<p>The <code title=attr-option-label><a href=#attr-option-label>label</a></code> content attribute, if specified, must not be
52831+
empty. If the attribute is not specified, then the element itself must not be empty.</p>
52832+
5282652833
<p>The <dfn id=attr-option-value title=attr-option-value><code>value</code></dfn>
5282752834
attribute provides a value for element. The <dfn id=concept-option-value title=concept-option-value>value</dfn> of an <code><a href=#the-option-element>option</a></code>
5282852835
element is the value of the <code title=attr-option-value><a href=#attr-option-value>value</a></code> content attribute, if there
@@ -101705,7 +101712,7 @@ if (s = prompt('What is your name?')) {
101705101712
<td><code><a href=#the-select-element>select</a></code>;
101706101713
<code><a href=#the-datalist-element>datalist</a></code>;
101707101714
<code><a href=#the-optgroup-element>optgroup</a></code></td>
101708-
<td><a href=#text-content title="text content">text</a></td>
101715+
<td><a href=#text-content title="text content">text</a>*</td>
101709101716
<td><a href=#global-attributes title="global attributes">globals</a>;
101710101717
<code title=attr-option-disabled><a href=#attr-option-disabled>disabled</a></code>;
101711101718
<code title=attr-option-label><a href=#attr-option-label>label</a></code>;
@@ -102020,7 +102027,7 @@ if (s = prompt('What is your name?')) {
102020102027
<td>Document title</td>
102021102028
<td><a href=#metadata-content title="Metadata content">metadata</a></td>
102022102029
<td><code><a href=#the-head-element>head</a></code></td>
102023-
<td><a href=#text-content title="text content">text</a></td>
102030+
<td><a href=#text-content title="text content">text</a>*</td>
102024102031
<td><a href=#global-attributes title="global attributes">globals</a></td>
102025102032
<td><code><a href=#htmltitleelement>HTMLTitleElement</a></code></td>
102026102033
<tr><th><code><a href=#the-tr-element>tr</a></code></th>

source

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12389,13 +12389,11 @@ background: transparent">blue&lt;/span>.&lt;/p></pre>
1238912389
content can only contain elements that are themselves categorized as
1239012390
phrasing content, not any flow content.</p>
1239112391

12392-
<p><dfn title="text content">Text</dfn>, in the context of content
12393-
models, means <code>Text</code> nodes. <span title="text
12394-
content">Text</span> is sometimes used as a content model on its
12395-
own, but is also <span>phrasing content</span>, and can be
12396-
<span>inter-element whitespace</span> (if the <code>Text</code>
12397-
nodes are empty or contain just <span title="space character">space
12398-
characters</span>).</p>
12392+
<p><dfn title="text content">Text</dfn>, in the context of content models, means either nothing,
12393+
or <code>Text</code> nodes. <span title="text content">Text</span> is sometimes used as a content
12394+
model on its own, but is also <span>phrasing content</span>, and can be <span>inter-element
12395+
whitespace</span> (if the <code>Text</code> nodes are empty or contain just <span title="space
12396+
character">space characters</span>).</p>
1239912397

1240012398
<p><code>Text</code> nodes and attribute values must consist of
1240112399
<span title="Unicode character">Unicode characters</span>, must not
@@ -14464,6 +14462,12 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p>
1446414462
<p>There must be no more than one <code>title</code> element per
1446514463
document.</p>
1446614464

14465+
<p>The <code>title</code> element must not be empty.</p>
14466+
14467+
<p class="note">If it's reasonable for the <code>Document</code> to have no title, then the
14468+
<code>title</code> element is probably not required. See the <code>head</code> element's content
14469+
model for a description of when the element is required.</p>
14470+
1446714471
<!--TOPIC:DOM APIs-->
1446814472
<dl class="domintro">
1446914473

@@ -61616,6 +61620,9 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
6161661620
is one, or, if there is not, the value of the element's <code
6161761621
title="dom-option-text">text</code> IDL attribute.</p>
6161861622

61623+
<p>The <code title="attr-option-label">label</code> content attribute, if specified, must not be
61624+
empty. If the attribute is not specified, then the element itself must not be empty.</p>
61625+
6161961626
<p>The <dfn title="attr-option-value"><code>value</code></dfn>
6162061627
attribute provides a value for element. The <dfn
6162161628
title="concept-option-value">value</dfn> of an <code>option</code>
@@ -118965,7 +118972,7 @@ if (s = prompt('What is your name?')) {
118965118972
<td><code>select</code>;
118966118973
<code>datalist</code>;
118967118974
<code>optgroup</code></td>
118968-
<td><span title="text content">text</span></td>
118975+
<td><span title="text content">text</span>*</td>
118969118976
<td><span title="global attributes">globals</span>;
118970118977
<code title="attr-option-disabled">disabled</code>;
118971118978
<code title="attr-option-label">label</code>;
@@ -119373,7 +119380,7 @@ if (s = prompt('What is your name?')) {
119373119380
<td>Document title</td>
119374119381
<td><span title="Metadata content">metadata</span></td>
119375119382
<td><code>head</code></td>
119376-
<td><span title="text content">text</span></td>
119383+
<td><span title="text content">text</span>*</td>
119377119384
<td><span title="global attributes">globals</span></td>
119378119385
<td><code>HTMLTitleElement</code></td>
119379119386
</tr>

0 commit comments

Comments
 (0)