Re: HTML 5 attributes that can take empty strings are validating with just an attribute name

11.10.2011 20:45, David Dorward wrote:

> I don't know if this is a bug in the experimental HTML 5 validator or
 > if I'm missing something in the specification, but should this document
 > (given the title and alt attributes) validate?
> <meta charset=utf-8>
> <title>Test</title>
> <img title alt src='/'>

As far as I can see, it conforms to HTML5 as defined in current drafts, 
with those attributes defaulted to empty strings, see

It's odd, if you ask me, but the rationale is probably the idea of 
allowing "boolean" attributes like disabled in a simplistic manner.


Received on Tuesday, 11 October 2011 18:25:51 UTC