Skip to content

Commit

Permalink
Remove default type on imported style tags.
Browse files Browse the repository at this point in the history
Fix that targets issue webpack-contrib#366.
According to MDN web docs, there is 'very little reason to include this in modern web documents.' [style[type]](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#attr-type)
  • Loading branch information
pekaaw committed Mar 15, 2019
1 parent 8003966 commit b77dec6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/addStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@ function removeStyleElement (style) {
function createStyleElement (options) {
var style = document.createElement("style");

if(options.attrs.type === undefined) {
options.attrs.type = "text/css";
}

if(options.attrs.nonce === undefined) {
var nonce = getNonce();
if (nonce) {
Expand Down

0 comments on commit b77dec6

Please sign in to comment.