Re:Introducing Custom Elements
by Touche on Saturday November 19, 2016 @01:37PM
(#12994851)
This one is easier and more universal than the other approaches. There's not setup involved like:
You just put the markup on the page and include the JavaScript:
And of course, you could do querySelector before that existed but that doesn't mean there wasn't benefit to it being native.
[ Parent
| on HN ]
There are no comments on this comment yet.