From: Yasuhiro Matsumoto Date: Thu, 30 Jun 2011 13:16:33 +0000 (+1000) Subject: html: fix nesting when parsing a close tag. X-Git-Tag: weekly.2011-07-07~61 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=054cf72b56d7fb6953acccf775e548cce685b31f;p=gostls13.git html: fix nesting when parsing a close tag. R=nigeltao CC=golang-dev https://golang.org/cl/4636067 --- diff --git a/src/pkg/html/parse.go b/src/pkg/html/parse.go index 2ef90a8732..c2931773fa 100644 --- a/src/pkg/html/parse.go +++ b/src/pkg/html/parse.go @@ -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 {