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:
Taymon A. Beal 2020-06-02 11:21:59 -04:00 committed by atscott
parent 952710b43b
commit 5471789664
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export class CssKeyframesDriver implements AnimationDriver {
keyframeStr += `}\n`;
const kfElm = document.createElement('style');
kfElm.innerHTML = keyframeStr;
kfElm.textContent = keyframeStr;
return kfElm;
}