- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 31 Jul 2009 08:34:44 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/src
In directory hutz:/tmp/cvs-serv30248/src
Modified Files:
documents.html syntax.html
Log Message:
added section about case insensitivity in tag names and attribute names
Index: documents.html
===================================================================
RCS file: /sources/public/html5/markup/src/documents.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- documents.html 20 Jul 2009 22:44:23 -0000 1.3
+++ documents.html 31 Jul 2009 08:34:42 -0000 1.4
@@ -127,4 +127,49 @@
and must not
<a href="#omitted">omit tags</a>).</p>
</section>
+ <section id="case-insensitivity">
+ <h2>Case insensitivity in tag names and attribute names</h2>
+ <p>In
+ <a href="#syntax-document-html">documents in the HTML syntax</a>:</p>
+ <ul>
+ <li><a href="#tag-name">Tag names</a>
+ for
+ <a href="#html-elements">HTML elements</a>
+ may be written with any mix of lowercase and
+ uppercase letters that are an
+ <a href="#ascii-case-insensitive">ASCII case-insensitive</a>
+ match for the names of the elements given in the
+ <a href="#elements">HTML elements</a>
+ section of this document; tag names are
+ case-insensitive.</li>
+ <li><a href="#attribute-name">Attribute names</a>
+ for
+ <a href="#html-elements">HTML elements</a>
+ may be written with any mix of lowercase and uppercase
+ letters that are an
+ <a href="#ascii-case-insensitive">ASCII case-insensitive</a>
+ match for the names of the attributes given in the
+ <a href="#elements">HTML elements</a>
+ section of this document; attribute names are
+ case-insensitive.</li>
+ </ul>
+ <p>In
+ <a href="#syntax-document-xml">documents in the XML syntax</a>:</p>
+ <ul>
+ <li><a href="#tag-name">Tag names</a>
+ for
+ <a href="#html-elements">HTML elements</a>
+ must exactly match the names of the elements given in the
+ <a href="#elements">HTML elements</a>
+ section of this document; tag names are
+ case-sensitive.</li>
+ <li><a href="#attribute-name">Attribute names</a>
+ for
+ <a href="#html-elements">HTML elements</a>
+ must exactly match the names of the attributes given in the
+ <a href="#elements">HTML elements</a>
+ section of this document; attribute names are
+ case-sensitive.</li>
+ </ul>
+ </section>
</section>
Index: syntax.html
===================================================================
RCS file: /sources/public/html5/markup/src/syntax.html,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- syntax.html 30 Jul 2009 17:08:49 -0000 1.62
+++ syntax.html 31 Jul 2009 08:34:42 -0000 1.63
@@ -139,9 +139,13 @@
>content model</dfn> defines the element’s structure: What
<a href="#contents">contents</a> (if any) the element can
contain, as well as what attributes (if any) the element can
- have. The <a href="#elements">HTML elements</a> section of this
- specification defines the content models for all elements.
- An element must not contain <a href="#contents">contents</a>
+ have. The
+ <a href="#elements">HTML elements</a>
+ section of this specification defines the content models for
+ all of the elements that are part of the
+ <a href="#html-language">HTML language</a>.
+ An element must not contain
+ <a href="#contents">contents</a>
or attributes that are not part of its content model.</p>
<p>The
<dfn id="contents" title="contents">contents</dfn>
@@ -197,17 +201,14 @@
indicate where they end.</li>
<li><dfn id="tag-name" title="syntax-tag-name">Tag names</dfn>
are used within element start tags and end tags to
- give the element’s name. HTML elements all have names that
- only use characters in the range
+ give the element’s name.
+ <a href="#html-elements">HTML elements</a>
+ all have names that only use characters in the range
<code title="U+0030 DIGIT ZERO–U+0039 DIGIT NINE">0–9</code>,
<code title="U+0061 LATIN SMALL LETTER A–U+007A LATIN SMALL LETTER Z">a–z</code>,
<code title="U+0041 LATIN CAPITAL LETTER A–U+005A LATIN CAPITAL LETTER Z">A–Z</code>,
and the character
- "<code title="U+002D HYPHEN-MINUS">-</code>".
- Tag names may be written with any mix of
- lowercase and uppercase letters that, when converted to
- all-lowercase, matches the element’s tag name; tag names are
- case-insensitive.</li>
+ "<code title="U+002D HYPHEN-MINUS">-</code>".</li>
<li>
<dfn id="syntax-start-tags">Start tags</dfn>
consist of the following parts, in exactly the following
@@ -274,41 +275,44 @@
(which <a href="#omitted" title="syntax-tag-omission">might be
implied in certain cases</a>).</li>
</ul>
- <p>If an
- <a href="#syntax-elements">element</a>
- has both a
- <a href="#syntax-start-tags">start tag</a>
- and an
- <a href="#syntax-end-tags">end tag</a>,
- its end tag must be contained within the
- <a href="#contents">contents</a>
- of the same element in which its start tag is contained.
- An
- <a href="#syntax-end-tags">end tag</a>
- that is not contained within the same
- <a href="#contents">contents</a>
- as its
- <a href="#syntax-start-tags">start tag</a>
- is said to be a
- <dfn
- id="misnested-tag"
- title="misnested-tag">misnested tag</dfn>.</p>
- <div class="example">
- <p>In the following example, the
- "<code></i></code>"
+ <section id="misnesting" class="no-toc">
+ <h2>Misnested tags</h2>
+ <p>If an
+ <a href="#syntax-elements">element</a>
+ has both a
+ <a href="#syntax-start-tags">start tag</a>
+ and an
+ <a href="#syntax-end-tags">end tag</a>,
+ its end tag must be contained within the
+ <a href="#contents">contents</a>
+ of the same element in which its start tag is contained.
+ An
<a href="#syntax-end-tags">end tag</a>
- is a
- <a href="#misnested-tag">misnested tag</a>,
- because it is not contained
- within the
+ that is not contained within the same
<a href="#contents">contents</a>
- of the
- <span class="element">b</span>
- element that contains its corresponding
- "<code><i></code>"
- start tag.</p>
- <pre><b>foo <i>bar</b> baz</i></pre>
- </div>
+ as its
+ <a href="#syntax-start-tags">start tag</a>
+ is said to be a
+ <dfn
+ id="misnested-tag"
+ title="misnested-tag">misnested tag</dfn>.</p>
+ <div class="example">
+ <p>In the following example, the
+ "<code></i></code>"
+ <a href="#syntax-end-tags">end tag</a>
+ is a
+ <a href="#misnested-tag">misnested tag</a>,
+ because it is not contained
+ within the
+ <a href="#contents">contents</a>
+ of the
+ <span class="element">b</span>
+ element that contains its corresponding
+ "<code><i></code>"
+ start tag.</p>
+ <pre><b>foo <i>bar</b> baz</i></pre>
+ </div>
+ </section>
</section>
<section id="syntax-attributes">
<h2>Attributes</h2>
@@ -343,11 +347,7 @@
"<code title="U+002F SOLIDUS">/</code>",
"<code title="U+003D EQUALS SIGN">=</code>",
the control characters,
- and any characters that are not defined by Unicode.
- Attribute names may be written with any mix of lowercase and
- uppercase letters that are an
- <a href="#ascii-case-insensitive">ASCII case-insensitive</a>
- match for the attribute’s name.</li>
+ and any characters that are not defined by Unicode.</li>
<li><dfn id="xml-compatible">XML-compatible</dfn>
attribute names are those that match the
<a href="http://www.w3.org/TR/REC-xml/#NT-Name"
Received on Friday, 31 July 2009 08:34:57 UTC