thunderous 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -3
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1387,9 +1387,12 @@ You must set an initial value before calling a property signal's getter.
|
|
1387
1387
|
root.innerHTML = fragmentContent;
|
1388
1388
|
if (registry !== void 0 && registry.__tagNames !== void 0) {
|
1389
1389
|
for (const tagName of registry.__tagNames) {
|
1390
|
-
const
|
1391
|
-
const
|
1392
|
-
|
1390
|
+
const upgradedElements = root.querySelectorAll(tagName);
|
1391
|
+
const nonUpgradedElements = fragment.querySelectorAll(tagName);
|
1392
|
+
upgradedElements.forEach((upgradedElement, index) => {
|
1393
|
+
const nonUpgradedElement = nonUpgradedElements[index];
|
1394
|
+
nonUpgradedElement.replaceWith(upgradedElement);
|
1395
|
+
});
|
1393
1396
|
}
|
1394
1397
|
}
|
1395
1398
|
setInnerHTML(root, fragment);
|
package/dist/index.js
CHANGED
@@ -1355,9 +1355,12 @@ You must set an initial value before calling a property signal's getter.
|
|
1355
1355
|
root.innerHTML = fragmentContent;
|
1356
1356
|
if (registry !== void 0 && registry.__tagNames !== void 0) {
|
1357
1357
|
for (const tagName of registry.__tagNames) {
|
1358
|
-
const
|
1359
|
-
const
|
1360
|
-
|
1358
|
+
const upgradedElements = root.querySelectorAll(tagName);
|
1359
|
+
const nonUpgradedElements = fragment.querySelectorAll(tagName);
|
1360
|
+
upgradedElements.forEach((upgradedElement, index) => {
|
1361
|
+
const nonUpgradedElement = nonUpgradedElements[index];
|
1362
|
+
nonUpgradedElement.replaceWith(upgradedElement);
|
1363
|
+
});
|
1361
1364
|
}
|
1362
1365
|
}
|
1363
1366
|
setInnerHTML(root, fragment);
|