[whatwg] Input color state: type mismatch

Hi,

It looks like the input color state can't suffer from type mismatch
according to the specs but it seems to be the only way to be sure the
value is correct. Email and URL states can suffer from type mismatch for
the exact same reason.

I think we should add:
"Constraint validation: While the value of the element is not a valid
lowercase simple color, the element is suffering from a type mismatch."
in the color state.
And add "Color" in the "Suffering from type mismatch" definition.

By the way, it looks like WebKit has implemented type mismatch for color
state [1] [2].

[1] https://bugs.webkit.org/show_bug.cgi?id=28966
[2] https://bugs.webkit.org/attachment.cgi?id=39044

--
Mounir

Received on Saturday, 27 March 2010 06:48:29 UTC