Skip to content

Commit c63a890

Browse files
committed
[fix] Script closing tag
1 parent 6945c1a commit c63a890

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dom-renderer",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"license": "LGPL-3.0-or-later",
55
"author": "[email protected]",
66
"description": "A light-weight DOM Renderer supports Web components standard & TypeScript language",

source/dist/VDOM.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class VNode extends VNodeMeta {
125125
}
126126
yield `</${tagName}>`;
127127
} else {
128-
yield ` />`;
128+
yield tagName === 'script' ? '></script>' : ' />';
129129
}
130130
}
131131
}

0 commit comments

Comments
 (0)