fix(browser_adapter): HTMLStyleElement.innerText does not trigger creation of CSS rules (Firefox)
This commit is contained in:
parent
661a04798e
commit
b2a24e021f
|
@ -192,8 +192,8 @@ createScriptTag(attrName: string, attrValue: string, doc = document): HTMLScript
|
|||
return el;
|
||||
}
|
||||
createStyleElement(css: string, doc = document): HTMLStyleElement {
|
||||
var style = <HTMLStyleElement>doc.createElement('STYLE');
|
||||
style.innerText = css;
|
||||
var style = <HTMLStyleElement>doc.createElement('style');
|
||||
this.appendChild(style, this.createTextNode(css));
|
||||
return style;
|
||||
}
|
||||
createShadowRoot(el: HTMLElement): DocumentFragment {
|
||||
|
|
Loading…
Reference in New Issue