Hacker News new | ask | show | jobs
by hxn 3894 days ago
The template element looks very useful. Basic support in old browsers should be possible by simply setting it to display:none.
1 comments

There are some key features of template that hiding it would not accomplish, namely that the contents like scripts are guaranteed not to execute until they've been cloned/stamped.

Fortunately there are already polyfills for that: http://webcomponents.org/