W3C home > Mailing lists > Public > www-validator@w3.org > October 2011

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

From: (unknown charset) Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Tue, 11 Oct 2011 20:26:49 +0200
To: (unknown charset) David Dorward <david@dorward.me.uk>
Cc: (unknown charset) "www-validator@w3.org Community" <www-validator@w3.org>
Message-ID: <20111011202649971848.f728bd35@xn--mlform-iua.no>
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?
> <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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:49 GMT