Re:X-Tag - a cross-browser web components library
by jacobr on Friday June 15, 2012 @02:14PM
(#4117834)
Isn't there a risk of conflict with elements introduced in future versions of HTML?
[ Parent
| on HN ]
Re:X-Tag - a cross-browser web components library
by dandonkulous on Friday June 15, 2012 @02:22PM
(#4117879)
New tags are given an "x-" prefix by default, so that's not an issue. That said, you can opt out of the prefixing by changing the namespace string - but even if you remove it and there is a tag created down the road of that name, it doesn't mean your stuff is sure to break.
Re:X-Tag - a cross-browser web components library
by TobiasFunkeMD on Friday June 15, 2012 @02:19PM
(#4117864)
It looks like you have to prefix the tag names you register with an x- in your html.
Re:X-Tag - a cross-browser web components library
by dandonkulous on Friday June 15, 2012 @02:24PM
(#4117885)
The prefix is added as a default, but can be changed or even removed - it's up to you, the developer.