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

Re: Custom Elements: 'data-' attributes

From: David Håsäther <hasather@gmail.com>
Date: Thu, 15 May 2014 18:22:03 +0200
Message-ID: <CAMPaTMebu1KCGOGFMf9EfjuAyFvJX-vR6NekFQs_AtL-Zi3amg@mail.gmail.com>
To: Soledad Penadés <sole@mozilla.com>, "public-webapps@w3c.org" <public-webapps@w3c.org>
On Wed, May 14, 2014 at 1:18 PM, Soledad Penadés <sole@mozilla.com> wrote:

> And that's where I suggested leaving attribute handling to the component. If
> it "self-registers" as handling a certain attribute, then don't let the UA
> handle it as it would do if unregistered.

Very much like the idea.

A potential issue is if the element is used before the element
definition is registered. Then it would first be parsed as the global
attribute, but what happens when it has been registered? Changing the
semantics of the attribute mid-way is a bit weird.

-- 
David Håsäther
Received on Thursday, 15 May 2014 16:22:51 UTC

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