Skip to content

Commit beb995d

Browse files
committed
Added <template> + default CSS
1 parent f65f9b0 commit beb995d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/html5shiv.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@
215215
// corrects block display not defined in IE6/7/8/9
216216
'article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
217217
// adds styling not present in IE6/7/8/9
218-
'mark{background:#FF0;color:#000}'
218+
'mark{background:#FF0;color:#000}' +
219+
// hides non-rendered elements
220+
'template{display:none}'
219221
);
220222
}
221223
if (!supportsUnknownElements) {
@@ -242,7 +244,7 @@
242244
* @memberOf html5
243245
* @type Array|String
244246
*/
245-
'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',
247+
'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',
246248

247249
/**
248250
* current version of html5shiv
@@ -296,4 +298,4 @@
296298
// shiv the document
297299
shivDocument(document);
298300

299-
}(this, document));
301+
}(this, document));

0 commit comments

Comments
 (0)