All tested on OSX 10.6.1. Obviously I've left out most of the standard, and therefore boring, inputs.
Currently, this page is only interesting in Opera 9.60+ (earlier?) 9.0+ (thanks @FataL), and partially-so in Safari 3+ / Chrome.
Safari / Chrome: autofocus
(4+), type=search
, placeholder
, maxlength
, :required
css pseudo-selector (4+), type=range
—but can't hook into <output>
.
Opera: everything else, for the most part, except for autofocus
, placeholder
, a chrome style for type=search
.
Both Opera and Safari / Chrome have type=color
implemented—but there is no fancy UI.
Click submit, or hit enter to see validation errors in Opera. Client-side validation will only work for inputs that have a name
:
Bruce Lawson writes: forms with required attrib. need name attrib too, otherwise they don't take part in submission so can't be checked
(thanks!). See also his html5 forms demo page.
Copyright © 2009 Michael Taylor and licensed under the MIT license.