[html5] r1588 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon May 12 02:00:42 PDT 2008


Author: ianh
Date: 2008-05-12 02:00:41 -0700 (Mon, 12 May 2008)
New Revision: 1588

Modified:
   index
   source
Log:
[] (0) Make HTMLAreaElement.shape not accept invalid values.

Modified: index
===================================================================
--- index	2008-05-09 08:13:21 UTC (rev 1587)
+++ index	2008-05-12 09:00:41 UTC (rev 1588)
@@ -25,7 +25,8 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 9 May 2008</h2>
+   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 12 May
+    2008</h2>
 
    <p>You can take part in this work. <a
     href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -2993,14 +2994,15 @@
   <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=limited0>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.
+   then, on getting, the DOM attribute must return the conforming 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 the conforming value associated with the state that the
+   attribute would be in if set to the given new 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
@@ -20207,8 +20209,7 @@
 
   <p>The DOM attributes <dfn id=alt2
    title=dom-area-alt><code>alt</code></dfn>, <dfn id=coords0
-   title=dom-area-coords><code>coords</code></dfn>, <dfn id=shape0
-   title=dom-area-shape><code>shape</code></dfn>, <dfn id=href4
+   title=dom-area-coords><code>coords</code></dfn>, <dfn id=href4
    title=dom-area-href><code>href</code></dfn>, <dfn id=target2
    title=dom-area-target><code>target</code></dfn>, <dfn id=ping1
    title=dom-area-ping><code>ping</code></dfn>, <dfn id=rel2
@@ -20219,6 +20220,12 @@
    href="#reflect">reflect</a> the respective content attributes of the same
    name.
 
+  <p>The DOM attribute <dfn id=shape0
+   title=dom-area-shape><code>shape</code></dfn> must <a
+   href="#reflect">reflect</a> the <code title=attr-area-shape><a
+   href="#shape">shape</a></code> content attribute, <a
+   href="#limited0">limited to only known values</a>.
+
   <p>The DOM attribute <dfn id=rellist1
    title=dom-area-rellist><code>relList</code></dfn> must <a
    href="#reflect">reflect</a> the <code title=attr-hyperlink-rel><a

Modified: source
===================================================================
--- source	2008-05-09 08:13:21 UTC (rev 1587)
+++ source	2008-05-12 09:00:41 UTC (rev 1588)
@@ -1298,15 +1298,16 @@
   <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>
+  getting, the DOM attribute must return the conforming 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 the conforming
+  value associated with the state that the attribute would be in if
+  set to the given new 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
@@ -17920,7 +17921,6 @@
   <p>The DOM attributes <dfn
   title="dom-area-alt"><code>alt</code></dfn>, <dfn
   title="dom-area-coords"><code>coords</code></dfn>, <dfn
-  title="dom-area-shape"><code>shape</code></dfn>, <dfn
   title="dom-area-href"><code>href</code></dfn>, <dfn
   title="dom-area-target"><code>target</code></dfn>, <dfn
   title="dom-area-ping"><code>ping</code></dfn>, <dfn
@@ -17932,6 +17932,11 @@
   name.</p>
 
   <p>The DOM attribute <dfn
+  title="dom-area-shape"><code>shape</code></dfn> must
+  <span>reflect</span> the <code title="attr-area-shape">shape</code>
+  content attribute, <span>limited to only known values</span>.</p>
+
+  <p>The DOM attribute <dfn
   title="dom-area-rellist"><code>relList</code></dfn> must
   <span>reflect</span> the <code title="attr-hyperlink-rel">rel</code>
   content attribute.</p>




More information about the Commit-Watchers mailing list