- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 12 May 2011 07:23:52 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/src In directory hutz:/tmp/cvs-serv18177/src Modified Files: datatypes.html syntax.html Log Message: Correct allowed value of alt. Thanks John Foliot. Index: syntax.html =================================================================== RCS file: /sources/public/html5/markup/src/syntax.html,v retrieving revision 1.89 retrieving revision 1.90 diff -u -d -r1.89 -r1.90 --- syntax.html 18 Dec 2010 01:44:11 -0000 1.89 +++ syntax.html 12 May 2011 07:23:50 -0000 1.90 @@ -542,10 +542,17 @@ <a href="#case-insensitive">case-insensitive match</a> for the string "<code>xml</code>".</li> <li> - <dfn id="syntax-attribute-value">attribute values</dfn>, in - general, are - <a href="#normal-character-data">normal character data</a>; - however, the <a href="#elements">HTML elements</a> section + <dfn id="syntax-attribute-value">attribute values</dfn> + can contain + <a href="#syntax-text">text</a> + and + <a href="#syntax-charref">character references</a>, + with additional restrictions depending on whether they are + <a href="#attr-value-unquoted">unquoted attribute values</a>, + <a href="#attr-value-single-quoted">single-quoted attribute values</a>, + or + <a href="#attr-value-double-quoted">double-quoted attribute values</a>. + Also, the <a href="#elements">HTML elements</a> section of this reference describes further restrictions on the allowed values of particular attributes, and attributes <a href="#must-requirement">must</a> @@ -571,6 +578,11 @@ attribute is given with the empty attribute syntax:</p> <pre><input <em>disabled</em>></pre> + <p>Note that + <a href="#syntax-attr-empty">empty attribute syntax</a> + is exactly equivalent to specifying the empty string as the + value for the attribute, as in the following example.</p> + <pre><input <em>disabled="disabled"</em>></pre> </div> </dd> <dt><dfn id="syntax-attr-unquoted" @@ -595,9 +607,9 @@ <li>an <a href="#syntax-attribute-value" >attribute value</a></li> </ol> - <p>In addition to the general requirements given above for - attribute values, an unquoted attribute value has the - following restrictions:</p> + <p>In addition to the + <a href="#syntax-attribute-value">general requirements for attribute values</a>, + an unquoted attribute value has the following restrictions:</p> <ul> <li><a href="#must-requirement">must</a> not contain any literal @@ -606,8 +618,11 @@ not contain any "<code title="U+0022 QUOTATION MARK">"</code>", "<code title="U+0027 APOSTROPHE">'</code>", - "<code title="U+003E GREATER-THAN SIGN">></code>", "<code title="U+003D EQUALS SIGN">=</code>", + "<code title="U+003E GREATER-THAN SIGN">></code>", + "<code title="U+003C LESS-THAN SIGN "><</code>", + or + "<code title="U+0060 GRAVE ACCENT">`</code>", characters</li> <li><a href="#must-requirement">must</a> not be the empty string</li> @@ -657,9 +672,9 @@ "<code title="U+0027 APOSTROPHE">'</code>" character.</li> </ol> - <p>In addition to the general requirements given above - for attribute values, a single-quoted attribute value - has the following restriction:</p> + <p>In addition to the + <a href="#syntax-attribute-value">general requirements for attribute values</a>, + a single-quoted attribute value has the following restriction:</p> <ul> <li><a href="#must-requirement">must</a> not contain any literal @@ -701,9 +716,9 @@ "<code title="double U+0022 QUOTATION MARK">"</code>" character</li> </ol> - <p>In addition to the general requirements given above for - attribute values, a double-quoted attribute value has - the following restriction:</p> + <p>In addition to the + <a href="#syntax-attribute-value">general requirements for attribute values</a>, + a double-quoted attribute value has the following restriction:</p> <ul> <li><a href="#must-requirement">must</a> not contain any literal @@ -765,8 +780,7 @@ id="normal-character-data" title="normal-character-data">normal character data</dfn></dt> <dd> - <p>Certain elements and strings in the values of - particular attributes contain normal character data. + <p>Certain elements contain normal character data. Normal character data can contain the following:</p> <ul> <li><a href="#syntax-text">text</a></li> Index: datatypes.html =================================================================== RCS file: /sources/public/html5/markup/src/datatypes.html,v retrieving revision 1.58 retrieving revision 1.59 diff -u -d -r1.58 -r1.59 --- datatypes.html 21 Jan 2011 06:47:43 -0000 1.58 +++ datatypes.html 12 May 2011 07:23:50 -0000 1.59 @@ -4,19 +4,18 @@ <h2 class="common-subhead"><dfn id="data-string">string</dfn></h2> <div class="datatype-desc">For the purposes of this document, a <var>string</var> - is defined as - <a href="#normal-character-data">normal character data</a>. + is defined as any mixture of + <a href="#syntax-text">text</a> + and + <a href="#syntax-charref">character references</a>. <p>The <a href="#syntax-attributes">Attributes</a> section of this document describes additional restrictions on strings in attribute values — in particular, restrictions for the following cases:</p> <ul> - <li><a - href="#attr-value-unquoted">unquoted attribute values</a></li> - <li><a - href="#attr-value-single-quoted">single-quoted attribute values</a></li> - <li><a - href="#attr-value-double-quoted">double-quoted attribute values</a></li> + <li><a href="#attr-value-unquoted">unquoted attribute values</a></li> + <li><a href="#attr-value-single-quoted">single-quoted attribute values</a></li> + <li><a href="#attr-value-double-quoted">double-quoted attribute values</a></li> </ul> </div> </section>
Received on Thursday, 12 May 2011 07:23:54 UTC