From 7b834da26bd2f49eaa86913a548293a27da43732 Mon Sep 17 00:00:00 2001 From: Ron Snyder Date: Wed, 4 Oct 2023 21:04:58 -0400 Subject: [PATCH] Deploy test --- juncture/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/juncture/index.js b/juncture/index.js index 36d5e76df..3d28580af 100644 --- a/juncture/index.js +++ b/juncture/index.js @@ -111,12 +111,15 @@ function createApp() { Array.from(tmp.querySelectorAll('[data-id]')) .forEach(seg => { + if (seg.tagName === 'SECTION') return + seg.setAttribute('data-seg', '') let id = seg.getAttribute('data-id') || '' let wrapper = document.createElement('div') wrapper.setAttribute('data-id', id) + wrapper.setAttribute('data-wrapper', '') wrapper.id = id wrapper.className = seg.className - // seg.removeAttribute('id') + seg.removeAttribute('id') seg.removeAttribute('data-id') seg.className = '' wrapper.appendChild(seg.cloneNode(true))