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

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

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Tue, 11 Oct 2011 20:26:49 +0200
To: David Dorward <david@dorward.me.uk>
Cc: "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?
> 
> <!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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:23 UTC