]> Cypherpunks repositories - gostls13.git/commit
exp/html: adjust inTableIM to match spec
authorAndrew Balholm <andybalholm@gmail.com>
Wed, 25 Apr 2012 00:49:27 +0000 (10:49 +1000)
committerNigel Tao <nigeltao@golang.org>
Wed, 25 Apr 2012 00:49:27 +0000 (10:49 +1000)
commitdde8358a1c504f15a1c17ee0822622ea172f1f3d
tree2921c20e521852d9197a3a71e561c43bb8525197
parent76490cffaf8c54f4e014cc8d74f77abde8cba416
exp/html: adjust inTableIM to match spec

Don't foster-parent text nodes that consist only of whitespace.
(I implemented this entirely in inTableIM instead of creating an
inTableTextIM, because the sole purpose of inTableTextIM seems to be
to combine character tokens into a string, which our tokenizer does
already.)

Use parseImpliedToken to clarify a couple of cases.

Handle <style>, <script>, <input>, and <form>.

Ignore doctype tokens.

Pass 20 additional tests.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6117048
src/pkg/exp/html/parse.go
src/pkg/exp/html/testlogs/html5test-com.dat.log
src/pkg/exp/html/testlogs/tables01.dat.log
src/pkg/exp/html/testlogs/tests15.dat.log
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
src/pkg/exp/html/testlogs/tests7.dat.log
src/pkg/exp/html/testlogs/tricky01.dat.log