]> Cypherpunks repositories - gostls13.git/commit
xml: allow attributes without value in non-strict mode.
authorVolker Dobler <dr.volker.dobler@gmail.com>
Thu, 16 Jun 2011 16:56:49 +0000 (12:56 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 16 Jun 2011 16:56:49 +0000 (12:56 -0400)
commit7f3e109d2f89eb997cd28adc607fd75ba9ac94d1
treeace9ebdf5f2a6102e86d82ac5a4c060945794d6e
parentd81147b617e192a7e9f33e32da1ea01da43aa381
xml: allow attributes without value in non-strict mode.

Attributes without value are commen in html and the xml
parser will accept them in non-strict mode and use the
attribute name as value. Thus parsing <p nowrap> as
<p norwar="nowrap">.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4601053
src/pkg/xml/xml.go
src/pkg/xml/xml_test.go