]> Cypherpunks repositories - gostls13.git/commit
exp/html: special handling for entities in attributes
authorAndrew Balholm <andybalholm@gmail.com>
Mon, 23 Jul 2012 02:39:58 +0000 (12:39 +1000)
committerNigel Tao <nigeltao@golang.org>
Mon, 23 Jul 2012 02:39:58 +0000 (12:39 +1000)
commitf979528ce6057e3e16307a8ce11760bfb1785c29
tree4689c6dfeca52506807e3ba31054076c2939cc82
parent4087c1b842774310467871470797ef81653f0125
exp/html: special handling for entities in attributes

Don't unescape entities in attributes when they don't end with
a semicolon and they are followed by '=', a letter, or a digit.

Pass 6 more tests from the WebKit test suite, plus one that was
commented out in token_test.go.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6405073
src/pkg/exp/html/escape.go
src/pkg/exp/html/testlogs/entities02.dat.log
src/pkg/exp/html/token.go
src/pkg/exp/html/token_test.go