Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/json: shows #ZgotmplZ in a custom attribute with name "data-data" but not with "data-go" #12648
changed the title
shows #ZgotmplZ in a custom attribute with name "data-data" but not with "data-go"
Sep 16, 2015
I took a look this since I'm currently playing with the html/template package.
When checking the type of known attributes the html/template package removes "data-" prefixes so it can handle things like
So I'd say this works as intended. But we should at least update the documentation to state that data-* attributes and attributes with namespaces are handled as if they had no data- prefix / namespace.