3 ms·
Custom elements need to feature a "-" in the name.
by TekMol 4y ago
Custom elements need to feature a "-" in the name.
- eyelidlessness 4y agoOnly if you need to define (JS) behavior for them. If you don’t, any arbitrary name will do (and will be an instance of HTMLUnknownElement[1]). Using hyphenated names is still advised, to avoid name collisions with future standard elements. 1: https://developer.mozilla.org/en-US/docs/Web/API/HTMLUnknownElement https://developer.mozilla.org/en-US/docs/Web/API/HTMLUnknown...