]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: ignore whitespace in values and attrs
authorLeigh McCulloch <leighmcc@gmail.com>
Fri, 27 Oct 2017 07:04:57 +0000 (07:04 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 1 Nov 2017 20:39:57 +0000 (20:39 +0000)
commit14bc4f5e5fd5a113c97bdf1455b4f7d36a81f54b
tree4dd177f6a897c563194f81738ead79575792e6e2
parent776cdefc072fc916b5f74a7d7fb6e4573a6c8e89
encoding/xml: ignore whitespace in values and attrs

Whitespace is ignored in bool values and attrs. It is convenient and
relatively safe since whitespace around a bool value is often
unimportant. The same logic can be applied to numeric values of types
int, uint, and float.

Fixes #22146

Change-Id: Ie0462def90304af144b8e2e72d85b644857c27cc
Reviewed-on: https://go-review.googlesource.com/73891
Reviewed-by: Sam Whited <sam@samwhited.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Sam Whited <sam@samwhited.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/xml/read.go
src/encoding/xml/read_test.go