Skip to content

Commit

Permalink
Merge pull request #292 from jmooring/add-global-attributes
Browse files Browse the repository at this point in the history
Add global HTML attributes
  • Loading branch information
yuin committed Mar 20, 2022
2 parents 5ffbecc + 67340c7 commit 2184cbf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions renderer/html/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,24 @@ func (r *Renderer) writeLines(w util.BufWriter, source []byte, n ast.Node) {
var GlobalAttributeFilter = util.NewBytesFilter(
[]byte("accesskey"),
[]byte("autocapitalize"),
[]byte("autofocus"),
[]byte("class"),
[]byte("contenteditable"),
[]byte("dir"),
[]byte("draggable"),
[]byte("enterkeyhint"),
[]byte("hidden"),
[]byte("id"),
[]byte("inert"),
[]byte("inputmode"),
[]byte("is"),
[]byte("itemid"),
[]byte("itemprop"),
[]byte("itemref"),
[]byte("itemscope"),
[]byte("itemtype"),
[]byte("lang"),
[]byte("part"),
[]byte("slot"),
[]byte("spellcheck"),
[]byte("style"),
Expand Down

0 comments on commit 2184cbf

Please sign in to comment.