]> Cypherpunks repositories - gostls13.git/commit
exp/html: ignore self-closing flag except in SVG and MathML
authorAndrew Balholm <andybalholm@gmail.com>
Thu, 9 Aug 2012 23:34:10 +0000 (09:34 +1000)
committerNigel Tao <nigeltao@golang.org>
Thu, 9 Aug 2012 23:34:10 +0000 (09:34 +1000)
commitc5038c85933a69a1ddeae812d601eb11e71cdc58
tree09fbb54ee050ff94984564a0cf7b6043442db9be
parentf597fa67c16dbce225ceb8482acd92a5c474fc19
exp/html: ignore self-closing flag except in SVG and MathML

In HTML content, having a self-closing tag is a parse error unless
the tag would be self-closing anyway (like <img>). The only place a
self-closing tag actually makes a difference is in XML-based foreign
content.

Pass 1 additional test.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6450109
src/pkg/exp/html/parse.go
src/pkg/exp/html/testlogs/webkit01.dat.log