Skip to content

Commit 4c0857d

Browse files
author
Alexander Farkas
committed
Merge pull request #87 from mathiasbynens/master
Add `main { display: block; }`
2 parents a487592 + 354ee02 commit 4c0857d

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
@@ -81,7 +81,7 @@
8181
var elements = html5.elements;
8282
return typeof elements == 'string' ? elements.split(' ') : elements;
8383
}
84-
84+
8585
/**
8686
* Returns the data associated to the given document
8787
* @private
@@ -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,nav,section{display:block}' +
216+
'article,aside,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
);

src/html5shiv.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
var elements = html5.elements;
8282
return typeof elements == 'string' ? elements.split(' ') : elements;
8383
}
84-
84+
8585
/**
8686
* Returns the data associated to the given document
8787
* @private
@@ -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,nav,section{display:block}' +
216+
'article,aside,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
);

0 commit comments

Comments
 (0)