Commit 054cf72b authored by Yasuhiro Matsumoto's avatar Yasuhiro Matsumoto Committed by Nigel Tao

html: fix nesting when parsing a close tag.

R=nigeltao
CC=golang-dev
https://golang.org/cl/4636067
parent 8ffbc401
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment