Terser
This commit is contained in:
parent
2f34cfa588
commit
208af3ebb6
|
@ -64,10 +64,7 @@ export class HtmlFragments implements FlattenInto {
|
||||||
}
|
}
|
||||||
for (const p of Array.from(n.content.querySelectorAll('placeholder'))) {
|
for (const p of Array.from(n.content.querySelectorAll('placeholder'))) {
|
||||||
const e = nodeMap[p.id];
|
const e = nodeMap[p.id];
|
||||||
if (e) {
|
if (e) p.parentNode!.replaceChild(e, p);
|
||||||
p.parentNode!.insertBefore(e, p);
|
|
||||||
p.remove();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (this.contextElementName !== void 0) {
|
if (this.contextElementName !== void 0) {
|
||||||
return Array.from(n.content.firstElementChild!.childNodes);
|
return Array.from(n.content.firstElementChild!.childNodes);
|
||||||
|
|
Loading…
Reference in New Issue