spec/Overview.html 1.2107 2942 Move the enumerated attributes section u

Move the enumerated attributes section up. (credit: sp) (bug 6637)
(whatwg r2942)
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6637

rules for parsing floating point number values
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#rules-for-parsing-floating-point-number-values
valid date string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#valid-date-string
2.4.5 Dates and times
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#dates-and-times
split a string on commas
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#split-a-string-on-commas
parse a date component
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#parse-a-date-component
remove a token from a string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#remove-a-token-from-a-string
rules for parsing integers
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#rules-for-parsing-integers
2.4.4.6 Lists of integers
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#lists-of-integers
find a number
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#find-a-number
2.4.4.7 Lists of dimensions
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#lists-of-dimensions
2.4.4 Numbers
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#numbers
a value associated with each denominator punctuation character
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#values-associated-with-denominator-punctuation-characters
rules for parsing a legacy color value
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#rules-for-parsing-a-legacy-color-value
2.4.9 References
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#syntax-references
digits
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#concept-datetime-digit
2.4.5.7 Vaguer moments in time
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#vaguer-moments-in-time
parse a time component
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#parse-a-time-component
2.4.2 Boolean attributes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#boolean-attributes
2.4.5.4 Local dates and times
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#local-dates-and-times
2.4.4.3 Real numbers
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#real-numbers
2.4.5.5 Global dates and times
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#global-dates-and-times
valid time string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#valid-time-string
rules for parsing non-negative integers
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#rules-for-parsing-non-negative-integers
parse a local date and time string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#parse-a-local-date-and-time-string
rules for parsing a list of dimensions
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#rules-for-parsing-a-list-of-dimensions
2.4.5.6 Weeks
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#weeks
enumerated attributes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#enumerated-attribute
2.4.4.2 Signed integers
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#signed-integers
2.4.8 Comma-separated tokens
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#comma-separated-tokens
2.4.4.5 Percentages and lengths
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#percentages-and-dimensions
rules for parsing dimension values
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#rules-for-parsing-dimension-values
2.4.7 Space-separated tokens
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#space-separated-tokens
parse a month component
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#parse-a-month-component
2.4.4.4 Ratios
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#ratios
parse a date or time string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#parse-a-date-or-time-string
rules for parsing a list of integers
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#rules-for-parsing-a-list-of-integers
valid month string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#valid-month-string
2.4.5.2 Dates
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#dates
valid denominator punctuation character
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#valid-denominator-punctuation-character
parse a week string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#parse-a-week-string
2.4.5.1 Months
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#months
2.4.6 Colors
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#colors
2.4.5.3 Times
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#times
parse a timezone component
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#parse-a-timezone-component
valid simple color
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#valid-simple-color
2.4.3 Keywords and enumerated attributes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2107.html#keywords-and-enumerated-attributes

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2106&r2=1.2107&f=h
http://html5.org/tools/web-apps-tracker?from=2941&to=2942

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2106
retrieving revision 1.2107
diff -u -d -r1.2106 -r1.2107
--- Overview.html 31 Mar 2009 23:57:03 -0000 1.2106
+++ Overview.html 31 Mar 2009 23:59:40 -0000 1.2107
@@ -293,28 +293,28 @@
     <ol>
      <li><a href=#common-parser-idioms><span class=secno>2.4.1 </span>Common parser idioms</a></li>
      <li><a href=#boolean-attributes><span class=secno>2.4.2 </span>Boolean attributes</a></li>
-     <li><a href=#numbers><span class=secno>2.4.3 </span>Numbers</a>
+     <li><a href=#keywords-and-enumerated-attributes><span class=secno>2.4.3 </span>Keywords and enumerated attributes</a></li>
+     <li><a href=#numbers><span class=secno>2.4.4 </span>Numbers</a>
       <ol>
-       <li><a href=#non-negative-integers><span class=secno>2.4.3.1 </span>Non-negative integers</a></li>
-       <li><a href=#signed-integers><span class=secno>2.4.3.2 </span>Signed integers</a></li>
-       <li><a href=#real-numbers><span class=secno>2.4.3.3 </span>Real numbers</a></li>
-       <li><a href=#ratios><span class=secno>2.4.3.4 </span>Ratios</a></li>
-       <li><a href=#percentages-and-dimensions><span class=secno>2.4.3.5 </span>Percentages and lengths</a></li>
-       <li><a href=#lists-of-integers><span class=secno>2.4.3.6 </span>Lists of integers</a></li>
-       <li><a href=#lists-of-dimensions><span class=secno>2.4.3.7 </span>Lists of dimensions</a></ol></li>
-     <li><a href=#dates-and-times><span class=secno>2.4.4 </span>Dates and times</a>
+       <li><a href=#non-negative-integers><span class=secno>2.4.4.1 </span>Non-negative integers</a></li>
+       <li><a href=#signed-integers><span class=secno>2.4.4.2 </span>Signed integers</a></li>
+       <li><a href=#real-numbers><span class=secno>2.4.4.3 </span>Real numbers</a></li>
+       <li><a href=#ratios><span class=secno>2.4.4.4 </span>Ratios</a></li>
+       <li><a href=#percentages-and-dimensions><span class=secno>2.4.4.5 </span>Percentages and lengths</a></li>
+       <li><a href=#lists-of-integers><span class=secno>2.4.4.6 </span>Lists of integers</a></li>
+       <li><a href=#lists-of-dimensions><span class=secno>2.4.4.7 </span>Lists of dimensions</a></ol></li>
+     <li><a href=#dates-and-times><span class=secno>2.4.5 </span>Dates and times</a>
       <ol>
-       <li><a href=#months><span class=secno>2.4.4.1 </span>Months</a></li>
-       <li><a href=#dates><span class=secno>2.4.4.2 </span>Dates</a></li>
-       <li><a href=#times><span class=secno>2.4.4.3 </span>Times</a></li>
-       <li><a href=#local-dates-and-times><span class=secno>2.4.4.4 </span>Local dates and times</a></li>
-       <li><a href=#global-dates-and-times><span class=secno>2.4.4.5 </span>Global dates and times</a></li>
-       <li><a href=#weeks><span class=secno>2.4.4.6 </span>Weeks</a></li>
-       <li><a href=#vaguer-moments-in-time><span class=secno>2.4.4.7 </span>Vaguer moments in time</a></ol></li>
-     <li><a href=#colors><span class=secno>2.4.5 </span>Colors</a></li>
-     <li><a href=#space-separated-tokens><span class=secno>2.4.6 </span>Space-separated tokens</a></li>
-     <li><a href=#comma-separated-tokens><span class=secno>2.4.7 </span>Comma-separated tokens</a></li>
-     <li><a href=#keywords-and-enumerated-attributes><span class=secno>2.4.8 </span>Keywords and enumerated attributes</a></li>
+       <li><a href=#months><span class=secno>2.4.5.1 </span>Months</a></li>
+       <li><a href=#dates><span class=secno>2.4.5.2 </span>Dates</a></li>
+       <li><a href=#times><span class=secno>2.4.5.3 </span>Times</a></li>
+       <li><a href=#local-dates-and-times><span class=secno>2.4.5.4 </span>Local dates and times</a></li>
+       <li><a href=#global-dates-and-times><span class=secno>2.4.5.5 </span>Global dates and times</a></li>
+       <li><a href=#weeks><span class=secno>2.4.5.6 </span>Weeks</a></li>
+       <li><a href=#vaguer-moments-in-time><span class=secno>2.4.5.7 </span>Vaguer moments in time</a></ol></li>
+     <li><a href=#colors><span class=secno>2.4.6 </span>Colors</a></li>
+     <li><a href=#space-separated-tokens><span class=secno>2.4.7 </span>Space-separated tokens</a></li>
+     <li><a href=#comma-separated-tokens><span class=secno>2.4.8 </span>Comma-separated tokens</a></li>
      <li><a href=#syntax-references><span class=secno>2.4.9 </span>References</a></ol></li>
    <li><a href=#urls><span class=secno>2.5 </span>URLs</a>
     <ol>
@@ -1853,7 +1853,39 @@
   match for the attribute's canonical name, with no leading or
   trailing whitespace.<p class=note>The values "true" and "false" are not allowed on
   boolean attributes. To represent a false value, the attribute has to
-  be omitted altogether.<h4 id=numbers><span class=secno>2.4.3 </span>Numbers</h4><h5 id=non-negative-integers><span class=secno>2.4.3.1 </span>Non-negative integers</h5><p>A string is a <dfn id=valid-non-negative-integer>valid non-negative integer</dfn> if it
+  be omitted altogether.<h4 id=keywords-and-enumerated-attributes><span class=secno>2.4.3 </span>Keywords and enumerated attributes</h4><p>Some attributes are defined as taking one of a finite set of
+  keywords. Such attributes are called <dfn id=enumerated-attribute title="enumerated
+  attribute">enumerated attributes</dfn>. The keywords are each
+  defined to map to a particular <em>state</em> (several keywords
+  might map to the same state, in which case some of the keywords are
+  synonyms of each other; additionally, some of the keywords can be
+  said to be non-conforming, and are only in the specification for
+  historical reasons). In addition, two default states can be
+  given. The first is the <i>invalid value default</i>, the second
+  is the <i>missing value default</i>.<p>If an enumerated attribute is specified, the attribute's value
+  must be an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for one of the
+  given keywords that are not said to be non-conforming, with no
+  leading or trailing whitespace.<p>When the attribute is specified, if its value is an <a href=#ascii-case-insensitive>ASCII
+  case-insensitive</a> match for one of the given keywords then
+  that keyword's state is the state that the attribute represents. If
+  the attribute value matches none of the given keywords, but the
+  attribute has an <i>invalid value default</i>, then the attribute
+  represents that state. Otherwise, if the attribute value matches
+  none of the keywords but there is a <i>missing value default</i>
+  state defined, then <em>that</em> is the state represented by the
+  attribute. Otherwise, there is no default, and invalid values must
+  be ignored.<p>When the attribute is <em>not</em> specified, if there is a
+  <i>missing value default</i> state defined, then that is the state
+  represented by the (missing) attribute. Otherwise, the absence of
+  the attribute means that there is no state represented.<p class=note>The empty string can be one of the keywords in some
+  cases. For example the <code title=attr-contenteditable><a href=#attr-contenteditable>contenteditable</a></code> attribute has
+  two states: <i>true</i>, matching the <code title="">true</code>
+  keyword and the empty string, <i>false</i>, matching <code title="">false</code> and all other keywords (it's the <i>invalid
+  value default</i>). It could further be thought of as having a
+  third state <i>inherit</i>, which would be the default when the
+  attribute is not specified at all (the <i>missing value
+  default</i>), but for various reasons that isn't the way this
+  specification actually defines it.<h4 id=numbers><span class=secno>2.4.4 </span>Numbers</h4><h5 id=non-negative-integers><span class=secno>2.4.4.1 </span>Non-negative integers</h5><p>A string is a <dfn id=valid-non-negative-integer>valid non-negative integer</dfn> if it
   consists of one of more characters in the range U+0030 DIGIT ZERO
   (0) to U+0039 DIGIT NINE (9).<p>A <a href=#valid-non-negative-integer>valid non-negative integer</a> represents the number
   that is represented in base ten by that string of digits.<div class=impl>
@@ -1909,7 +1941,7 @@
 
    <li><p>Return <var title="">value</var>.</li>
 
-  </ol></div><h5 id=signed-integers><span class=secno>2.4.3.2 </span>Signed integers</h5><p>A string is a <dfn id=valid-integer>valid integer</dfn> if it consists of one of
+  </ol></div><h5 id=signed-integers><span class=secno>2.4.4.2 </span>Signed integers</h5><p>A string is a <dfn id=valid-integer>valid integer</dfn> if it consists of one of
   more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT
   NINE (9), optionally prefixed with a U+002D HYPHEN-MINUS ("-")
   character.<p>A <a href=#valid-integer>valid integer</a> without a U+002D HYPHEN-MINUS ("-")
@@ -1984,7 +2016,7 @@
 
    <li><p>If <var title="">sign</var> is "positive", return <var title="">value</var>, otherwise return 0-<var title="">value</var>.</li>
 
-  </ol></div><h5 id=real-numbers><span class=secno>2.4.3.3 </span>Real numbers</h5><p>A string is a <dfn id=valid-floating-point-number>valid floating point number</dfn> if it
+  </ol></div><h5 id=real-numbers><span class=secno>2.4.4.3 </span>Real numbers</h5><p>A string is a <dfn id=valid-floating-point-number>valid floating point number</dfn> if it
   consists of:<ol class=brief><li>Optionally, a U+002D HYPHEN-MINUS ("-") character.</li>
 
    <li>A series of one or more characters in the range U+0030 DIGIT
@@ -2157,7 +2189,7 @@
 
    <li><p>Return <var title="">value</var>.</li>
 
-  </ol></div><h5 id=ratios><span class=secno>2.4.3.4 </span>Ratios</h5><p class=note>The algorithms described in this section are used by
+  </ol></div><h5 id=ratios><span class=secno>2.4.4.4 </span>Ratios</h5><p class=note>The algorithms described in this section are used by
   the <code><a href=#the-progress-element>progress</a></code> and <code><a href=#the-meter-element>meter</a></code> elements.<p>A <dfn id=valid-denominator-punctuation-character>valid denominator punctuation character</dfn> is one of
   the characters from the table below. There is <dfn id=values-associated-with-denominator-punctuation-characters title="values
   associated with denominator punctuation characters">a value
@@ -2275,7 +2307,7 @@
    <li>Return <var title="">number</var>.</li>
 
   </ol></div><div class=impl>
-  <h5 id=percentages-and-dimensions><span class=secno>2.4.3.5 </span>Percentages and lengths</h5>
+  <h5 id=percentages-and-dimensions><span class=secno>2.4.4.5 </span>Percentages and lengths</h5>
 <!--(percentages are not used in valid html5)
   <p>A string is a <dfn>valid dimension value</dfn> if it consists of
   a character in the range U+0031 DIGIT ONE (1) to U+0039 DIGIT NINE
@@ -2362,7 +2394,7 @@
 
    <li><p>Return <var title="">value</var> as a length.</li>
 
-  </ol></div><h5 id=lists-of-integers><span class=secno>2.4.3.6 </span>Lists of integers</h5><p>A <dfn id=valid-list-of-integers>valid list of integers</dfn> is a number of <a href=#valid-integer title="valid integer">valid integers</a> separated by U+002C
+  </ol></div><h5 id=lists-of-integers><span class=secno>2.4.4.6 </span>Lists of integers</h5><p>A <dfn id=valid-list-of-integers>valid list of integers</dfn> is a number of <a href=#valid-integer title="valid integer">valid integers</a> separated by U+002C
   COMMA characters, with no other characters (e.g. no <a href=#space-character title="space character">space characters</a>). In addition, there
   might be restrictions on the number of integers that can be given,
   or on the range of values allowed.<div class=impl>
@@ -2625,7 +2657,7 @@
 
   </ol></div><div class=impl>
 
-  <h5 id=lists-of-dimensions><span class=secno>2.4.3.7 </span>Lists of dimensions</h5>
+  <h5 id=lists-of-dimensions><span class=secno>2.4.4.7 </span>Lists of dimensions</h5>
 
   <!-- no definition of a type since no conforming feature uses this
   syntax (it's only used in cols="" and rows="" on <frameset> -->
@@ -2726,7 +2758,7 @@
 
    <li><p>Return the list <var title="">result</var>.</li>
 
-  </ol></div><h4 id=dates-and-times><span class=secno>2.4.4 </span>Dates and times</h4><p>In the algorithms below, the <dfn id=number-of-days-in-month-month-of-year-year>number of days in month <var title="">month</var> of year <var title="">year</var></dfn> is:
+  </ol></div><h4 id=dates-and-times><span class=secno>2.4.5 </span>Dates and times</h4><p>In the algorithms below, the <dfn id=number-of-days-in-month-month-of-year-year>number of days in month <var title="">month</var> of year <var title="">year</var></dfn> is:
   <em>31</em> if <var title="">month</var> is 1, 3, 5, 7, 8, 10, or
   12; <em>30</em> if <var title="">month</var> is 4, 6, 9, or 11;
   <em>29</em> if <var title="">month</var> is 2 and <var title="">year</var> is a number divisible by 400, or if <var title="">year</var> is a number divisible by 4 but not by 100; and
@@ -2734,7 +2766,7 @@
   Gregorian calendar. <a href=#references>[GREGORIAN]</a><p>The <dfn id=concept-datetime-digit title=concept-datetime-digit>digits</dfn> in the date
   and time syntaxes defined in this section must be characters in the
   range U+0030 DIGIT ZERO to U+0039 DIGIT NINE, used to express
-  numbers in base ten.<h5 id=months><span class=secno>2.4.4.1 </span>Months</h5><p>A <dfn id=concept-month title=concept-month>month</dfn> consists of a specific
+  numbers in base ten.<h5 id=months><span class=secno>2.4.5.1 </span>Months</h5><p>A <dfn id=concept-month title=concept-month>month</dfn> consists of a specific
   proleptic Gregorian date with no timezone information and no date
   information beyond a year and a month. <a href=#references>[GREGORIAN]</a><p>A string is a <dfn id=valid-month-string>valid month string</dfn> representing a year
   <var title="">year</var> and month <var title="">month</var> if it
@@ -2797,7 +2829,7 @@
 
    <li><p>Return <var title="">year</var> and <var title="">month</var>.</li>
 
-  </ol></div><h5 id=dates><span class=secno>2.4.4.2 </span>Dates</h5><p>A <dfn id=concept-date title=concept-date>date</dfn> consists of a specific
+  </ol></div><h5 id=dates><span class=secno>2.4.5.2 </span>Dates</h5><p>A <dfn id=concept-date title=concept-date>date</dfn> consists of a specific
   proleptic Gregorian date with no timezone information, consisting of
   a year, a month, and a day. <a href=#references>[GREGORIAN]</a><p>A string is a <dfn id=valid-date-string>valid date string</dfn> representing a year
   <var title="">year</var>, month <var title="">month</var>, and day
@@ -2860,7 +2892,7 @@
    <li><p>Return <var title="">year</var>, <var title="">month</var>,
    and <var title="">day</var>.</li>
 
-  </ol></div><h5 id=times><span class=secno>2.4.4.3 </span>Times</h5><p>A <dfn id=concept-time title=concept-time>time</dfn> consists of a specific
+  </ol></div><h5 id=times><span class=secno>2.4.5.3 </span>Times</h5><p>A <dfn id=concept-time title=concept-time>time</dfn> consists of a specific
   time with no timezone information, consisting of an hour, a minute,
   a second, and a fraction of a second.<p>A string is a <dfn id=valid-time-string>valid time string</dfn> representing an hour
   <var title="">hour</var>, a minute <var title="">minute</var>, and a
@@ -2986,7 +3018,7 @@
    <li><p>Return <var title="">hour</var>, <var title="">minute</var>,
    and <var title="">second</var>.</li>
 
-  </ol></div><h5 id=local-dates-and-times><span class=secno>2.4.4.4 </span>Local dates and times</h5><p>A <dfn id=concept-datetime-local title=concept-datetime-local>local date and time</dfn>
+  </ol></div><h5 id=local-dates-and-times><span class=secno>2.4.5.4 </span>Local dates and times</h5><p>A <dfn id=concept-datetime-local title=concept-datetime-local>local date and time</dfn>
   consists of a specific proleptic Gregorian date, consisting of a
   year, a month, and a day, and a time, consisting of an hour, a
   minute, a second, and a fraction of a second, but expressed without
@@ -3029,7 +3061,7 @@
 
    <li><p>Return <var title="">date</var> and <var title="">time</var>.</li>
 
-  </ol></div><h5 id=global-dates-and-times><span class=secno>2.4.4.5 </span>Global dates and times</h5><p>A <dfn id=concept-datetime title=concept-datetime>global date and time</dfn>
+  </ol></div><h5 id=global-dates-and-times><span class=secno>2.4.5.5 </span>Global dates and times</h5><p>A <dfn id=concept-datetime title=concept-datetime>global date and time</dfn>
   consists of a specific proleptic Gregorian date, consisting of a
   year, a month, and a day, and a time, consisting of an hour, a
   minute, a second, and a fraction of a second, expressed with a time
@@ -3220,7 +3252,7 @@
    <li><p>Return <var title="">timezone<sub title="">hours</sub></var>
    and <var title="">timezone<sub title="">minutes</sub></var>.</li>
 
-  </ol></div><h5 id=weeks><span class=secno>2.4.4.6 </span>Weeks</h5><p>A <dfn id=concept-week title=concept-week>week</dfn> consists of a week-year
+  </ol></div><h5 id=weeks><span class=secno>2.4.5.6 </span>Weeks</h5><p>A <dfn id=concept-week title=concept-week>week</dfn> consists of a week-year
   number and a week number representing a seven day period. Each
   week-year in this calendaring system has either 52 weeks or 53
   weeks, as defined below. A week is a seven-day period. The week
@@ -3299,7 +3331,7 @@
    <li><p>Return the week-year number <var title="">year</var> and the
    week number <var title="">week</var>.</li>
 
-  </ol></div><h5 id=vaguer-moments-in-time><span class=secno>2.4.4.7 </span>Vaguer moments in time</h5><p>A <dfn id=date-or-time-string>date or time string</dfn> consists of either a <a href=#concept-date title=concept-date>date</a>, a <a href=#concept-time title=concept-time>time</a>, or a <a href=#concept-datetime title=concept-datetime>global date and time</a>.<p>A string is a <dfn id=valid-date-or-time-string>valid date or time string</dfn> if it is also
+  </ol></div><h5 id=vaguer-moments-in-time><span class=secno>2.4.5.7 </span>Vaguer moments in time</h5><p>A <dfn id=date-or-time-string>date or time string</dfn> consists of either a <a href=#concept-date title=concept-date>date</a>, a <a href=#concept-time title=concept-time>time</a>, or a <a href=#concept-datetime title=concept-datetime>global date and time</a>.<p>A string is a <dfn id=valid-date-or-time-string>valid date or time string</dfn> if it is also
   one of the following:<ul><li>A <a href=#valid-date-string>valid date string</a>.</li>
 
    <li>A <a href=#valid-time-string>valid time string</a>.</li>
@@ -3389,7 +3421,7 @@
 
    </li>
 
-  </ol></div><h4 id=colors><span class=secno>2.4.5 </span>Colors</h4><p>A <dfn id=simple-color>simple color</dfn> consists of three 8-bit numbers in the
+  </ol></div><h4 id=colors><span class=secno>2.4.6 </span>Colors</h4><p>A <dfn id=simple-color>simple color</dfn> consists of three 8-bit numbers in the
   range 0..255, representing the red, green, and blue components of
   the color respectively, in the sRGB color space. <a href=#references>[SRGB]</a><p>A string is a <dfn id=valid-simple-color>valid simple color</dfn> if it is exactly
   seven characters long, and the first character is a U+0023 NUMBER
@@ -3564,7 +3596,7 @@
 
   </ol></div><hr><p class=note>The <a href=#canvas-context-2d title=canvas-context-2d>2D graphics
   context</a> has a separate color syntax that also handles
-  opacity.<h4 id=space-separated-tokens><span class=secno>2.4.6 </span>Space-separated tokens</h4><p>A <dfn id=set-of-space-separated-tokens>set of space-separated tokens</dfn> is a set of zero or
+  opacity.<h4 id=space-separated-tokens><span class=secno>2.4.7 </span>Space-separated tokens</h4><p>A <dfn id=set-of-space-separated-tokens>set of space-separated tokens</dfn> is a set of 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>
@@ -3667,7 +3699,7 @@
   token to be collapsed to a single space, except at the start and end
   of the string, where such spaces are removed.</p>
   
-  </div><h4 id=comma-separated-tokens><span class=secno>2.4.7 </span>Comma-separated tokens</h4><p>A <dfn id=set-of-comma-separated-tokens>set of comma-separated tokens</dfn> is a set of zero or
+  </div><h4 id=comma-separated-tokens><span class=secno>2.4.8 </span>Comma-separated tokens</h4><p>A <dfn id=set-of-comma-separated-tokens>set of comma-separated tokens</dfn> is a set of zero or
   more tokens each separated from the next by a single U+002C COMMA
   character (<code title="">,</code>), where tokens consist of any
   string of zero or more characters, neither beginning nor ending with
@@ -3714,39 +3746,7 @@
 
    <li><p>Return <var title="">tokens</var>.</li>  
 
-  </ol></div><h4 id=keywords-and-enumerated-attributes><span class=secno>2.4.8 </span>Keywords and enumerated attributes</h4><p>Some attributes are defined as taking one of a finite set of
-  keywords. Such attributes are called <dfn id=enumerated-attribute title="enumerated
-  attribute">enumerated attributes</dfn>. The keywords are each
-  defined to map to a particular <em>state</em> (several keywords
-  might map to the same state, in which case some of the keywords are
-  synonyms of each other; additionally, some of the keywords can be
-  said to be non-conforming, and are only in the specification for
-  historical reasons). In addition, two default states can be
-  given. The first is the <i>invalid value default</i>, the second
-  is the <i>missing value default</i>.<p>If an enumerated attribute is specified, the attribute's value
-  must be an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for one of the
-  given keywords that are not said to be non-conforming, with no
-  leading or trailing whitespace.<p>When the attribute is specified, if its value is an <span>ASCII
-  case-insensitively</span> match for one of the given keywords then
-  that keyword's state is the state that the attribute represents. If
-  the attribute value matches none of the given keywords, but the
-  attribute has an <i>invalid value default</i>, then the attribute
-  represents that state. Otherwise, if the attribute value matches
-  none of the keywords but there is a <i>missing value default</i>
-  state defined, then <em>that</em> is the state represented by the
-  attribute. Otherwise, there is no default, and invalid values must
-  be ignored.<p>When the attribute is <em>not</em> specified, if there is a
-  <i>missing value default</i> state defined, then that is the state
-  represented by the (missing) attribute. Otherwise, the absence of
-  the attribute means that there is no state represented.<p class=note>The empty string can be one of the keywords in some
-  cases. For example the <code title=attr-contenteditable><a href=#attr-contenteditable>contenteditable</a></code> attribute has
-  two states: <i>true</i>, matching the <code title="">true</code>
-  keyword and the empty string, <i>false</i>, matching <code title="">false</code> and all other keywords (it's the <i>invalid
-  value default</i>). It could further be thought of as having a
-  third state <i>inherit</i>, which would be the default when the
-  attribute is not specified at all (the <i>missing value
-  default</i>), but for various reasons that isn't the way this
-  specification actually defines it.<h4 id=syntax-references><span class=secno>2.4.9 </span>References</h4><p>A <dfn id=valid-hash-name-reference>valid hash-name reference</dfn> to an element of type <var title="">type</var> is a string consisting of a U+0023 NUMBER SIGN
+  </ol></div><h4 id=syntax-references><span class=secno>2.4.9 </span>References</h4><p>A <dfn id=valid-hash-name-reference>valid hash-name reference</dfn> to an element of type <var title="">type</var> is a string consisting of a U+0023 NUMBER SIGN
   (<code title="">#</code>) character followed by a string which
   exactly matches the value of the <code title="">name</code>
   attribute of an element in the document with type <var title="">type</var>.<div class=impl>

Received on Thursday, 2 April 2009 04:22:50 UTC