hixie: Revert r3385 - there are sites that depend on .spellcheck being a boolean, it turns out. (whatwg r5299)

hixie: Revert r3385 - there are sites that depend on .spellcheck being a
boolean, it turns out. (whatwg r5299)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4221&r2=1.4222&f=h
http://html5.org/tools/web-apps-tracker?from=5298&to=5299

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4221
retrieving revision 1.4222
diff -u -d -r1.4221 -r1.4222
--- Overview.html 16 Aug 2010 20:38:29 -0000 1.4221
+++ Overview.html 16 Aug 2010 20:46:44 -0000 1.4222
@@ -7814,7 +7814,7 @@
            attribute DOMString <a href="#dom-contenteditable" title="dom-contentEditable">contentEditable</a>;
   readonly attribute boolean <a href="#dom-iscontenteditable" title="dom-isContentEditable">isContentEditable</a>;
            attribute <a href="#htmlmenuelement">HTMLMenuElement</a> <a href="#dom-contextmenu" title="dom-contextMenu">contextMenu</a>;
-           attribute DOMString <a href="#dom-spellcheck" title="dom-spellcheck">spellcheck</a>;
+           attribute boolean <a href="#dom-spellcheck" title="dom-spellcheck">spellcheck</a>;
 
   // <a href="#command-api">command API</a>
   readonly attribute DOMString <a href="#dom-command-ro-commandtype" title="dom-command-ro-commandType">commandType</a>;
@@ -49870,31 +49870,26 @@
 
    <dd>
 
-    <p>Returns "<code title="">true</code>", "<code title="">false</code>", or "<code title="">default</code>", based
-    on the state of the <code title="attr-spellcheck"><a href="#attr-spellcheck">spellcheck</a></code> attribute.</p>
-
-    <p>Can be set, to change that state.</p>
+    <p>Returns true if the element is to have its spelling and grammar
+    checked; otherwise, returns false.</p>
 
-    <p>Throws a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception if the new value
-    isn't one of those strings.</p>
+    <p>Can be set, to override the default and set the <code title="attr-spellcheck"><a href="#attr-spellcheck">spellcheck</a></code> content attribute.</p>
 
    </dd>
 
   </dl><div class="impl">
 
   <p>The <dfn id="dom-spellcheck" title="dom-spellcheck"><code>spellcheck</code></dfn> IDL
-  attribute, on getting, must return the string "<code title="">true</code>" if the content attribute is set to the true
-  state, <code title="">false</code>" if the content attribute is set
-  to the false state, and "<code title="">default</code>"
-  otherwise. On setting, if the new value is an <a href="#ascii-case-insensitive">ASCII
-  case-insensitive</a> match for the string "<code title="">default</code>" then the content attribute must be removed,
-  if the new value is an <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for
-  the string "<code title="">true</code>" then the content attribute
-  must be set to the string "<code title="">true</code>", if the new
-  value is an <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for the string
-  "<code title="">false</code>" then the content attribute must be set
-  to the string "<code title="">false</code>", and otherwise the
-  attribute setter must raise a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception.</p>
+  attribute, on getting, must return true if the element's <code title="attr-spellcheck"><a href="#attr-spellcheck">spellcheck</a></code> content attribute is in
+  the <i>true</i> state, or if the element's <code title="attr-spellcheck"><a href="#attr-spellcheck">spellcheck</a></code> content attribute is in
+  the <i>default</i> state and the element's <a href="#concept-spellcheck-default" title="concept-spellcheck-default">default behavior</a> is <a href="#concept-spellcheck-default-true" title="concept-spellcheck-default-true">true-by-default</a>, or
+  if the element's <code title="attr-spellcheck"><a href="#attr-spellcheck">spellcheck</a></code>
+  content attribute is in the <i>default</i> state and the element's
+  <a href="#concept-spellcheck-default" title="concept-spellcheck-default">default behavior</a> is
+  <a href="#concept-spellcheck-default-inherit" title="concept-spellcheck-default-inherit">inherit-by-default</a>
+  and the element's parent element's <code title="dom-spellcheck"><a href="#dom-spellcheck">spellcheck</a></code> IDL attribute would return
+  true; otherwise, if none of those conditions applies, then the
+  attribute must instead return false.</p>
 
   <p class="note">The <code title="dom-spellcheck"><a href="#dom-spellcheck">spellcheck</a></code>
   IDL attribute is not affected by user preferences that override the

Received on Monday, 16 August 2010 20:47:28 UTC