Skip to content

Commit 6fc71ad

Browse files
committed
🐛 fix a bug in mnml.createElement
1 parent 07b1e69 commit 6fc71ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mnml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const mnml = (() => {
3636
if (!createElementCache[tagName]) {
3737
createElementCache[tagName] = document.createElement(tagName);
3838
}
39-
return createElementCache[tagName].cloneNode() as HTMLElement;
39+
return createElementCache[tagName].cloneNode(true) as HTMLElement;
4040
};
4141

4242
const createHTML = (content: string): DocumentFragment => {

0 commit comments

Comments
 (0)