From 35dd1402b033ca4d9ee5c710930773ed14323cb8 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 13 Dec 2022 23:28:07 -0800 Subject: [PATCH] fix instanceDiv --- scripts/elements.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/elements.js b/scripts/elements.js index e376936..f5792c1 100644 --- a/scripts/elements.js +++ b/scripts/elements.js @@ -58,8 +58,8 @@ class Instance extends HTMLElement { super(); let shadowRoot = this.attachShadow({mode: "open"}); - let instanceArticle = document.createElement("article"); - shadowRoot.append(instanceArticle); + let instanceDiv = document.createElement("div"); + shadowRoot.append(instanceDiv); let styleLink = document.createElement("link"); styleLink.rel = "stylesheet"; @@ -71,7 +71,7 @@ class Instance extends HTMLElement { } set data (data) { - let instanceArticle = this.shadowElement.querySelector("article"); + let instanceDiv = this.shadowElement.querySelector("div"); let instanceParagraph = document.createElement("p"); instanceParagraph.innerText = `${data.type} | ${data.vmid} | ${data.name} | ${data.status}`;