W3C home > Mailing lists > Public > www-validator@w3.org > June 2013

Re: spellcheck for textbox and radio buttons!!

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sun, 02 Jun 2013 22:32:18 +0300
Message-ID: <51AB9DC2.9060605@cs.tut.fi>
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:

It does not have an *effect* on most elements, but it's still permitted, 
for simplicity I guess. The HTML5 CR is somewhat vague:

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:

Received on Sunday, 2 June 2013 19:32:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC