fix: Adds type attr. to the generated link element
Although the rel element is set to stylesheet the created link element does not specify the MIME type of the linked resource. The MIME type is set to text/css similar to the case when an style element is created. This change also syncs with the addStylesUrl.js behavior where the type attribute is set.master
parent
e280cb6bd9
commit
2a2f261ef9
|
@ -136,6 +136,7 @@ function createStyleElement(options) {
|
|||
function createLinkElement(options) {
|
||||
var linkElement = document.createElement("link");
|
||||
linkElement.rel = "stylesheet";
|
||||
linkElement.type = "text/css";
|
||||
insertStyleElement(options, linkElement);
|
||||
return linkElement;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue