]> Cypherpunks repositories - gostls13.git/commit
exp/html: implement Noah's Ark clause
authorAndrew Balholm <andybalholm@gmail.com>
Tue, 29 May 2012 03:39:54 +0000 (13:39 +1000)
committerNigel Tao <nigeltao@golang.org>
Tue, 29 May 2012 03:39:54 +0000 (13:39 +1000)
commit9c14184e25ea92354b0e6f4962ad0411b1356b67
tree08806616ada0fd5bccdb65baceb39b130b59065d
parent7db8c779feda3f85286c0be4f0c574276466ae02
exp/html: implement Noah's Ark clause

Implement the (3-per-family) Noah's Ark clause (i.e. don't put
more than three identical elements on the list of active formatting
elements.

Also, when running tests, sort attributes by name before dumping
them.

Pass 4 additional tests with Noah's Ark clause (including one
that needs attributes to be sorted).

Pass 5 additional, unrelated tests because of sorting attributes.

R=nigeltao, rsc
CC=golang-dev
https://golang.org/cl/6247056
src/pkg/exp/html/parse.go
src/pkg/exp/html/parse_test.go
src/pkg/exp/html/testlogs/isindex.dat.log
src/pkg/exp/html/testlogs/tests19.dat.log
src/pkg/exp/html/testlogs/tests23.dat.log
src/pkg/exp/html/testlogs/webkit01.dat.log