]> Cypherpunks.ru repositories - gostls13.git/commit
html/template: document handling of namespaced and data- attributes
authorJustin Nuß <nuss.justin@gmail.com>
Sun, 26 Nov 2017 10:05:53 +0000 (11:05 +0100)
committerAgniva De Sarker <agniva.quicksilver@gmail.com>
Fri, 27 Sep 2019 17:59:33 +0000 (17:59 +0000)
commit683ef8c8441d100590f5ed5c9d662e217a7130ce
tree6040990721b9f7bc6db2c36e063489e5feaf1875
parentdb87c9f2d0cc0e695bc7686bdcd04ea075b28deb
html/template: document handling of namespaced and data- attributes

Attributes with a namespace or a data- prefix are handled as if they
had no namespace/data- prefix.

There is also a special case, where attributes with a "xmlns" namespace
are always treated as containing URLs.

This could surprise users of the package, since this behaviour was not
documented anywhere, so this change adds some documentation for all
three cases.

Fixes #12648

Change-Id: If57a2ec49fec91a330fc04795726e8cffa9b75c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/79895
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
src/html/template/doc.go