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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 4 Nov 2009 08:03:26 -0800
Message-ID: <dd0fbad0911040803k4c1c8c0s7a02382a520713ff@mail.gmail.com>
On Wed, Nov 4, 2009 at 6:25 AM, Aryeh Gregor <Simetrical+w3c at gmail.com> wrote:
> 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
> "data-".

And/or write an "applicable specification" that defines the attribute
and becomes accepted enough by the community to be recognized by

Received on Wednesday, 4 November 2009 08:03:26 UTC

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