fix(input-range): securely apply css

This commit is contained in:
Thijs Louisse 2020-04-16 09:58:03 +02:00
parent 86fdc4dca2
commit ada5350a21

View file

@ -118,7 +118,7 @@ export class LionInputRange extends LocalizeMixin(LionInput) {
__setupStyleTag() {
this.__styleTag = document.createElement('style');
this.__styleTag.innerHTML = this.constructor.rangeStyles(unsafeCSS(this.scopedClass));
this.__styleTag.textContent = this.constructor.rangeStyles(unsafeCSS(this.scopedClass));
this.insertBefore(this.__styleTag, this.childNodes[0]);
}