Skip to content

Commit

Permalink
static-template: Fix FIE check for SVGs (#37199)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed Dec 13, 2021
1 parent da62c40 commit 5d6d649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/dom/static-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function htmlFor(nodeOrDoc) {
*/
export function svgFor(nodeOrDoc) {
const doc = nodeOrDoc.ownerDocument || /** @type {Document} */ (nodeOrDoc);
if (!svgContainer || svgContainer.ownerDocument !== svgContainer) {
if (!svgContainer || svgContainer.ownerDocument !== doc) {
svgContainer = doc.createElementNS('http://www.w3.org/2000/svg', 'svg');
}

Expand Down

0 comments on commit 5d6d649

Please sign in to comment.