diff --git a/src/compiler/compile/render_dom/wrappers/Element/index.ts b/src/compiler/compile/render_dom/wrappers/Element/index.ts index 83bc8be94e66..f0b83296410c 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/index.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/index.ts @@ -405,7 +405,7 @@ export default class ElementWrapper extends Wrapper { get_render_statement(block: Block) { const { name, namespace } = this.node; - if (namespace === 'http://www.w3.org/2000/svg') { + if (namespace === namespaces.svg) { return x`@svg_element("${name}")`; }