W3C home > Mailing lists > Public > public-html@w3.org > May 2008

Re: Is "data-" a conforming data-* attribute name?

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 27 May 2008 10:18:56 +0200
To: "Henri Sivonen" <hsivonen@iki.fi>, "HTML WG" <public-html@w3.org>
Message-ID: <op.ubsz1unz64w2qv@annevk-t60.oslo.opera.com>

On Tue, 27 May 2008 10:00:48 +0200, Henri Sivonen <hsivonen@iki.fi> wrote:
>> Every HTML element  may have any number of attributes starting with the  
>> string "data-" specified, with any value.
>
> The attribute name "data-" starts with "data-". Is it intentional to  
> allow "data-" as a conforming data-* attribute?
>
> (The (X)HTML5 preset schemas on Validator.nu are now magic [and allow]  
> attributes whose name starts with "data-" on elements in the HTML  
> namespace-- including "data-" itself.)

I don't think it makes sense to allow "data-" as you can't access it using  
dataset. Unless dataset[""] = x works I suppose. Does it?


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Tuesday, 27 May 2008 08:19:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:55 UTC