Repair placeholder replacement in non-HTML settings

This commit is contained in:
Tony Garnock-Jones 2022-01-24 09:09:58 +01:00
parent ff75fc7107
commit fb83b0e524
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ export class HtmlFragments implements FlattenInto {
} else {
n.innerHTML = source;
}
for (const p of Array.from(n.querySelectorAll('placeholder'))) {
for (const p of Array.from(n.content.querySelectorAll('placeholder'))) {
const e = nodeMap[p.id];
if (e) {
p.parentNode!.insertBefore(e, p);