Re: Custom Elements: 'data-' attributes

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