Skip to content

Conversation

@tamas-marton
Copy link

Custom element names require only to include at least one hyphen (a bit more strict of course) to produce valid HTML5 code. Thus it's unexpected and undesirable to prefix them with data- (which is meant to be used with attribute names only).

Custom element names require only to include at least one hyphen ([a bit more strict of course](https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name)) to produce valid HTML5 code. Thus it's unexpected and undesirable to prefix them with `data-` (which only meant to be used with attribute names).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant