Skip to content

Commit

Permalink
feat!: avoid using inline styles for CSP compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
izaera committed Aug 6, 2024
1 parent 967528c commit cb097eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yui/js/yui.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ proto = {
//Register the CSS stamp element
if (doc && !doc.getElementById(CSS_STAMP_EL)) {
el = doc.createElement('div');
el.innerHTML = '<div id="' + CSS_STAMP_EL + '" style="position: absolute !important; visibility: hidden !important"></div>';
el.innerHTML = '<div id="' + CSS_STAMP_EL + '"></div>';
YUI.Env.cssStampEl = el.firstChild;
if (doc.body) {
doc.body.appendChild(YUI.Env.cssStampEl);
Expand Down

0 comments on commit cb097eb

Please sign in to comment.