IME flexibility like this is a net negative.

What I do is:

• define() method like this that uses a static tagName
• no option to change it - you will learn to love my (namespaced) tag names
• MyLib.defineElements() defines them all, but you must call it
• or call define() on your own per element
Reposted from Zach Leatherman
?nodefine — a pattern to skip automatic Custom Element definitions

www.zachleat.com/web/nodefine/

Comments