Add global HTML attributes

Closes #291
This commit is contained in:
Joe Mooring 2022-03-18 12:14:58 -07:00
parent e64a68fc13
commit 8da81dfae2

View file

@ -198,16 +198,26 @@ func (r *Renderer) writeLines(w util.BufWriter, source []byte, n ast.Node) {
var GlobalAttributeFilter = util.NewBytesFilter( var GlobalAttributeFilter = util.NewBytesFilter(
[]byte("accesskey"), []byte("accesskey"),
[]byte("autocapitalize"), []byte("autocapitalize"),
[]byte("autofocus"),
[]byte("class"), []byte("class"),
[]byte("contenteditable"), []byte("contenteditable"),
[]byte("contextmenu"), []byte("contextmenu"),
[]byte("dir"), []byte("dir"),
[]byte("draggable"), []byte("draggable"),
[]byte("dropzone"), []byte("dropzone"),
[]byte("enterkeyhint"),
[]byte("hidden"), []byte("hidden"),
[]byte("id"), []byte("id"),
[]byte("inert"),
[]byte("inputmode"),
[]byte("is"),
[]byte("itemid"),
[]byte("itemprop"), []byte("itemprop"),
[]byte("itemref"),
[]byte("itemscope"),
[]byte("itemtype"),
[]byte("lang"), []byte("lang"),
[]byte("part"),
[]byte("slot"), []byte("slot"),
[]byte("spellcheck"), []byte("spellcheck"),
[]byte("style"), []byte("style"),