]> Cypherpunks repositories - gostls13.git/commit
exp/html: tokenize attributes of end tags
authorAndrew Balholm <andybalholm@gmail.com>
Tue, 31 Jul 2012 23:35:02 +0000 (09:35 +1000)
committerNigel Tao <nigeltao@golang.org>
Tue, 31 Jul 2012 23:35:02 +0000 (09:35 +1000)
commit9f3b00579eca946337d486776797b78aaf3bc55b
treeecf682219fab3a6e207c8523265ad3d6bdfc529a
parent695024b8fa78677362ad2c3d57fa63de7f5fbab4
exp/html: tokenize attributes of end tags

If an end tag has an attribute that is a quoted string containing '>',
the tokenizer would end the tag prematurely. Now it reads the attributes
on end tags just as it does on start tags, but the high-level interface
still doesn't return them, because their presence is a parse error.

Pass 1 additional test.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6457060
src/pkg/exp/html/testlogs/scriptdata01.dat.log
src/pkg/exp/html/token.go