- From: poot <cvsmail@w3.org>
- Date: Fri, 1 Oct 2010 08:08:13 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Better define how sets of unique space-separated tokens are handled in terms of case-sensitivity. (whatwg r5571) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4452&r2=1.4453&f=h http://html5.org/tools/web-apps-tracker?from=5570&to=5571 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4452 retrieving revision 1.4453 diff -u -d -r1.4452 -r1.4453 --- Overview.html 30 Sep 2010 08:47:45 -0000 1.4452 +++ Overview.html 30 Sep 2010 23:07:51 -0000 1.4453 @@ -4818,20 +4818,21 @@ <li><p>Return <var title="">result</var>.</p> </ol></div><hr><h4 id="space-separated-tokens"><span class="secno">2.5.7 </span>Space-separated tokens</h4><p>A <dfn id="set-of-space-separated-tokens">set of space-separated tokens</dfn> is a string containing - zero or more words separated by one or more <a href="#space-character" title="space - character">space characters</a>, where words consist of any - string of one or more characters, none of which are <a href="#space-character" title="space character">space characters</a>.<p>A string containing a <a href="#set-of-space-separated-tokens">set of space-separated tokens</a> + zero or more words (known as tokens) separated by one or more <a href="#space-character" title="space character">space characters</a>, where words consist + of any string of one or more characters, none of which are <a href="#space-character" title="space character">space characters</a>.<p>A string containing a <a href="#set-of-space-separated-tokens">set of space-separated tokens</a> may have leading or trailing <a href="#space-character" title="space character">space characters</a>.<p>An <dfn id="unordered-set-of-unique-space-separated-tokens">unordered set of unique space-separated tokens</dfn> is a - <a href="#set-of-space-separated-tokens">set of space-separated tokens</a> where none of the words + <a href="#set-of-space-separated-tokens">set of space-separated tokens</a> where none of the tokens are duplicated.<p>An <dfn id="ordered-set-of-unique-space-separated-tokens">ordered set of unique space-separated tokens</dfn> is a - <a href="#set-of-space-separated-tokens">set of space-separated tokens</a> where none of the words + <a href="#set-of-space-separated-tokens">set of space-separated tokens</a> where none of the tokens are duplicated but where the order of the tokens is meaningful.<p><a href="#set-of-space-separated-tokens" title="set of space-separated tokens">Sets of space-separated tokens</a> sometimes have a defined set of allowed values. When a set of allowed values is defined, the tokens must all be from that list of allowed values; other values are non-conforming. If no such set of allowed values is provided, then - all values are conforming.<div class="impl"> + all values are conforming.<p class="note">How tokens in a <a href="#set-of-space-separated-tokens">set of space-separated + tokens</a> are to be compared (e.g. case-sensitively or not) is + defined on a per-set basis.<div class="impl"> <p>When a user agent has to <dfn id="split-a-string-on-spaces">split a string on spaces</dfn>, it must use the following algorithm:</p> @@ -4898,7 +4899,8 @@ characters</a> that are not <a href="#space-character" title="space character">space characters</a>, and let that be <var title="">s</var>.</li> - <li><p>If <var title="">s</var> is exactly equal to <var title="">token</var>, then:</p> + <li><p>If <var title="">s</var> is exactly equal to <var title="">token</var> (this is a <a href="#case-sensitive">case-sensitive</a> + comparison), then:</p> <ol><li><p><a href="#skip-whitespace">Skip whitespace</a> (in <var title="">input</var>).</li> @@ -5698,7 +5700,7 @@ </div> - <h4 id="content-type-sniffing"><span class="secno">2.7.3 </span>Determining the type of a resource</h4> + <h4 id="content-type-sniffing"><span class="secno">2.7.3 </span>Determining the type of a resource</h4><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/125">ISSUE-125</a> (charset-vs-quotes) and <a href="http://www.w3.org/html/wg/tracker/issues/126">ISSUE-126</a> (charset-vs-backslashes) block progress to Last Call</span></p> <p>The <dfn id="content-type" title="Content-Type">Content-Type metadata</dfn> of a resource must be obtained and interpreted in a manner consistent @@ -19056,8 +19058,8 @@ </div><hr><p>The <dfn id="attr-iframe-sandbox" title="attr-iframe-sandbox"><code>sandbox</code></dfn> attribute, when specified, enables a set of extra restrictions on any content hosted by the <code><a href="#the-iframe-element">iframe</a></code>. Its value must be an - <a href="#unordered-set-of-unique-space-separated-tokens">unordered set of unique space-separated tokens</a>. The - allowed values are <code title="attr-iframe-sandbox-allow-same-origin"><a href="#attr-iframe-sandbox-allow-same-origin">allow-same-origin</a></code>, + <a href="#unordered-set-of-unique-space-separated-tokens">unordered set of unique space-separated tokens</a> that are + <a href="#ascii-case-insensitive">ASCII case-insensitive</a>. The allowed values are <code title="attr-iframe-sandbox-allow-same-origin"><a href="#attr-iframe-sandbox-allow-same-origin">allow-same-origin</a></code>, <code title="attr-iframe-sandbox-allow-top-navigation"><a href="#attr-iframe-sandbox-allow-top-navigation">allow-top-navigation</a></code>, <code title="attr-iframe-sandbox-allow-forms"><a href="#attr-iframe-sandbox-allow-forms">allow-forms</a></code>, and <code title="attr-iframe-sandbox-allow-scripts"><a href="#attr-iframe-sandbox-allow-scripts">allow-scripts</a></code>. When @@ -25590,10 +25592,11 @@ model --><hr><p>The <code><a href="#the-td-element">td</a></code> and <code><a href="#the-th-element">th</a></code> element may have a <dfn id="attr-tdth-headers" title="attr-tdth-headers"><code>headers</code></dfn> content attribute specified. The <code title="attr-tdth-headers"><a href="#attr-tdth-headers">headers</a></code> attribute, if specified, must contain a string consisting of an <a href="#unordered-set-of-unique-space-separated-tokens">unordered set of unique - space-separated tokens</a>, each of which must have the value of - an <a href="#concept-id" title="concept-id">ID</a> of a <code><a href="#the-th-element">th</a></code> element taking part in the same <a href="#concept-table" title="concept-table">table</a> as the <code><a href="#the-td-element">td</a></code> or - <code><a href="#the-th-element">th</a></code> element<span class="impl"> (as defined by the - <a href="#table-model">table model</a>)</span>.<p>A <code><a href="#the-th-element">th</a></code> element with <a href="#concept-id" title="concept-id">ID</a> <var title="">id</var> is said + space-separated tokens</a> that are <a href="#case-sensitive">case-sensitive</a>, + each of which must have the value of an <a href="#concept-id" title="concept-id">ID</a> of a <code><a href="#the-th-element">th</a></code> element taking + part in the same <a href="#concept-table" title="concept-table">table</a> as the + <code><a href="#the-td-element">td</a></code> or <code><a href="#the-th-element">th</a></code> element<span class="impl"> (as + defined by the <a href="#table-model">table model</a>)</span>.<p>A <code><a href="#the-th-element">th</a></code> element with <a href="#concept-id" title="concept-id">ID</a> <var title="">id</var> is said to be <i>directly targeted</i> by all <code><a href="#the-td-element">td</a></code> and <code><a href="#the-th-element">th</a></code> elements in the same <a href="#concept-table" title="concept-table">table</a> that have <code title="attr-tdth-headers"><a href="#attr-tdth-headers">headers</a></code> attributes whose values include as one of their tokens the <a href="#concept-id" title="concept-id">ID</a> <var title="">id</var>. A @@ -27189,10 +27192,11 @@ can be submitted to a server for processing.<p>The <dfn id="attr-form-accept-charset" title="attr-form-accept-charset"><code>accept-charset</code></dfn> attribute gives the character encodings that are to be used for the submission. If specified, the value must be an <a href="#ordered-set-of-unique-space-separated-tokens">ordered set of - unique space-separated tokens</a>, and each token must be an - <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for the <a href="#preferred-mime-name">preferred - MIME name</a> of an <a href="#ascii-compatible-character-encoding">ASCII-compatible character - encoding</a>. <a href="#refsIANACHARSET">[IANACHARSET]</a><p>The <dfn id="attr-form-name" title="attr-form-name"><code>name</code></dfn> attribute + unique space-separated tokens</a> that are <a href="#ascii-case-insensitive">ASCII + case-insensitive</a>, and each token must be an <a href="#ascii-case-insensitive">ASCII + case-insensitive</a> match for the <a href="#preferred-mime-name">preferred MIME + name</a> of an <a href="#ascii-compatible-character-encoding">ASCII-compatible character encoding</a>. + <a href="#refsIANACHARSET">[IANACHARSET]</a><p>The <dfn id="attr-form-name" title="attr-form-name"><code>name</code></dfn> attribute represents the <code><a href="#the-form-element">form</a></code>'s name within the <code title="dom-document-forms"><a href="#dom-document-forms">forms</a></code> collection. The value must not be the empty string, and the value must be unique amongst the <code><a href="#the-form-element">form</a></code> elements in the <code title="dom-document-forms"><a href="#dom-document-forms">forms</a></code> collection that it is in, if @@ -33872,8 +33876,9 @@ that went into the calculation or that otherwise influenced the calculation. The <code title="attr-output-for"><a href="#attr-output-for">for</a></code> attribute, if specified, must contain a string consisting of an <a href="#unordered-set-of-unique-space-separated-tokens">unordered - set of unique space-separated tokens</a>, each of which must have - the value of an <a href="#concept-id" title="concept-id">ID</a> of an element in the same + set of unique space-separated tokens</a> that are + <a href="#case-sensitive">case-sensitive</a>, each of which must have the value of an + <a href="#concept-id" title="concept-id">ID</a> of an element in the same <code><a href="#document">Document</a></code>.<p>The <code title="attr-fae-form"><a href="#attr-fae-form">form</a></code> attribute is used to explicitly associate the <code><a href="#the-output-element">output</a></code> element with its <a href="#form-owner">form owner</a>. The <code title="attr-fe-name"><a href="#attr-fe-name">name</a></code> @@ -40206,12 +40211,14 @@ </div><p>The <dfn id="attr-link-sizes" title="attr-link-sizes"><code>sizes</code></dfn> attribute gives the sizes of icons for visual media.<p>If specified, the attribute must have a value that is an - <a href="#unordered-set-of-unique-space-separated-tokens">unordered set of unique space-separated tokens</a>. The - values must all be either <code title="attr-link-sizes-any"><a href="#attr-link-sizes-any">any</a></code> or a value that consists of - two <a href="#valid-non-negative-integer" title="valid non-negative integer">valid non-negative - integers</a> that do not have a leading U+0030 DIGIT ZERO (0) - character and that are separated by a single U+0078 LATIN SMALL - LETTER X character (x).<p>The keywords represent icon sizes.<div class="impl"> + <a href="#unordered-set-of-unique-space-separated-tokens">unordered set of unique space-separated tokens</a>, which + are <a href="#ascii-case-insensitive">ASCII case-insensitive</a>. The values must all be + either an <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for the string + "<code title="attr-link-sizes-any"><a href="#attr-link-sizes-any">any</a></code>", or a value that + consists of two <a href="#valid-non-negative-integer" title="valid non-negative integer">valid + non-negative integers</a> that do not have a leading U+0030 DIGIT + ZERO (0) character and that are separated by a single U+0078 LATIN + SMALL LETTER X or U+0058 LATIN CAPITAL LETTER X character.<p>The keywords represent icon sizes.<div class="impl"> <p>To parse and process the attribute's value, the user agent must first <a href="#split-a-string-on-spaces" title="split a string on spaces">split the attribute's @@ -40226,14 +40233,15 @@ what they represent:</p> <ul><li><p>If the keyword doesn't contain exactly one U+0078 LATIN - SMALL LETTER X character (x), then this keyword doesn't represent - anything. Abort these steps for that keyword.</li> + SMALL LETTER X or U+0058 LATIN CAPITAL LETTER X character, then + this keyword doesn't represent anything. Abort these steps for that + keyword.</li> <li><p>Let <var title="">width string</var> be the string before - the "<code title="">x</code>".</li> + the "<code title="">x</code>" or "<code title="">X</code>".</li> - <li><p>Let <var title="">height string</var> be the string after the - "<code title="">x</code>".</li> + <li><p>Let <var title="">height string</var> be the string after + the "<code title="">x</code>" or "<code title="">X</code>".</li> <li><p>If either <var title="">width string</var> or <var title="">height string</var> start with a U+0030 DIGIT ZERO (0) character or contain any characters other than characters in the @@ -40515,7 +40523,7 @@ must also treat the keyword "<code title="">previous</code>" like the <code title="rel-prev"><a href="#link-type-prev">prev</a></code> keyword.</p> - </div><h5 id="other-link-types"><span class="secno">4.12.4.19 </span>Other link types</h5><p><span title="concept-rel-extensions">Extensions to the predefined + </div><h5 id="other-link-types"><span class="secno">4.12.4.19 </span>Other link types</h5><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/127">ISSUE-127</a> (link-type-flags) blocks progress to Last Call</span><p><span title="concept-rel-extensions">Extensions to the predefined set of link types</span> may be registered in the <a href="http://wiki.whatwg.org/wiki/RelExtensions">WHATWG Wiki RelExtensions page</a>. <a href="#refsWHATWGWIKI">[WHATWGWIKI]</a><p>Anyone is free to edit the WHATWG Wiki RelExtensions page at any time to add a type. Extension types must be specified with the @@ -49638,8 +49646,8 @@ <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> attribute's value is used by the user agent as a guide for creating a keyboard shortcut that activates or focuses the element.<p>If specified, the value must be an <a href="#ordered-set-of-unique-space-separated-tokens">ordered set of unique - space-separated tokens</a>, each of which must be exactly one - Unicode code point in length.<div class="impl"> + space-separated tokens</a> that are <a href="#case-sensitive">case-sensitive</a>, + each of which must be exactly one Unicode code point in length.<div class="impl"> <p>An element's <dfn id="assigned-access-key">assigned access key</dfn> is a key combination derived from the element's <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> content attribute as @@ -66993,11 +67001,11 @@ <tr><th> <code title="">accept-charset</code> <td> <code title="attr-form-accept-charset"><a href="#attr-form-accept-charset">form</a></code> <td> Character encodings to use for <a href="#form-submission">form submission</a> - <td> <a href="#ordered-set-of-unique-space-separated-tokens">Ordered set of unique space-separated tokens</a> consisting of <a href="#preferred-mime-name" title="preferred MIME name">preferred MIME names</a> of <a href="#ascii-compatible-character-encoding" title="ASCII-compatible character encoding">ASCII-compatible character encodings</a>* + <td> <a href="#ordered-set-of-unique-space-separated-tokens">Ordered set of unique space-separated tokens</a>, <a href="#ascii-case-insensitive">ASCII case-insensitive</a>, consisting of <a href="#preferred-mime-name" title="preferred MIME name">preferred MIME names</a> of <a href="#ascii-compatible-character-encoding" title="ASCII-compatible character encoding">ASCII-compatible character encodings</a>* <tr><th> <code title="">accesskey</code> <td> <a href="#the-accesskey-attribute" title="attr-accesskey">HTML elements</a> <td> Keyboard shortcut to activate or focus element - <td> <a href="#ordered-set-of-unique-space-separated-tokens">Ordered set of unique space-separated tokens</a> consisting of one Unicode code point in length + <td> <a href="#ordered-set-of-unique-space-separated-tokens">Ordered set of unique space-separated tokens</a>, <a href="#case-sensitive">case-sensitive</a>, consisting of one Unicode code point in length <tr><th> <code title="">action</code> <td> <code title="attr-fs-action"><a href="#attr-fs-action">form</a></code> <td> <a href="#url">URL</a> to use for <a href="#form-submission">form submission</a> @@ -67057,7 +67065,7 @@ <tr><th> <code title="">class</code> <td> <a href="#classes" title="attr-class">HTML elements</a> <td> Classes to which the element belongs - <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a> + <td> <a href="#set-of-space-separated-tokens">Set of space-separated tokens</a> <tr><th> <code title="">cols</code> <td> <code title="attr-textarea-cols"><a href="#attr-textarea-cols">textarea</a></code> <td> Maximum number of characters per line @@ -67136,7 +67144,7 @@ <tr><th> <code title="">for</code> <td> <code title="attr-output-for"><a href="#attr-output-for">output</a></code> <td> Specifies controls from which the output was calculated - <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a> consisting of IDs* + <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a>, <a href="#case-sensitive">case-sensitive</a>, consisting of IDs* <tr><th> <code title="">form</code> <td> <code title="attr-fae-form"><a href="#attr-fae-form">button</a></code>; <code title="attr-fae-form"><a href="#attr-fae-form">fieldset</a></code>; @@ -67180,7 +67188,7 @@ <td> <code title="attr-tdth-headers"><a href="#attr-tdth-headers">td</a></code>; <code title="attr-tdth-headers"><a href="#attr-tdth-headers">th</a></code> <td> The header cells for this cell - <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a> consisting of IDs* + <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a>, <a href="#case-sensitive">case-sensitive</a>, consisting of IDs* <tr><th> <code title="">height</code> <td> <code title="attr-canvas-height"><a href="#attr-canvas-height">canvas</a></code>; <code title="attr-dim-height"><a href="#attr-dim-height">embed</a></code>; @@ -67409,7 +67417,7 @@ <tr><th> <code title="">sandbox</code> <td> <code title="attr-iframe-sandbox"><a href="#attr-iframe-sandbox">iframe</a></code> <td> Security rules for nested content - <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a> consisting of + <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a>, <a href="#ascii-case-insensitive">ASCII case-insensitive</a>, consisting of "<code title="attr-iframe-sandbox-allow-same-origin"><a href="#attr-iframe-sandbox-allow-same-origin">allow-same-origin</a></code>", "<code title="attr-iframe-sandbox-allow-forms"><a href="#attr-iframe-sandbox-allow-forms">allow-forms</a></code>", and "<code title="attr-iframe-sandbox-allow-scripts"><a href="#attr-iframe-sandbox-allow-scripts">allow-scripts</a></code>" @@ -67451,7 +67459,7 @@ <tr><th> <code title="">sizes</code> <td> <code title="attr-link-sizes"><a href="#attr-link-sizes">link</a></code> <td> Sizes of the icons (for <code title="attr-link-rel"><a href="#attr-link-rel">rel</a></code>="<code title="rel-icon"><a href="#rel-icon">icon</a></code>") - <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a> consisting of sizes* + <td> <a href="#unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</a>, <a href="#ascii-case-insensitive">ASCII case-insensitive</a>, consisting of sizes* <tr><th> <code title="">span</code> <td> <code title="attr-col-span"><a href="#attr-col-span">col</a></code>; <code title="attr-colgroup-span"><a href="#attr-colgroup-span">colgroup</a></code>
Received on Thursday, 30 September 2010 23:08:43 UTC