diff options
Diffstat (limited to 'alpinejs/packages/morph/dist/cdn.js')
-rw-r--r-- | alpinejs/packages/morph/dist/cdn.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alpinejs/packages/morph/dist/cdn.js b/alpinejs/packages/morph/dist/cdn.js index 868db84..3971815 100644 --- a/alpinejs/packages/morph/dist/cdn.js +++ b/alpinejs/packages/morph/dist/cdn.js @@ -55,7 +55,9 @@ return new DomManager(el); } function createElement(html) { - return document.createRange().createContextualFragment(html).firstElementChild; + const template = document.createElement("template"); + template.innerHTML = html; + return template.content.firstElementChild; } function textOrComment(el) { return el.nodeType === 3 || el.nodeType === 8; |