diff --git a/src/Template/Template.js b/src/Template/Template.js index a2c4d094b..fbb09a9c8 100644 --- a/src/Template/Template.js +++ b/src/Template/Template.js @@ -33,6 +33,12 @@ var contentDoc = document.implementation.createHTMLDocument('template'); var canDecorate = true; + var templateStyle = document.createElement('style'); + templateStyle.textContent = TEMPLATE_TAG + '{display:none;}'; + + var head = document.head; + head.insertBefore(templateStyle, head.firstElementChild); + /** Provides a minimal shim for the