Re: Custom Elements: 'data-' attributes

On 7 May 2014 20:03, Ian Hickson <ian@hixie.ch> wrote:

>
> Requiring a dash is pretty ugly. I would allow any attribute, and we'll
> just have to be careful when introducing new global ones.

I think the ship HMS Ugly has already sailed, given a dash is
compulsory for the names of custom elements. Also, requiring a dash in
the names of custom attributes would establish an easily-memorable
convention for authors, and safeguard new global attributes.

Bruce

Received on Thursday, 8 May 2014 07:10:43 UTC