- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 16 Aug 2010 20:57:16 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv11166 Modified Files: editing.html elements.html spec.html Log Message: Revert r3385 - there are sites that depend on .spellcheck being a boolean, it turns out. (whatwg r5299) [updated by splitter] Index: elements.html =================================================================== RCS file: /sources/public/html5/spec/elements.html,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- elements.html 11 Aug 2010 03:56:43 -0000 1.9 +++ elements.html 16 Aug 2010 20:57:14 -0000 1.10 @@ -457,7 +457,7 @@ attribute DOMString <a href="editing.html#dom-contenteditable" title="dom-contentEditable">contentEditable</a>; readonly attribute boolean <a href="editing.html#dom-iscontenteditable" title="dom-isContentEditable">isContentEditable</a>; attribute <a href="interactive-elements.html#htmlmenuelement">HTMLMenuElement</a> <a href="interactive-elements.html#dom-contextmenu" title="dom-contextMenu">contextMenu</a>; - attribute DOMString <a href="editing.html#dom-spellcheck" title="dom-spellcheck">spellcheck</a>; + attribute boolean <a href="editing.html#dom-spellcheck" title="dom-spellcheck">spellcheck</a>; // <a href="commands.html#command-api">command API</a> readonly attribute DOMString <a href="commands.html#dom-command-ro-commandtype" title="dom-command-ro-commandType">commandType</a>; Index: editing.html =================================================================== RCS file: /sources/public/html5/spec/editing.html,v retrieving revision 1.1000 retrieving revision 1.1001 diff -u -d -r1.1000 -r1.1001 --- editing.html 11 Aug 2010 03:56:43 -0000 1.1000 +++ editing.html 16 Aug 2010 20:57:13 -0000 1.1001 @@ -1762,31 +1762,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="common-dom-interfaces.html#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="infrastructure.html#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="infrastructure.html#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="infrastructure.html#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="common-dom-interfaces.html#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 Index: spec.html =================================================================== RCS file: /sources/public/html5/spec/spec.html,v retrieving revision 1.1143 retrieving revision 1.1144 diff -u -d -r1.1143 -r1.1144 --- spec.html 16 Aug 2010 20:47:27 -0000 1.1143 +++ spec.html 16 Aug 2010 20:57:14 -0000 1.1144 @@ -336,7 +336,7 @@ <a href="Overview.html">single page HTML</a>, <a href="spec.html">multipage HTML</a>, <a href="author/">author edition</a>. -This is revision 1.4221. +This is revision 1.4222. </p> <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2010 <a href="http://www.w3.org/"><abbr title="World Wide
Received on Monday, 16 August 2010 20:57:17 UTC