diff --git a/js/lib/dom.js b/js/lib/dom.js index 1b0a252..00051e0 100644 --- a/js/lib/dom.js +++ b/js/lib/dom.js @@ -1,6 +1,7 @@ -const range = document.createRange(); +let range = null; export function parseHTML(html) { + if (range == null) { range = document.createRange() } return range.createContextualFragment(html); }