diff options
| author | Russ Cox <rsc@golang.org> | 2013-09-15 11:29:06 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-09-15 11:29:06 -0400 |
| commit | 1385e394cf919e53a02ed4ecaef331a603128329 (patch) | |
| tree | 88485b4f4fd986729953d841898ac254aecbc1b6 /src/pkg | |
| parent | 89dacb9cca0a27da1efe0578cd0881b80b13ed45 (diff) | |
| download | go-1385e394cf919e53a02ed4ecaef331a603128329.tar.xz | |
encoding/xml: document behavior for undefined name space prefixes
Fixes #5626.
R=golang-dev, dominik.honnef
CC=golang-dev
https://golang.org/cl/13702043
Diffstat (limited to 'src/pkg')
| -rw-r--r-- | src/pkg/encoding/xml/xml.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/encoding/xml/xml.go b/src/pkg/encoding/xml/xml.go index 467c2ae14f..5b9d670024 100644 --- a/src/pkg/encoding/xml/xml.go +++ b/src/pkg/encoding/xml/xml.go @@ -150,6 +150,10 @@ type Decoder struct { // d.Entity = HTMLEntity // // creates a parser that can handle typical HTML. + // + // Strict mode does not enforce the requirements of the XML name spaces TR. + // In particular it does not reject name space tags using undefined prefixes. + // Such tags are recorded with the unknown prefix as the name space URL. Strict bool // When Strict == false, AutoClose indicates a set of elements to |
