[html5] r835 - /
whatwg at whatwg.org
whatwg at whatwg.org
Mon May 21 22:39:04 PDT 2007
Author: ianh
Date: 2007-05-21 22:39:01 -0700 (Mon, 21 May 2007)
New Revision: 835
Modified:
index
source
Log:
[gow] (2) Make the .dir DOM attribute work like in IE.
Modified: index
===================================================================
--- index 2007-05-22 02:28:14 UTC (rev 834)
+++ index 2007-05-22 05:39:01 UTC (rev 835)
@@ -2582,15 +2582,22 @@
attribute must return the default value, if the content attribute has one,
or else the empty string.
- <p>If a reflecting DOM attribute is a <code>DOMString</code> attribute
- whose content attribute is not defined to contain a URI, then the getting
- and setting must be done in a transparent, case-sensitive manner, except
- if the content attribute is defined to only allow a specific set of
- values. In this latter case, the attribute's value must first be
- <span>converted to lowercase</span><!--XXX xref --> before being returned.
- If the content attribute is absent, the DOM attribute must return the
- default value, if the content attribute has one, or else the empty string.
+ <p>If a reflecting DOM attribute is a <code>DOMString</code> whose content
+ attribute is an <a href="#enumerated">enumerated attribute</a>, and the
+ DOM attribute is <dfn id=limited>limited to only known values</dfn>, then,
+ on getting, the DOM attribute must return the value associated with the
+ state the attribute is in (in its canonical case), or the empty string if
+ the attribute is in a state that has no associated keyword value; and on
+ setting, if the new value case-insensitively matches one of the keywords
+ given for that attribute, then the content attribute must be set to that
+ value, otherwise, if the new value is the empty string, then the content
+ attribute must be removed, otherwise, the setter must raise a
+ <code>SYNTAX_ERR</code> exception.
+ <p>If a reflecting DOM attribute is a <code>DOMString</code> but doesn't
+ fall into any of the above categories, then the getting and setting must
+ be done in a transparent, case-preserving manner.
+
<p>If a reflecting DOM attribute is a boolean attribute, then the DOM
attribute must return true if the attribute is set, and false if it is
absent. On setting, the content attribute must be removed if the DOM
@@ -2619,7 +2626,7 @@
string must be used as the new content attribute value.
<p>If a reflecting DOM attribute is an unsigned integer type
- (<code>unsigned long</code>) that is <dfn id=limited>limited to only
+ (<code>unsigned long</code>) that is <dfn id=limited0>limited to only
positive non-zero numbers</dfn>, then the behavior is similar to the
previous case, but zero is not allowed. On getting, the content attribute
must first be parsed according to <a href="#rules" title="rules for
@@ -6353,7 +6360,8 @@
<p>The <dfn id=dir0 title=dom-dir><code>dir</code></dfn> DOM attribute must
<a href="#reflect">reflect</a> the <code title=attr-dir><a
- href="#dir">dir</a></code> content attribute.
+ href="#dir">dir</a></code> content attribute, <a href="#limited">limited
+ to only known values</a>.
<h4 id=classes><span class=secno>3.4.5. </span>The <dfn id=class
title=attr-class><code>class</code></dfn> attribute</h4>
@@ -13682,7 +13690,7 @@
<a href="#reflect">reflect</a> the <code title=attr-media-loopcount><a
href="#loopcount">loopcount</a></code> content attribute on the <a
href="#media5">media element</a>. The value must be <a
- href="#limited">limited to only positive non-zero numbers</a>.
+ href="#limited0">limited to only positive non-zero numbers</a>.
<p>The <dfn id=currentloop
title=dom-media-currentLoop><code>currentLoop</code></dfn> attribute must
Modified: source
===================================================================
--- source 2007-05-22 02:28:14 UTC (rev 834)
+++ source 2007-05-22 05:39:01 UTC (rev 835)
@@ -1118,17 +1118,23 @@
value, if the content attribute has one, or else the empty
string.</p>
- <p>If a reflecting DOM attribute is a <code>DOMString</code>
- attribute whose content attribute is not defined to contain a URI,
- then the getting and setting must be done in a transparent,
- case-sensitive manner, except if the content attribute is defined to
- only allow a specific set of values. In this latter case, the
- attribute's value must first be <span>converted to
- lowercase</span><!--XXX xref --> before being returned. If the
- content attribute is absent, the DOM attribute must return the
- default value, if the content attribute has one, or else the empty
- string.</p>
+ <p>If a reflecting DOM attribute is a <code>DOMString</code> whose
+ content attribute is an <span>enumerated attribute</span>, and the
+ DOM attribute is <dfn>limited to only known values</dfn>, then, on
+ getting, the DOM attribute must return the value associated with the
+ state the attribute is in (in its canonical case), or the empty
+ string if the attribute is in a state that has no associated keyword
+ value; and on setting, if the new value case-insensitively matches
+ one of the keywords given for that attribute, then the content
+ attribute must be set to that value, otherwise, if the new value is
+ the empty string, then the content attribute must be removed,
+ otherwise, the setter must raise a <code>SYNTAX_ERR</code>
+ exception.</p>
+ <p>If a reflecting DOM attribute is a <code>DOMString</code> but
+ doesn't fall into any of the above categories, then the getting and
+ setting must be done in a transparent, case-preserving manner.</p>
+
<p>If a reflecting DOM attribute is a boolean attribute, then the
DOM attribute must return true if the attribute is set, and false if
it is absent. On setting, the content attribute must be removed if
@@ -5030,7 +5036,7 @@
<p>The <dfn title="dom-dir"><code>dir</code></dfn> DOM attribute
must <span>reflect</span> the <code title="attr-dir">dir</code>
- content attribute.</p>
+ content attribute, <span>limited to only known values</span>.</p>
<h4 id="classes">The <dfn title="attr-class"><code>class</code></dfn> attribute</h4>
More information about the Commit-Watchers
mailing list