Skip to content
Browse files

Added <template> + default CSS (printshiv)

  • Loading branch information...
1 parent dff2cd0 commit f282719c58f2da8a42b9edbb3acf1d7f4bb9bd93 @brianblakely brianblakely committed Feb 27, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/html5shiv-printshiv.js
View
8 src/html5shiv-printshiv.js
@@ -215,7 +215,9 @@
// corrects block display not defined in IE6/7/8/9
'article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
// adds styling not present in IE6/7/8/9
- 'mark{background:#FF0;color:#000}'
+ 'mark{background:#FF0;color:#000}' +
+ // hides non-rendered elements
+ 'template{display:none}'
);
}
if (!supportsUnknownElements) {
@@ -242,7 +244,7 @@
* @memberOf html5
* @type Array|String
*/
- 'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video',
+ 'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary template time video',
/**
* current version of html5shiv
@@ -494,4 +496,4 @@
// shiv for print
shivPrint(document);
-}(this, document));
+}(this, document));

0 comments on commit f282719

Please sign in to comment.
Something went wrong with that request. Please try again.