]> Cypherpunks repositories - gostls13.git/commit
exp/html: adjust parseForeignContent to match spec
authorAndrew Balholm <andybalholm@gmail.com>
Fri, 25 May 2012 00:03:59 +0000 (10:03 +1000)
committerNigel Tao <nigeltao@golang.org>
Fri, 25 May 2012 00:03:59 +0000 (10:03 +1000)
commitc23041efd99bc2cc7c6888ea6f6a83f5e13f8326
tree01b82b71fe3edbc76e5603af7a8354bcc4ac4486
parent60ffae25bc1e8ddacaa52952683bfaf6caebc9fd
exp/html: adjust parseForeignContent to match spec

Remove redundant checks for integration points.

Ignore null bytes in text.

Don't break out of foreign content for a <font> tag unless it
has a color, face, or size attribute.

Check for MathML text integration points when breaking out of
foreign content.

Pass two new tests.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6256045
src/pkg/exp/html/foreign.go
src/pkg/exp/html/parse.go
src/pkg/exp/html/testlogs/plain-text-unsafe.dat.log