]> Cypherpunks repositories - gostls13.git/commit
exp/html: skip render and reparse on more tests that build badly-formed parse trees
authorAndrew Balholm <andybalholm@gmail.com>
Wed, 15 Aug 2012 01:44:25 +0000 (11:44 +1000)
committerNigel Tao <nigeltao@golang.org>
Wed, 15 Aug 2012 01:44:25 +0000 (11:44 +1000)
commit27cb1cbb2e360b2ced4d3419ebd646d9d36acf5e
tree6523ea790484753dc9c7fba3d1320095f08a37f5
parent16a82828a2a552d01285d2cd3f01ed36b000b680
exp/html: skip render and reparse on more tests that build badly-formed parse trees

All of the remaining tests that had as status of PARSE rather than PASS had
good reasons for not passing the render-and-reparse step: the correct parse tree is
badly formed, so when it is rendered out as HTML, the result doesn't parse into the
same tree. So add them to the list of tests where that step is skipped.

Also, I discovered that it is possible to end up with HTML elements (not just text)
inside a raw text element through reparenting. So change the rendering routines to
handle that situation as sensibly as possible (which still isn't very sensible, but
this is HTML5).

R=nigeltao
CC=golang-dev
https://golang.org/cl/6446137
src/pkg/exp/html/parse_test.go
src/pkg/exp/html/render.go
src/pkg/exp/html/testlogs/tests16.dat.log
src/pkg/exp/html/testlogs/tests18.dat.log
src/pkg/exp/html/testlogs/tests19.dat.log
src/pkg/exp/html/testlogs/tests20.dat.log