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

David Dorward, Tue, 11 Oct 2011 18:45:35 +0100:
> 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?
> 
> <!DOCTYPE HTML>
> <meta charset=utf-8>
> <title>Test</title>
> <img title alt src='/'>

Yes, it should. The @title and @alt of that <img> are empty. So <img 
alt=''> and <img alt > are equal.
-- 
Leif H Silli

Received on Tuesday, 11 October 2011 18:27:28 UTC