Skip to content

Commit 8d44f93

Browse files
committed
fix: html插值
1 parent c0ae605 commit 8d44f93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

parser/html_parser.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ func (h *HtmlParser) parseSingleHtmlTag() (data.GetValue, data.Control) {
467467
isSelfClosing := false
468468
// void 标签无需显式自闭合,直接消费 '>' 并返回
469469
if isVoidHtmlTag(tagName) {
470+
if h.checkPositionIs(0, token.QUO) {
471+
h.next()
472+
}
470473
if h.checkPositionIs(0, token.GT) {
471474
h.next()
472475
}

0 commit comments

Comments
 (0)