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: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 11 Oct 2011 21:25:20 +0300
Message-ID: <4E948A10.9090200@cs.tut.fi>
To: www-validator@w3.org
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.

Yucca, http://www.cs.tut.fi/~jkorpela/
Received on Tuesday, 11 October 2011 18:25:51 UTC

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