refactor(animations): do not assign to innerHTML (#37397)
This should not change behavior, but it prevents false-positive warnings in various static analysis tools, including tools used internally at Google. PR Close #37397
This commit is contained in:
parent
952710b43b
commit
5471789664
|
@ -72,7 +72,7 @@ export class CssKeyframesDriver implements AnimationDriver {
|
||||||
keyframeStr += `}\n`;
|
keyframeStr += `}\n`;
|
||||||
|
|
||||||
const kfElm = document.createElement('style');
|
const kfElm = document.createElement('style');
|
||||||
kfElm.innerHTML = keyframeStr;
|
kfElm.textContent = keyframeStr;
|
||||||
return kfElm;
|
return kfElm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue