1
0
mirror of https://github.com/golang/go synced 2024-11-19 14:34:42 -07:00

html: fix nesting when parsing a close tag.

R=nigeltao
CC=golang-dev
https://golang.org/cl/4636067
This commit is contained in:
Yasuhiro Matsumoto 2011-06-30 23:16:33 +10:00 committed by Nigel Tao
parent 8ffbc4016a
commit 054cf72b56

View File

@ -413,7 +413,10 @@ func inBodyIM(p *parser) (insertionMode, bool) {
p.pop()
}
default:
// TODO.
// TODO: any other end tag
if p.tok.Data == p.top().Data {
p.pop()
}
}
}
if endP {