This module generates the pkg/html/attrs/attrs.go and pkg/html/elems/elems.go files from ./spec.html, called with go generate ./... by pkg/generate.go. The spec is auto-downloaded from https://html.spec.whatwg.org/multipage/indices.html.
(TODO: Confirm) We keep this as a module so that go build of the library does not include this code.
This module should not be released to Go module proxies.
Attributes
aria-*is hardcoded toAriaProp(propert, value string)data-*is hardcoded toDataProp(propert, value string)roleis hardcoded toRole(value string)
Tags
- The
DOCTYPEis hardcoded tovar Doctype = UnitTag("!DOCTYPE html")