We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MDS tell us: The innerHTML property is read-only on the col, colGroup, frameSet, html, head, style, table, tBody, tFoot, tHead, title, and tr objects.
so:
The insertStyle function will get error in Ie8. By the way, document.head in Ie8 will get undefined.
document.head
solve:
function insertStyle (css) { if (!css) return; if (typeof (window) == 'undefined') return; var style = document.createElement('style'); if ('styleSheet' in style) { // to compatible IE8 style = document.createElement('div'); style.innerHTML = 'x<style>'+css+'</style>'; style = style.lastChild; } else { style.innerHTML = css; } var head = document.getElementsByTagName('head')[0]; head.appendChild(style); return css; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
MDS tell us:
The innerHTML property is read-only on the col, colGroup, frameSet, html, head, style, table, tBody, tFoot, tHead, title, and tr objects.
so:
The insertStyle function will get error in Ie8. By the way,
document.head
in Ie8 will get undefined.solve:
The text was updated successfully, but these errors were encountered: