diff options
author | John Bampton <jbampton@gmail.com> | 2021-03-05 01:53:00 +0000 |
---|---|---|
committer | Emmanuel Odeke <emmanuel@orijtech.com> | 2021-03-13 03:38:42 +0000 |
commit | 8e725f8452ac0ece548837a95d125bc67b9d8828 (patch) | |
tree | 572e9b368ca7531e13c71bb5ee9942a1a08d01e8 /src/encoding/xml | |
parent | 73eb27bd3bdf727347a5e4d7d369d92f712f5ab5 (diff) | |
download | go-8e725f8452ac0ece548837a95d125bc67b9d8828.tar.gz go-8e725f8452ac0ece548837a95d125bc67b9d8828.zip |
all: use HTML5 br tags
In HTML5 br tags don't need a closing slash
Change-Id: Ic53c43faee08c5b1267daa9a02cc186b1c255ca1
GitHub-Last-Rev: 652208116944d01b23b8af8f1af485da5e916d32
GitHub-Pull-Request: golang/go#44283
Reviewed-on: https://go-review.googlesource.com/c/go/+/292370
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Diffstat (limited to 'src/encoding/xml')
-rw-r--r-- | src/encoding/xml/xml.go | 2 | ||||
-rw-r--r-- | src/encoding/xml/xml_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding/xml/xml.go b/src/encoding/xml/xml.go index 6f9594d7ba..384d6ad4b8 100644 --- a/src/encoding/xml/xml.go +++ b/src/encoding/xml/xml.go @@ -261,7 +261,7 @@ func NewTokenDecoder(t TokenReader) *Decoder { // call to Token. To acquire a copy of the bytes, call CopyToken // or the token's Copy method. // -// Token expands self-closing elements such as <br/> +// Token expands self-closing elements such as <br> // into separate start and end elements returned by successive calls. // // Token guarantees that the StartElement and EndElement diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index 5672ebb375..5a10f5309d 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -940,7 +940,7 @@ func (m mapper) Token() (Token, error) { } func TestNewTokenDecoderIdempotent(t *testing.T) { - d := NewDecoder(strings.NewReader(`<br/>`)) + d := NewDecoder(strings.NewReader(`<br>`)) d2 := NewTokenDecoder(d) if d != d2 { t.Error("NewTokenDecoder did not detect underlying Decoder") |