Skip to content

Commit 51da98d

Browse files
author
Nelson Menezes
committed
Added support for dialog element
1 parent e4aee47 commit 51da98d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/html5shiv-printshiv.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
214214
data.hasCSS = !!addStyleSheet(ownerDocument,
215215
// corrects block display not defined in IE6/7/8/9
216-
'article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
216+
'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
217217
// adds styling not present in IE6/7/8/9
218218
'mark{background:#FF0;color:#000}' +
219219
// hides non-rendered elements
@@ -244,7 +244,7 @@
244244
* @memberOf html5
245245
* @type Array|String
246246
*/
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',
247+
'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video',
248248

249249
/**
250250
* current version of html5shiv

src/html5shiv.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
214214
data.hasCSS = !!addStyleSheet(ownerDocument,
215215
// corrects block display not defined in IE6/7/8/9
216-
'article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
216+
'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
217217
// adds styling not present in IE6/7/8/9
218218
'mark{background:#FF0;color:#000}' +
219219
// hides non-rendered elements
@@ -244,7 +244,7 @@
244244
* @memberOf html5
245245
* @type Array|String
246246
*/
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',
247+
'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video',
248248

249249
/**
250250
* current version of html5shiv

0 commit comments

Comments
 (0)