Skip to content

Commit

Permalink
[agiow] (1) Revert r3385 - there are sites that depend on .spellcheck…
Browse files Browse the repository at this point in the history
… being a boolean, it turns out.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10276

git-svn-id: http://svn.whatwg.org/webapps@5299 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 16, 2010
1 parent 5708c00 commit 2953ae8
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 63 deletions.
33 changes: 14 additions & 19 deletions complete.html
Expand Up @@ -9017,7 +9017,7 @@ <h4 id=elements-in-the-dom><span class=secno>3.2.2 </span>Elements in the DOM</h
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>;
Expand Down Expand Up @@ -67369,31 +67369,26 @@ <h3 id=spelling-and-grammar-checking><span class=secno>8.8 </span>Spelling and g

<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>Returns true if the element is to have its spelling and grammar
checked; otherwise, returns false.</p>

<p>Can be set, to change that state.</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
Expand Down
33 changes: 14 additions & 19 deletions index
Expand Up @@ -8941,7 +8941,7 @@ interface <dfn id=xmldocumentloader>XMLDocumentLoader</dfn> {
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>;
Expand Down Expand Up @@ -67322,31 +67322,26 @@ interface <dfn id=navigatorabilities>NavigatorAbilities</dfn> {

<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>Returns true if the element is to have its spelling and grammar
checked; otherwise, returns false.</p>

<p>Can be set, to change that state.</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
Expand Down
47 changes: 22 additions & 25 deletions source
Expand Up @@ -9028,7 +9028,7 @@ interface <dfn>XMLDocumentLoader</dfn> {
attribute DOMString <span title="dom-contentEditable">contentEditable</span>;
readonly attribute boolean <span title="dom-isContentEditable">isContentEditable</span>;
attribute <span>HTMLMenuElement</span> <span title="dom-contextMenu">contextMenu</span>;
attribute DOMString <span title="dom-spellcheck">spellcheck</span>;
attribute boolean <span title="dom-spellcheck">spellcheck</span>;

// <span>command API</span>
readonly attribute DOMString <span title="dom-command-ro-commandType">commandType</span>;
Expand Down Expand Up @@ -76328,38 +76328,35 @@ interface <dfn>NavigatorAbilities</dfn> {

<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">spellcheck</code> attribute.</p>
<p>Returns true if the element is to have its spelling and grammar
checked; otherwise, returns false.</p>

<p>Can be set, to change that state.</p>

<p>Throws a <code>SYNTAX_ERR</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">spellcheck</code> content attribute.</p>

</dd>

</dl>

<div class="impl">

<p>The <dfn
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 <span>ASCII
case-insensitive</span> match for the string "<code
title="">default</code>" then the content attribute must be removed,
if the new value is an <span>ASCII case-insensitive</span> 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 <span>ASCII case-insensitive</span> 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>SYNTAX_ERR</code> exception.</p>
<p>The <dfn title="dom-spellcheck"><code>spellcheck</code></dfn> IDL
attribute, on getting, must return true if the element's <code
title="attr-spellcheck">spellcheck</code> content attribute is in
the <i>true</i> state, or if the element's <code
title="attr-spellcheck">spellcheck</code> content attribute is in
the <i>default</i> state and the element's <span
title="concept-spellcheck-default">default behavior</span> is <span
title="concept-spellcheck-default-true">true-by-default</span>, or
if the element's <code title="attr-spellcheck">spellcheck</code>
content attribute is in the <i>default</i> state and the element's
<span title="concept-spellcheck-default">default behavior</span> is
<span
title="concept-spellcheck-default-inherit">inherit-by-default</span>
and the element's parent element's <code
title="dom-spellcheck">spellcheck</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">spellcheck</code>
IDL attribute is not affected by user preferences that override the
Expand Down

0 comments on commit 2953ae8

Please sign in to comment.