Skip to content

Commit

Permalink
fix: remove logic that clears element attrs (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-min authored and DylanPiercey committed Sep 27, 2023
1 parent bfa70fa commit 0310d4e
Show file tree
Hide file tree
Showing 14 changed files with 159 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,35 @@
<button>
Change
</button>
<div />
<div>
<div
data-src="embed"
id="GENERATED-0"
/>
<div
data-from="test"
data-slot="slot_1"
id="GENERATED-1"
>
<p>
test_html for slot_1
</p>
next chunk for slot_1
</div>
<div>
<div
data-from="test"
data-slot="slot_2"
id="GENERATED-2"
>
<p>
test_html for slot_2
</p>
</div>
<div
id="GENERATED-0"
id="GENERATED-3"
style="display:none"
/>
<div
id="GENERATED-1"
id="GENERATED-4"
style="display:none"
/>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,26 @@
<button>
Change
</button>
<div />
<div />
<div />
<div
data-src="embed"
id="GENERATED-0"
style="display:none"
/>
<div
data-from="test"
data-slot="slot_1"
id="GENERATED-1"
/>
<div
data-from="test"
data-slot="slot_2"
id="GENERATED-2"
/>
<div
id="GENERATED-3"
style="display:none"
/>
<div
id="GENERATED-4"
style="display:none"
/>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,30 @@
<button>
Change
</button>
<div />
<div>
<div
data-src="embed"
id="GENERATED-0"
/>
<div
data-from="test"
data-slot="slot_1"
id="GENERATED-1"
>
<p>
test_html for slot_1
</p>
</div>
<div />
<div
id="GENERATED-0"
data-from="test"
data-slot="slot_2"
id="GENERATED-2"
/>
<div
id="GENERATED-3"
style="display:none"
/>
<div
id="GENERATED-1"
id="GENERATED-4"
style="display:none"
/>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,34 @@
<button>
Change
</button>
<div />
<div>
<div
data-src="embed"
id="GENERATED-0"
/>
<div
data-from="test"
data-slot="slot_1"
id="GENERATED-1"
>
<p>
test_html for slot_1
</p>
</div>
<div>
<div
data-from="test"
data-slot="slot_2"
id="GENERATED-2"
>
<p>
test_html for slot_2
</p>
</div>
<div
id="GENERATED-0"
id="GENERATED-3"
style="display:none"
/>
<div
id="GENERATED-1"
id="GENERATED-4"
style="display:none"
/>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,35 @@
<button>
Change
</button>
<div />
<div>
<div
data-src="embed"
id="GENERATED-0"
/>
<div
data-from="test"
data-slot="slot_1"
id="GENERATED-1"
>
<p>
test_html for slot_1
</p>
after src change
</div>
<div>
<div
data-from="test"
data-slot="slot_2"
id="GENERATED-2"
>
<p>
test_html for slot_2
</p>
</div>
<div
id="GENERATED-0"
id="GENERATED-3"
style="display:none"
/>
<div
id="GENERATED-1"
id="GENERATED-4"
style="display:none"
/>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,35 @@
<div>
mounted: false
</div>
<div />
<div>
<div
data-src="embed"
id="GENERATED-0"
/>
<div
data-from="test"
data-slot="slot_1"
id="GENERATED-1"
>
<p>
test_html for slot_1
</p>
next chunk for slot_1
</div>
<div>
<div
data-from="test"
data-slot="slot_2"
id="GENERATED-2"
>
<p>
test_html for slot_2
</p>
</div>
<div
id="GENERATED-0"
id="GENERATED-3"
style="display:none"
/>
<div
id="GENERATED-1"
id="GENERATED-4"
style="display:none"
/>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,35 @@
<div>
mounted: true
</div>
<div />
<div>
<div
data-src="embed"
id="GENERATED-0"
/>
<div
data-from="test"
data-slot="slot_1"
id="GENERATED-1"
>
<p>
test_html for slot_1
</p>
next chunk for slot_1
</div>
<div>
<div
data-from="test"
data-slot="slot_2"
id="GENERATED-2"
>
<p>
test_html for slot_2
</p>
</div>
<div
id="GENERATED-0"
id="GENERATED-3"
style="display:none"
/>
<div
id="GENERATED-1"
id="GENERATED-4"
style="display:none"
/>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,35 @@
<button>
Toggle
</button>
<div />
<div>
<div
data-src="embed"
id="GENERATED-0"
/>
<div
data-from="test"
data-slot="slot_1"
id="GENERATED-1"
>
<p>
test_html for slot_1
</p>
next chunk for slot_1
</div>
<div>
<div
data-from="test"
data-slot="slot_2"
id="GENERATED-2"
>
<p>
test_html for slot_2
</p>
</div>
<div
id="GENERATED-0"
id="GENERATED-3"
style="display:none"
/>
<div
id="GENERATED-1"
id="GENERATED-4"
style="display:none"
/>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
<button>
Toggle
</button>
<div />
<div
data-src="embed"
id="GENERATED-0"
style="display:none"
/>
<div
id="GENERATED-1"
style="display:none"
/>
<div
id="GENERATED-2"
style="display:none"
/>
<script>
function $af(d,a,e,l,g,h,k,b,f,c){c=$af;if(a&&!c[a])(c[a+="$"]||(c[a]=[])).push(d);else{e=document;l=e.getElementById("af"+d);g=e.getElementById("afph"+d);h=e.createDocumentFragment();k=l.childNodes;b=0;for(f=k.length;b&lt;f;b++)h.appendChild(k.item(0));g&&g.parentNode.replaceChild(h,g);c[d]=1;if(a=c[d+"$"])for(b=0,f=a.length;b&lt;f;b++)c(a[b])}};$af(0);$af(1);$ssr_then_toggle_slot_index_C=(window.$ssr_then_toggle_slot_index_C||[]).concat({"l":1,"w":[["s0-8",0,{},{"f":1}]],"t":["PStxccR2"]})
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
<button>
Toggle
</button>
<div />
<div
data-src="embed"
id="GENERATED-0"
/>
<div />
<div />
<div
id="GENERATED-0"
id="GENERATED-1"
style="display:none"
/>
<div
id="GENERATED-1"
id="GENERATED-2"
style="display:none"
/>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
<button>
Toggle
</button>
<div />
<div
data-src="embed"
id="GENERATED-0"
style="display:none"
/>
<div
id="GENERATED-1"
style="display:none"
/>
<div
id="GENERATED-2"
style="display:none"
/>
<script>
function $af(d,a,e,l,g,h,k,b,f,c){c=$af;if(a&&!c[a])(c[a+="$"]||(c[a]=[])).push(d);else{e=document;l=e.getElementById("af"+d);g=e.getElementById("afph"+d);h=e.createDocumentFragment();k=l.childNodes;b=0;for(f=k.length;b&lt;f;b++)h.appendChild(k.item(0));g&&g.parentNode.replaceChild(h,g);c[d]=1;if(a=c[d+"$"])for(b=0,f=a.length;b&lt;f;b++)c(a[b])}};$af(0);$af(1);$ssr_then_toggle_slot_index_C=(window.$ssr_then_toggle_slot_index_C||[]).concat({"l":1,"w":[["s0-8",0,{},{"f":1}]],"t":["PStxccR2"]})
</script>
Loading

0 comments on commit 0310d4e

Please sign in to comment.