]> Cypherpunks repositories - gostls13.git/commit
exp/html: implement escaping and double-escaping in scripts
authorAndrew Balholm <andybalholm@gmail.com>
Wed, 1 Aug 2012 04:45:35 +0000 (14:45 +1000)
committerNigel Tao <nigeltao@golang.org>
Wed, 1 Aug 2012 04:45:35 +0000 (14:45 +1000)
commitdbbfbcc4a18c3303c4e8a55cf652c67702c91aed
treeb6bbf2432b3de655e960b2e332bdd56251b1dd6b
parent8dbeb0ad072354e84463f38aef790cc1d69352e2
exp/html: implement escaping and double-escaping in scripts

The text inside <script> tags is not ordinary raw text; there are all sorts
of other complications. This CL implements those complications.

Pass 76 additional tests.

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