Merge pull request #687 from ing-bank/fix/input-range-secure-css

fix(input-range): securely apply css
This commit is contained in:
gerjanvangeest 2020-04-16 11:02:34 +02:00 committed by GitHub
commit 1790df79b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ export class LionInputRange extends LocalizeMixin(LionInput) {
__setupStyleTag() { __setupStyleTag() {
this.__styleTag = document.createElement('style'); 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]); this.insertBefore(this.__styleTag, this.childNodes[0]);
} }