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:
parent
8ffbc4016a
commit
054cf72b56
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user