Skip to content

Commit

Permalink
[e] (0) Clarify IDs are not restricted.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21282
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7872 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 30, 2013
1 parent f4d74dd commit 63e3104
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 6 additions & 1 deletion complete.html
Expand Up @@ -256,7 +256,7 @@

<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>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 28 May 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 30 May 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -9413,6 +9413,10 @@ <h5 id=the-id-attribute><span class=secno>3.2.3.1 </span>The <dfn title=attr-id>
<!-- space characters are disallowed because space-separated lists of IDs otherwise would not be
able to reach all valid IDs -->

<p class=note>There are no other restrictions on what form an ID can take; in particular, IDs
can consist of just digits, start with a digit, start with an underscore, consist of just
punctuation, etc.</p>

<p class=note>An element's <a href=#concept-id title=concept-id>unique identifier</a> can be used for a
variety of purposes, most notably as a way to link to specific parts of a document using fragment
identifiers, as a way to target an element when scripting, and as a way to style a specific
Expand Down Expand Up @@ -101633,6 +101637,7 @@ <h2 class=no-num id=references>References</h2><!--REFS-->
Olli Pettay,
oSand, <!-- from reddit -->
Pablo Flouret,
Patrick Garies,
Patrick H. Lauke,
Patrik Persson,
Paul Adenot,
Expand Down
7 changes: 6 additions & 1 deletion index
Expand Up @@ -256,7 +256,7 @@

<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>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 28 May 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 30 May 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -9413,6 +9413,10 @@ interface <dfn id=htmlunknownelement>HTMLUnknownElement</dfn> : <a href=#htmlele
<!-- space characters are disallowed because space-separated lists of IDs otherwise would not be
able to reach all valid IDs -->

<p class=note>There are no other restrictions on what form an ID can take; in particular, IDs
can consist of just digits, start with a digit, start with an underscore, consist of just
punctuation, etc.</p>

<p class=note>An element's <a href=#concept-id title=concept-id>unique identifier</a> can be used for a
variety of purposes, most notably as a way to link to specific parts of a document using fragment
identifiers, as a way to target an element when scripting, and as a way to style a specific
Expand Down Expand Up @@ -101633,6 +101637,7 @@ if (s = prompt('What is your name?')) {
Olli Pettay,
oSand, <!-- from reddit -->
Pablo Flouret,
Patrick Garies,
Patrick H. Lauke,
Patrik Persson,
Paul Adenot,
Expand Down
5 changes: 5 additions & 0 deletions source
Expand Up @@ -9276,6 +9276,10 @@ interface <dfn>HTMLUnknownElement</dfn> : <span>HTMLElement</span> { };</pre>
<!-- space characters are disallowed because space-separated lists of IDs otherwise would not be
able to reach all valid IDs -->

<p class="note">There are no other restrictions on what form an ID can take; in particular, IDs
can consist of just digits, start with a digit, start with an underscore, consist of just
punctuation, etc.</p>

<p class="note">An element's <span title="concept-id">unique identifier</span> can be used for a
variety of purposes, most notably as a way to link to specific parts of a document using fragment
identifiers, as a way to target an element when scripting, and as a way to style a specific
Expand Down Expand Up @@ -114100,6 +114104,7 @@ if (s = prompt('What is your name?')) {
Olli Pettay,
oSand, <!-- from reddit -->
Pablo Flouret,
Patrick Garies,
Patrick H. Lauke,
Patrik Persson,
Paul Adenot,
Expand Down

0 comments on commit 63e3104

Please sign in to comment.