]> Cypherpunks repositories - gostls13.git/commit
xml: add check of version in document declaration
authorGiulio Iotti <dullgiulio@gmail.com>
Wed, 15 Apr 2015 13:59:49 +0000 (16:59 +0300)
committerRuss Cox <rsc@golang.org>
Thu, 18 Jun 2015 18:06:01 +0000 (18:06 +0000)
commit9490fbf7557f3d1d12051f79d033e2a4fd8fcbcb
treefb1aadea9c652530fdd553940ac3f3dff3772d6b
parenta13606e6196e0c4ef3f54542f9ae6fade0a9c19b
xml: add check of version in document declaration

Check that if a version is declared, for example
in '<?xml version="XX" ?>', version must be '1.0'.

Change-Id: I16ba9f78873a5f31977dcf75ac8e671fe6c08280
Reviewed-on: https://go-review.googlesource.com/8961
Reviewed-by: Russ Cox <rsc@golang.org>
src/encoding/xml/xml.go
src/encoding/xml/xml_test.go