]> Cypherpunks repositories - gostls13.git/commit
exp/html: correctly handle <title> after </head>
authorAndrew Balholm <andybalholm@gmail.com>
Tue, 7 Aug 2012 03:36:08 +0000 (13:36 +1000)
committerNigel Tao <nigeltao@golang.org>
Tue, 7 Aug 2012 03:36:08 +0000 (13:36 +1000)
commit5530a426efed5baa88e47ac73be19d7b7e99d743
treef59f19ba56b3da4f89bc230b6fde210773b095b7
parent0bfa31e9619d8d372e62446e204600f34ac45f4b
exp/html: correctly handle <title> after </head>

The <title> element was getting removed from the stack of open elements,
when its parent, the <head> element should have been removed instead.

Pass 2 additional tests.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6449101
src/pkg/exp/html/parse.go
src/pkg/exp/html/testlogs/tests7.dat.log