HTML5 forms: more accurate tests for html5test.com
html5test is a good test.
It's easy to understand. Neils found a good way to rate HTML5 support.
It's not perfect, but I think a perfect test is not possible if you want
to keep it simple. But there's still room for improvements.
Look at the current version of html5test, the Forms part.
Webkit has a good score (34/38, 89%), although their HTML5 forms support is incomplete (no UI, validity barely implemented, but they expose the
input type). The way forms are tested is not that accurate:
just testing if the
input type is supported as a DOM property is not enough.
The good way is to check that the constraint is actually applied (
I also added some tests for
label.control. I'm also testing the forms related CSS selectors (
I sent a patch to Neils. You can see the result here beta.html5test.com. Basically, webkit score is less good now for the forms section (29/45, 64%), but still better than Firefox4 ;) (and still very good for Opera).
Firefox4 nightlies now support part of the HTML5 form specification (talk to Mounir, the main developer). The latest nightly's is 24/45 (53%), and it'going to get better :)