Update html attrs to current html spec
This commit is contained in:
parent
50aa376e80
commit
238809f506
1 changed files with 12 additions and 4 deletions
|
|
@ -31,10 +31,18 @@ import
|
||||||
macros, strutils
|
macros, strutils
|
||||||
|
|
||||||
const
|
const
|
||||||
coreAttr* = " id class title style "
|
coreAttr* = " accesskey class contenteditable dir hidden id lang " &
|
||||||
eventAttr* = " onclick ondblclick onmousedown onmouseup " &
|
"spellcheck style tabindex title translate "
|
||||||
"onmouseover onmousemove onmouseout onkeypress onkeydown onkeyup onload "
|
eventAttr* = "onabort onblur oncancel oncanplay oncanplaythrough onchange " &
|
||||||
commonAttr* = coreAttr & eventAttr
|
"onclick oncuechange ondblclick ondurationchange onemptied onended " &
|
||||||
|
"onerror onfocus oninput oninvalid onkeydown onkeypress onkeyup onload " &
|
||||||
|
"onloadeddata onloadedmetadata onloadstart onmousedown onmouseenter " &
|
||||||
|
"onmouseleave onmousemove onmouseout onmouseover onmouseup onmousewheel " &
|
||||||
|
"onpause onplay onplaying onprogress onratechange onreset onresize " &
|
||||||
|
"onscroll onseeked onseeking onselect onshow onstalled onsubmit " &
|
||||||
|
"onsuspend ontimeupdate ontoggle onvolumechange onwaiting "
|
||||||
|
ariaAttr* = " role "
|
||||||
|
commonAttr* = coreAttr & eventAttr & ariaAttr
|
||||||
|
|
||||||
proc getIdent(e: NimNode): string {.compileTime.} =
|
proc getIdent(e: NimNode): string {.compileTime.} =
|
||||||
case e.kind
|
case e.kind
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue