This commit is contained in:
Tony Garnock-Jones 2023-12-03 23:06:54 +01:00
parent 2f34cfa588
commit 208af3ebb6
1 changed files with 1 additions and 4 deletions

View File

@ -64,10 +64,7 @@ export class HtmlFragments implements FlattenInto {
}
for (const p of Array.from(n.content.querySelectorAll('placeholder'))) {
const e = nodeMap[p.id];
if (e) {
p.parentNode!.insertBefore(e, p);
p.remove();
}
if (e) p.parentNode!.replaceChild(e, p);
}
if (this.contextElementName !== void 0) {
return Array.from(n.content.firstElementChild!.childNodes);