Skip to content

Commit

Permalink
[fix] Script closing tag
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Nov 14, 2024
1 parent 6945c1a commit c63a890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dom-renderer",
"version": "2.5.0",
"version": "2.5.1",
"license": "LGPL-3.0-or-later",
"author": "shiy2008@gmail.com",
"description": "A light-weight DOM Renderer supports Web components standard & TypeScript language",
Expand Down
2 changes: 1 addition & 1 deletion source/dist/VDOM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class VNode extends VNodeMeta {
}
yield `</${tagName}>`;
} else {
yield ` />`;
yield tagName === 'script' ? '></script>' : ' />';
}
}
}
Expand Down

0 comments on commit c63a890

Please sign in to comment.