W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

[whatwg] Input color state: type mismatch

From: Mounir Lamouri <mounir.lamouri@gmail.com>
Date: Sat, 27 Mar 2010 14:48:29 +0100
Message-ID: <4BAE0CAD.4020802@gmail.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC