devpunks / snuggsi

snuggsi ツ - Easy Custom Elements in ~1kB

Home Page:https://snuggsi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

" Custom element name must contain a hyphen "

opened this issue · comments

❤️

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 💎

@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 #86

/cc @tmornini @brandondees @btakita