]> Cypherpunks repositories - gostls13.git/commit
html: implement foster parenting
authorAndrew Balholm <andybalholm@gmail.com>
Sun, 23 Oct 2011 07:36:01 +0000 (18:36 +1100)
committerNigel Tao <nigeltao@golang.org>
Sun, 23 Oct 2011 07:36:01 +0000 (18:36 +1100)
commit2aa589c8438debaef249e7fbcd9dd3fa0546c9c8
tree75cd9555b2200bd70abf1158982842dd1dc9ef7f
parent2f352ae48abf1a714f7b3bfb097fab6451067599
html: implement foster parenting

Implement the foster-parenting algorithm for content that is inside a table
but not in a cell.

Also fix a bug in reconstructing the active formatting elements.

Pass test 30 in tests1.dat:
<a><table><td><a><table></table><a></tr><a></table><b>X</b>C<a>Y

R=nigeltao
CC=golang-dev
https://golang.org/cl/5309052
src/pkg/html/parse.go
src/pkg/html/parse_test.go