<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/encoding/xml/xml_test.go, branch makepkg</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=makepkg</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=makepkg'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2025-02-03T17:55:31Z</updated>
<entry>
<title>all: run gofmt</title>
<updated>2025-02-03T17:55:31Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2025-01-13T18:24:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=77f5ecef3a4f30644eadb922a8ba5deb76fa8e07'/>
<id>urn:sha1:77f5ecef3a4f30644eadb922a8ba5deb76fa8e07</id>
<content type='text'>
Change-Id: I0af1903ed1e4f2bf4ea273847b024520c577ef6d
Reviewed-on: https://go-review.googlesource.com/c/go/+/642496
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>encoding/xml: allow ]]&gt; in attribute values</title>
<updated>2024-09-04T13:33:11Z</updated>
<author>
<name>Demi Marie Obenour</name>
<email>demi@invisiblethingslab.com</email>
</author>
<published>2024-09-03T01:33:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=794b0a07483fdae7125f325d34fbea6b40a67885'/>
<id>urn:sha1:794b0a07483fdae7125f325d34fbea6b40a67885</id>
<content type='text'>
This is permitted by the XML specification.

Fixes #68387

Change-Id: Ic4ab5520a08a5a997f1c3d13c6d5f80c0521e45c
GitHub-Last-Rev: 6d2ac307bbd0ba7d50830ad8b879c00cc3a7242b
GitHub-Pull-Request: golang/go#69197
Reviewed-on: https://go-review.googlesource.com/c/go/+/610056
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>all: fix a large number of comments</title>
<updated>2024-03-26T19:58:28Z</updated>
<author>
<name>cui fliter</name>
<email>imcusg@gmail.com</email>
</author>
<published>2024-03-22T15:31:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1e12eab8705d1d8d7472be9147a39caa1c8380db'/>
<id>urn:sha1:1e12eab8705d1d8d7472be9147a39caa1c8380db</id>
<content type='text'>
Partial typo corrections, following https://go.dev/wiki/Spelling

Change-Id: I2357906ff2ea04305c6357418e4e9556e20375d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/573776
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Than McIntosh &lt;thanm@google.com&gt;
Run-TryBot: shuang cui &lt;imcusg@gmail.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>Revert "encoding/xml: reject XML declaration after start of document"</title>
<updated>2024-03-08T18:46:41Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2024-03-08T18:25:14Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=32014d549609422748dcb698fef1d43a5a33b0b4'/>
<id>urn:sha1:32014d549609422748dcb698fef1d43a5a33b0b4</id>
<content type='text'>
This reverts commit 8a0fbd75a54c27ff2ae624ac2775bf752cdbceb4.

Reason for revert: Breaking real-world tests inside Google,
which means it probably breaks real-world tests outside Google.

One instance I have seen is a &lt;!-- --&gt; comment (often a copyright notice) before the procinst.

Another test checks that a canonicalizer can handle a test input that simply has procinsts mid-XML.

XML is full of contradictions, XML implementations more so. If we are going to start being picky, that probably needs to be controlled by a GODEBUG (and a proposal).

For #65691 (will reopen manually).

Change-Id: Ib52d0944b1478e71744a2a35b271fdf7e1c972ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/570175
Reviewed-by: Than McIntosh &lt;thanm@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
<entry>
<title>encoding/xml: display closing space in error message</title>
<updated>2024-02-28T20:19:43Z</updated>
<author>
<name>Constantin Konstantinidis</name>
<email>constantinkonstantinidis@gmail.com</email>
</author>
<published>2023-10-15T15:58:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=b426e9797ffffff54103db85d8cd29fe882f2262'/>
<id>urn:sha1:b426e9797ffffff54103db85d8cd29fe882f2262</id>
<content type='text'>
Fixes #48890

Change-Id: I7644d091ad92663bda52ef4905239ec499ef9207
Reviewed-on: https://go-review.googlesource.com/c/go/+/535535
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
</content>
</entry>
<entry>
<title>encoding/xml: reject XML declaration after start of document</title>
<updated>2024-02-22T22:50:20Z</updated>
<author>
<name>Axel Wagner</name>
<email>axel.wagner.hh@googlemail.com</email>
</author>
<published>2024-02-14T08:38:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=8a0fbd75a54c27ff2ae624ac2775bf752cdbceb4'/>
<id>urn:sha1:8a0fbd75a54c27ff2ae624ac2775bf752cdbceb4</id>
<content type='text'>
The XML specification requires an XML declaration, if present, to only
appear at the very beginning of the document, not even preceded by
whitespace. The parser currently accepts it at any part of the input.

Rejecting whitespace at the beginning of the file might break too many
users. This change instead only rejects an XML declaration preceded by
a non-whitespace token *and* allows the Encoder to emit whitespace
before an XML declaration. This means that a token stream produced by
the Decoder can be passed to the Encoder without error, while we still
don't emit clearly invalid XML.

This might break programs depending on Decoder allowing arbitrary XML
before the XML declaration.

Fixes #65691.

Change-Id: Ib1d4b3116aee63f40fd377f90595780b4befd1ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/564035
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Than McIntosh &lt;thanm@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>encoding/xml: rewrite func procInst</title>
<updated>2024-02-08T20:33:51Z</updated>
<author>
<name>Jes Cok</name>
<email>xigua67damn@gmail.com</email>
</author>
<published>2024-02-07T04:56:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=414161ebfaa58218ffac7907b4d8ef2babb236cb'/>
<id>urn:sha1:414161ebfaa58218ffac7907b4d8ef2babb236cb</id>
<content type='text'>
This CL tries to make function procInst more exact,
also adds test cases, however, including tricky ones.

Change-Id: If421299fc84d136e56a25dba7a4919c4424702c8
GitHub-Last-Rev: b9a3192718ae5535d66fddd260c27b48d93b4af1
GitHub-Pull-Request: golang/go#64336
Reviewed-on: https://go-review.googlesource.com/c/go/+/544475
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
<entry>
<title>encoding/xml: overriding by empty namespace when no new name declaration</title>
<updated>2023-08-30T20:41:27Z</updated>
<author>
<name>xuri</name>
<email>xuri.me@gmail.com</email>
</author>
<published>2023-08-23T22:31:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=140266fe7521bf75bf0037f12265190213cc8e7d'/>
<id>urn:sha1:140266fe7521bf75bf0037f12265190213cc8e7d</id>
<content type='text'>
The unmarshal and marshal XML text should be consistent if not modified deserialize variable.

Fixes #61881

Change-Id: I475f7b05211b618685597d3ff20b97e3bbeaf8f8
GitHub-Last-Rev: 6831c770c384831798cb1c6dc4674e5d4caa5e3c
GitHub-Pull-Request: golang/go#58401
Reviewed-on: https://go-review.googlesource.com/c/go/+/466295
Reviewed-by: ri xu &lt;xuri.me@gmail.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>std: fix various nilness findings</title>
<updated>2023-04-20T01:07:29Z</updated>
<author>
<name>Alan Donovan</name>
<email>adonovan@google.com</email>
</author>
<published>2023-04-19T22:48:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=9d35ebba062cae9cc7bd716ad279ac7d44060a93'/>
<id>urn:sha1:9d35ebba062cae9cc7bd716ad279ac7d44060a93</id>
<content type='text'>
Found by running
$ go run golang.org/x/tools/go/analysis/passes/nilness/cmd/nilness@latest std

No actual bugs--other than one panic(nil)--but a
few places where error nilness was unclear.

Change-Id: Ia916ba30f46f29c1bcf928cc62280169b922463a
Reviewed-on: https://go-review.googlesource.com/c/go/+/486675
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Run-TryBot: Alan Donovan &lt;adonovan@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Auto-Submit: Alan Donovan &lt;adonovan@google.com&gt;
</content>
</entry>
<entry>
<title>encoding/xml: allow overriding by empty namespace</title>
<updated>2023-01-31T18:23:50Z</updated>
<author>
<name>Constantin Konstantinidis</name>
<email>constantinkonstantinidis@gmail.com</email>
</author>
<published>2022-07-05T05:46:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=dfd2ddd6717acb16b43ecde5150a7d8916ac5484'/>
<id>urn:sha1:dfd2ddd6717acb16b43ecde5150a7d8916ac5484</id>
<content type='text'>
The namespace defined by xmlns="value" can be overridden in every included tag
by the empty namespace xmlns="" without a prefix.

Method to calculate indent of XML handles depth of tag and its associated namespace is
still active even when no indent is required.

An XMLName field in a struct means that namespace must be enforced even if empty.
This occurs only on an inner tag as an override of any non-empty namespace of its outer tag.
An attribute is added to have the required namespace display.

Fixes #7113

Change-Id: I57f2308e98c66f04108ab136d350bdc3a6091e98
Reviewed-on: https://go-review.googlesource.com/c/go/+/108796
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Michael Knyszek &lt;mknyszek@google.com&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
</feed>
