Skip to content

Commit 6b6a864

Browse files
committed
update all element variable for styleassignment
1 parent 81e0a6d commit 6b6a864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Helper/SecureHtmlRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function renderStyleAsTag(string $style, string $selector): string
158158
$exploded[1] = join('', array_slice($exploded, 1));
159159
}
160160
$styleValue = str_replace('\'', '\\\'', trim($exploded[1]));
161-
$stylesAssignments .= "$elementVariable.style.$styleAttribute = '$styleValue';\n";
161+
$stylesAssignments .= "element.style.$styleAttribute = '$styleValue';\n";
162162
}
163163

164164
$script = <<<script

0 commit comments

Comments
 (0)