W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

Re: Custom Elements: 'data-' attributes

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 7 May 2014 13:19:41 +0100
Message-ID: <CADnb78h+w-h1bL3XESZjFA-hHi2stW65DBhdvLrbq3azh9t28g@mail.gmail.com>
To: Wilson Page <wilsonpage@me.com>, Ian Hickson <ian@hixie.ch>, Dimitri Glazkov <dglazkov@google.com>
Cc: public-webapps@w3c.org
On Tue, May 6, 2014 at 7:19 PM, Wilson Page <wilsonpage@me.com> wrote:
> I'm unsure whether or not it is safe to use custom attributes without the
> 'data-', I've heard mixed opinions. How do we know that chosen attributes
> won't someday be global attributes?

Yeah, we should figure something out here. From one perspective you've
already namespaced your element by using a dash. However, given the
existence of an ever growing set of global attributes you probably do
not want to clash with those.

Maybe we should allow any attribute as long as it contains a dash (and
does not match a set of existing names)? Still seems somewhat
suboptimal.


-- 
http://annevankesteren.nl/
Received on Wednesday, 7 May 2014 12:20:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:24 UTC