From 1b57b587c720205d6b8e1836be37252295ab51d2 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 14 Dec 2022 16:07:25 -0800 Subject: [PATCH] fix instance article content --- scripts/elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/elements.js b/scripts/elements.js index 305bb5e..8bab57a 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -4,7 +4,7 @@ class Instance extends HTMLElement { let shadowRoot = this.attachShadow({mode: "open"}); let instanceTemplate = document.querySelector("#instance-template"); - let instanceTemplateContent = instanceTemplate.textContent; + let instanceTemplateContent = instanceTemplate.content; shadowRoot.append(instanceTemplateContent.cloneNode(true)); let styleLink = document.createElement("link");