Fix bugs in r59360, r59361, r59363
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 11 Dec 2009 19:01:16 +0000 (19:01 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 11 Dec 2009 19:01:16 +0000 (19:01 +0000)
commit5d768de96e28b35970fc8e343e67bf3994aa20bb
tree5de9674b0b2d63dbb5d16d64d4431b3b6328753c
parent7a1448b4f02a4d64eaa4485fb2e74b199f0d888c
Fix bugs in r59360, r59361, r59363

* spellcheck is not a boolean attribute; it is an enumerated attribute
  whose possible values are "true" and "false".  If it were boolean, the
  permitted constructs would be <input spellcheck>, <input
  spellcheck="spellcheck">, and <input spellcheck="">, which would all
  set it true, and it would only be set to false if omitted entirely.
  (It would be boolean if HTML5 had invented it, but can't be for
  historical reasons.)
* spellcheck is valid on any HTML element, not just input, and so should
  be stripped on any element.

For reference, a table of all HTML5 attributes can be found at:

<http://www.whatwg.org/specs/web-apps/current-work/multipage/section-index.html#attributes-0>
includes/Html.php