- From: poot <cvsmail@w3.org>
- Date: Fri, 31 Jul 2009 17:35:10 +0900 (JST)
- To: public-html-diffs@w3.org
mike: added section about case insensitivity in tag names and attribute names http://dev.w3.org/cvsweb/html5/markup/Overview.html?r1=1.335&r2=1.336&f=h =================================================================== RCS file: /sources/public/html5/markup/Overview.html,v retrieving revision 1.335 retrieving revision 1.336 diff -u -d -r1.335 -r1.336 --- Overview.html 30 Jul 2009 16:42:46 -0000 1.335 +++ Overview.html 31 Jul 2009 08:34:41 -0000 1.336 @@ -103,7 +103,7 @@ <a href="syntax.html#syntax">6. HTML syntax</a> </li> <li> -<a href="elements.html#elements">7. Elements</a> +<a href="elements.html#elements">7. HTML elements</a> </li> <li> <a href="common-models.html#common-models">8. Common content models</a> @@ -164,6 +164,9 @@ <li id="documents-toc"> <a href="documents.html#documents">5.2. Conformant documents</a> </li> +<li id="case-insensitivity-toc"> +<a href="documents.html#case-insensitivity">5.3. Case insensitivity in tag names and attribute names</a> +</li> </ul> </li> <li id="syntax-toc"> @@ -202,7 +205,7 @@ </ul> </li> <li id="elements-toc"> -<a href="elements.html#elements">7. Elements</a> +<a href="elements.html#elements">7. HTML elements</a> <ul> <li id="a-toc"> <a href="a.html#a"><span class="element">a</span> – <span class="shortdesc">hyperlink</span></a> Index: syntax.html =================================================================== RCS file: /sources/public/html5/markup/syntax.html,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- syntax.html 30 Jul 2009 17:08:49 -0000 1.19 +++ syntax.html 31 Jul 2009 08:34:42 -0000 1.20 @@ -167,9 +167,13 @@ <p>An element’s <dfn id="content-model" title="content-model">content model</dfn> defines the element’s structure: What <a href="syntax.html#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">HTML elements</a> section of this - specification defines the content models for all elements. - An element must not contain <a href="syntax.html#contents">contents</a> + have. The + <a href="elements.html">HTML elements</a> + section of this specification defines the content models for + all of the elements that are part of the + <a href="documents.html#html-language">HTML language</a>. + An element must not contain + <a href="syntax.html#contents">contents</a> or attributes that are not part of its content model.</p> <p>The <dfn id="contents" title="contents">contents</dfn> @@ -224,17 +228,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="elements.html#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 @@ -284,11 +285,11 @@ start tag; end tags must not be specified for void elements.</li> <li>The start and end tags of certain elements can be <dfn id="omitted" title="syntax-tag-omission">omitted</dfn>. - The subsection for each element in the <a href="elements.html#elements">HTML elements</a> section of this + The subsection for each element in the <a href="elements.html">HTML elements</a> section of this specification provides information about which tags (if any) can be omitted for that particular element.</li> <li>A non-<a href="syntax.html#void-element">void</a> element must have - an end tag, unless the subsection for that element in the <a href="elements.html#elements">HTML elements</a> section of this + an end tag, unless the subsection for that element in the <a href="elements.html">HTML elements</a> section of this specification indicates that its end tag can be <a href="syntax.html#omitted">omitted</a>.</li> <li>The <a href="syntax.html#contents">contents</a> of an element must be placed between just after its start tag (which @@ -297,38 +298,41 @@ (which <a href="syntax.html#omitted" title="syntax-tag-omission">might be implied in certain cases</a>).</li> </ul> - <p>If an - <a href="syntax.html#syntax-elements">element</a> - has both a - <a href="syntax.html#syntax-start-tags">start tag</a> - and an - <a href="syntax.html#syntax-end-tags">end tag</a>, - its end tag must be contained within the - <a href="syntax.html#contents">contents</a> - of the same element in which its start tag is contained. - An - <a href="syntax.html#syntax-end-tags">end tag</a> - that is not contained within the same - <a href="syntax.html#contents">contents</a> - as its - <a href="syntax.html#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>" + <div id="misnesting" class="section"> + <h2>6.3.1. Misnested tags <a class="hash" href="#misnesting">#</a></h2> + <p>If an + <a href="syntax.html#syntax-elements">element</a> + has both a + <a href="syntax.html#syntax-start-tags">start tag</a> + and an + <a href="syntax.html#syntax-end-tags">end tag</a>, + its end tag must be contained within the + <a href="syntax.html#contents">contents</a> + of the same element in which its start tag is contained. + An <a href="syntax.html#syntax-end-tags">end tag</a> - is a - <a href="syntax.html#misnested-tag">misnested tag</a>, - because it is not contained - within the + that is not contained within the same <a href="syntax.html#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> + as its + <a href="syntax.html#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.html#syntax-end-tags">end tag</a> + is a + <a href="syntax.html#misnested-tag">misnested tag</a>, + because it is not contained + within the + <a href="syntax.html#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> </div> </div> <div id="syntax-attributes" class="section"> @@ -363,11 +367,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="terminology.html#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"><code>Name</code></a> production defined in Index: documents.html =================================================================== RCS file: /sources/public/html5/markup/documents.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- documents.html 20 Jul 2009 22:44:23 -0000 1.4 +++ documents.html 31 Jul 2009 08:34:42 -0000 1.5 @@ -19,6 +19,8 @@ </li> <li id="documents-toc"><a href="documents.html#documents">2. Conformant documents</a> </li> +<li id="case-insensitivity-toc"><a href="documents.html#case-insensitivity">3. Case insensitivity in tag names and attribute names</a> +</li> </ul> </div> <p>The term @@ -136,6 +138,51 @@ and must not <a href="syntax.html#omitted">omit tags</a>).</p> </div> + <div id="case-insensitivity" class="section"> + <h2>5.3. Case insensitivity in tag names and attribute names <a class="hash" href="#case-insensitivity">#</a> <a class="toc-bak" href="Overview.html#case-insensitivity-toc">T</a></h2> + <p>In + <a href="documents.html#syntax-document-html">documents in the HTML syntax</a>:</p> + <ul> + <li><a href="syntax.html#tag-name">Tag names</a> + for + <a href="elements.html#html-elements">HTML elements</a> + may be written with any mix of lowercase and + uppercase letters that are an + <a href="terminology.html#ascii-case-insensitive">ASCII case-insensitive</a> + match for the names of the elements given in the + <a href="elements.html">HTML elements</a> + section of this document; tag names are + case-insensitive.</li> + <li><a href="syntax.html#attribute-name">Attribute names</a> + for + <a href="elements.html#html-elements">HTML elements</a> + may be written with any mix of lowercase and uppercase + letters that are an + <a href="terminology.html#ascii-case-insensitive">ASCII case-insensitive</a> + match for the names of the attributes given in the + <a href="elements.html">HTML elements</a> + section of this document; attribute names are + case-insensitive.</li> + </ul> + <p>In + <a href="documents.html#syntax-document-xml">documents in the XML syntax</a>:</p> + <ul> + <li><a href="syntax.html#tag-name">Tag names</a> + for + <a href="elements.html#html-elements">HTML elements</a> + must exactly match the names of the elements given in the + <a href="elements.html">HTML elements</a> + section of this document; tag names are + case-sensitive.</li> + <li><a href="syntax.html#attribute-name">Attribute names</a> + for + <a href="elements.html#html-elements">HTML elements</a> + must exactly match the names of the attributes given in the + <a href="elements.html">HTML elements</a> + section of this document; attribute names are + case-sensitive.</li> + </ul> + </div> </div> <hr class="footerbreak"></hr> <div class="nav"> Index: spec.html =================================================================== RCS file: /sources/public/html5/markup/spec.html,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -r1.75 -r1.76 --- spec.html 30 Jul 2009 17:08:49 -0000 1.75 +++ spec.html 31 Jul 2009 08:34:42 -0000 1.76 @@ -102,7 +102,7 @@ <a href="#syntax">6. HTML syntax</a> </li> <li> -<a href="#elements">7. Elements</a> +<a href="#elements">7. HTML elements</a> </li> <li> <a href="#common-models">8. Common content models</a> @@ -163,6 +163,9 @@ <li id="documents-toc"> <a href="#documents">5.2. Conformant documents</a> </li> +<li id="case-insensitivity-toc"> +<a href="#case-insensitivity">5.3. Case insensitivity in tag names and attribute names</a> +</li> </ul> </li> <li id="syntax-toc"> @@ -201,7 +204,7 @@ </ul> </li> <li id="elements-toc"> -<a href="#elements">7. Elements</a> +<a href="#elements">7. HTML elements</a> <ul> <li id="a-toc"> <a href="#a"><span class="element">a</span> – <span class="shortdesc">hyperlink</span></a> @@ -814,6 +817,9 @@ <li id="documents-toc"> <a href="#documents">2. Conformant documents</a> </li> +<li id="case-insensitivity-toc"> +<a href="#case-insensitivity">3. Case insensitivity in tag names and attribute names</a> +</li> </ul> </div> <p>The term @@ -933,6 +939,56 @@ and must not <a href="#omitted">omit tags</a>).</p> </div> + <div id="case-insensitivity" class="section"> + <h2>5.3. Case insensitivity in tag names and attribute names <a class="hash" href="#case-insensitivity">#</a> <a class="toc-bak" href="#case-insensitivity-toc">T</a> +</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> +</div> </div> <div id="syntax" class="section"> <h2>6. HTML syntax <a class="hash" href="#syntax">#</a> <a class="toc-bak" href="#syntax-toc">T</a> @@ -1107,9 +1163,13 @@ <p>An element’s <dfn id="content-model" title="content-model">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> @@ -1166,17 +1226,14 @@ <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 @@ -1240,38 +1297,42 @@ (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>" +<div id="misnesting" class="section"> + <h2>6.3.1. Misnested tags <a class="hash" href="#misnesting">#</a> +</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> + 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> </div> </div> <div id="syntax-attributes" class="section"> @@ -1308,11 +1369,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 @@ -1962,8 +2019,12 @@ </div> </div> <div id="elements" class="section"> - <h2>7. Elements <a class="hash" href="#elements">#</a> <a class="toc-bak" href="#elements-toc">T</a> + <h2>7. HTML elements <a class="hash" href="#elements">#</a> <a class="toc-bak" href="#elements-toc">T</a> </h2> +<p>The complete set of + <dfn id="html-elements" title="html-elements">HTML elements</dfn> + is the set of elements described in the following + sections.</p> <div class="toc"> <ul> <li id="a-toc"> Index: elements.html =================================================================== RCS file: /sources/public/html5/markup/elements.html,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- elements.html 29 Jul 2009 11:23:43 -0000 1.14 +++ elements.html 31 Jul 2009 08:34:42 -0000 1.15 @@ -1,7 +1,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> -<title>HTML5: Elements</title> +<title>HTML5: HTML elements</title> <link rel="stylesheet" href="style.css" type="text/css"></link> <link rel="stylesheet" href="W3C-ED.css" type="text/css"></link> </head> @@ -12,7 +12,10 @@ <span class="nav-next"><a href="common-models.html">common-models »</a></span> </div> <div id="elements" class="section"> - <h2>7. Elements <a class="hash" href="#elements">#</a> <a class="toc-bak" href="Overview.html#elements-toc">T</a></h2><div class="toc"> + <h2>7. HTML elements <a class="hash" href="#elements">#</a> <a class="toc-bak" href="Overview.html#elements-toc">T</a></h2><p>The complete set of + <dfn id="html-elements" title="html-elements">HTML elements</dfn> + is the set of elements described in the following + sections.</p><div class="toc"> <ul> <li id="a-toc"><a href="a.html#a"><span class="element">a</span> – <span class="shortdesc">hyperlink</span></a> </li>
Received on Friday, 31 July 2009 08:35:46 UTC