- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Sun, 02 Jun 2013 22:32:18 +0300
- To: "mih1406@gmail.com" <mih1406@gmail.com>
- CC: www-validator@w3.org
2013-06-02 8:38, mih1406@gmail.com wrote: > I am checking my documents against HTML5 using the validator. I noticed > that the validator does not complain for the fact that I am using > spellcheck="true" or spellcheck="true" for input elements of types > checkbox and radio. That's right. It's correct because the spellcheck attribute has been defined as global, i.e. as applicable to any element: http://www.w3.org/TR/html5/dom.html#global-attributes It does not have an *effect* on most elements, but it's still permitted, for simplicity I guess. The HTML5 CR is somewhat vague: http://www.w3.org/TR/html5/editing.html#attr-spellcheck Technically it says that the *value* of an input element will be checked (unless it is readonly or disabled). Technically this seems to imply that the value of the value=... attribute is to be spellchecked, in the case of <input type=checkbox ...> or <input type=radio ...>. Browsers that support spellchecking don't seem to do such checks, and it is difficult to see why they should do so and how they could do so. But this is outside the scope of validation - I have submitted a bug report on this, regarding the WHATWG HTML document: https://www.w3.org/Bugs/Public/show_bug.cgi?id=22237 Yucca
Received on Sunday, 2 June 2013 19:32:49 UTC