go/src/html
Justin Nuß 683ef8c844 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>
2019-09-27 17:59:33 +00:00
..
template html/template: document handling of namespaced and data- attributes 2019-09-27 17:59:33 +00:00
entity.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
entity_test.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
escape.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
escape_test.go
example_test.go
fuzz.go html: add a Fuzz function 2019-04-30 15:48:46 +00:00