W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

[whatwg] Custom attributes [was: Adding a src attribute to all elements]

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Wed, 4 Nov 2009 09:25:58 -0500
Message-ID: <7c2a12e20911040625o24ccea7cy6f133954333b4bab@mail.gmail.com>
On Wed, Nov 4, 2009 at 5:57 AM, Markus Ernst <derernst at gmx.ch> wrote:
> While experimenting with the validator (at validator.w3.org), I found that
> it does actually not complain about <h1 src="whatever.gif">. Thus, Tab's
> example would be perfectly valid. The validator even seems to accept any
> custom attribute name on any element - this is said to be valid HTML5:
> . . .
> Is this a mistake in the validator, due to its experimental state, or is
> there something missing in the spec?

A mistake in the validator.  http://validator.nu/ gives the correct
answer: it's invalid.  You need to prefix custom attributes with
Received on Wednesday, 4 November 2009 06:25:58 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC