Skip to content

Commit

Permalink
fix: issue with streaming parsing in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Oct 26, 2021
1 parent abccf9f commit 51650e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export = function writableDOM(
}

const doc = document.implementation.createHTMLDocument("");
doc.write("<template>");
doc.write("<!DOCTYPE html><body><template>");
const root = (doc.body.firstChild as HTMLTemplateElement).content;
const walker = doc.createTreeWalker(root);
const targetNodes = new WeakMap<Node, Node>([[root, target]]);
Expand Down

0 comments on commit 51650e1

Please sign in to comment.