Closed jaredcwhite closed 1 year ago
Hi @jaredcwhite
This is my mistake. I'll try to fix this soon.
Thanks for the report!
Thank you @jaredcwhite. I have released 0.4.0
and this issue should be fixed.
Thank you @zyc9012! I've confirmed 0.4.0 fixes the issue and I could delete the workaround.
Thanks for the great library!
I discovered one issue which is that when cloning a node which contains one or more
<template>
tags in the tree, the template elements don't clone properly. The data is still there but there's more than one DocumentFragment and the element gets serialized to<template></template>
. I came up with a workaround to create a new template element, pull the right document fragment out, and swap the bad element for the new one:example
item_node
HTML:trying to clone that node:
Environment