devpunks / snuggsi

snuggsi ツ - Easy Custom Elements in ~1kB
https://snuggsi.com
MIT License
395 stars 17 forks source link

" Custom element name must contain a hyphen " #170

Closed ghost closed 6 years ago

ghost commented 6 years ago

❤️

I do not use hyphenated custom element names.

on some page loads the script will fail to define custom element many it works just fine

was wondering if maybe I'm loading something out of order...

using current build

source

thanks snuggs 💎

snuggs commented 6 years ago

@ltdan1999 did you get this all sorted out?

Actually hyphens are a mandatory part of the custom element name. Although frameworks like React use camel casing for their "custom elements", in actuality has been made a part of the spec. Please see https://github.com/devpunks/snuggsi/issues/86

/cc @tmornini @brandondees @btakita