tungsten 0.1.57 → 0.1.58
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrateUpdateVdom.d.ts","sourceRoot":"","sources":["../../src/update/integrateUpdateVdom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"integrateUpdateVdom.d.ts","sourceRoot":"","sources":["../../src/update/integrateUpdateVdom.ts"],"names":[],"mappings":"AAWA,OAAO,EACH,WAAW,EAAwC,eAAe,EAIrE,MAAM,mBAAmB,CAAA;AAQ1B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAejD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAShD,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC5C,wBAAwB,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,KAAK,GAAG,CAAA;IACpE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACzB,CAAA;AASD,wBAAsB,0BAA0B,CAC5C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,GAC/C,OAAO,CAAC,YAAY,CAAC,CAgGvB;AAgiBD,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,QAkK7E"}
|
|
@@ -717,6 +717,11 @@ async function createHtmlElement(tungstenElement, instance, node, domPointer, pa
|
|
|
717
717
|
debug('-createHtmlElement', node);
|
|
718
718
|
const htmlEl = document.createElement(node[$type]);
|
|
719
719
|
addAttributes(node, htmlEl);
|
|
720
|
+
if (node[$type] === 'head') {
|
|
721
|
+
for (const el of instance.persistentHeadChildren) {
|
|
722
|
+
htmlEl.appendChild(el.cloneNode(true));
|
|
723
|
+
}
|
|
724
|
+
}
|
|
720
725
|
debug('dom parent', domPointer.parent);
|
|
721
726
|
debug('dom parent children length', domPointer.parent.childNodes.length);
|
|
722
727
|
debug('domPointer.index', domPointer.index);
|
|
@@ -736,7 +741,7 @@ async function createHtmlElement(tungstenElement, instance, node, domPointer, pa
|
|
|
736
741
|
tungstenElement: tungstenElement,
|
|
737
742
|
instance,
|
|
738
743
|
newNode: node[$props].children,
|
|
739
|
-
domPointer: new DomPointer(htmlEl,
|
|
744
|
+
domPointer: new DomPointer(htmlEl, htmlEl.childNodes.length),
|
|
740
745
|
parentNode: node
|
|
741
746
|
});
|
|
742
747
|
return {
|