Skip to content

Commit

Permalink
Sync event handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
NiedziolkaMichal authored and sideshowbarker committed Oct 26, 2022
1 parent 66510f3 commit 58bea51
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 46 deletions.
47 changes: 17 additions & 30 deletions schema/html5/core-scripting.rnc
Expand Up @@ -112,16 +112,19 @@ datatypes w = "http://whattf.org/datatype-draft"
## Event Handler Attribute Definitions

common.attrs.scripting &=
( scripting.attr.onabort?
& scripting.attr.onauxclick?
( scripting.attr.onauxclick?
& scripting.attr.onbeforeinput?
& scripting.attr.onbeforematch?
& scripting.attr.onblur?
& scripting.attr.oncancel?
& scripting.attr.oncanplay?
& scripting.attr.oncanplaythrough?
& scripting.attr.onchange?
& scripting.attr.onclick?
& scripting.attr.onclose?
& scripting.attr.oncontextlost?
& scripting.attr.oncontextmenu?
& scripting.attr.oncontextrestored?
& scripting.attr.oncopy?
& scripting.attr.oncuechange?
& scripting.attr.oncut?
Expand All @@ -138,8 +141,6 @@ datatypes w = "http://whattf.org/datatype-draft"
& scripting.attr.onended?
& scripting.attr.onerror?
& scripting.attr.onfocus?
& scripting.attr.onfocusin?
& scripting.attr.onfocusout?
& scripting.attr.onformdata?
& scripting.attr.oninput?
& scripting.attr.oninvalid?
Expand Down Expand Up @@ -176,27 +177,25 @@ datatypes w = "http://whattf.org/datatype-draft"
& scripting.attr.onsuspend?
& scripting.attr.ontimeupdate?
& scripting.attr.ontoggle?
& scripting.attr.ontransitioncancel?
& scripting.attr.ontransitionend?
& scripting.attr.ontransitionrun?
& scripting.attr.ontransitionstart?
& scripting.attr.onvolumechange?
& scripting.attr.onwaiting?
& scripting.attr.onwheel?
)

common.attrs.other &= common.attrs.scripting

scripting.attr.onabort =
attribute onabort { common.data.functionbody }
scripting.attr.onauxclick =
attribute onauxclick { common.data.functionbody }
scripting.attr.onbeforeinput =
attribute onbeforeinput { common.data.functionbody }
scripting.attr.onbeforematch =
attribute onbeforematch { common.data.functionbody }
scripting.attr.onblur =
attribute onblur { common.data.functionbody }
scripting.attr.oncanplay =
attribute oncanplay { common.data.functionbody }
scripting.attr.oncancel =
attribute oncancel { common.data.functionbody }
scripting.attr.oncanplay =
attribute oncanplay { common.data.functionbody }
scripting.attr.oncanplaythrough =
attribute oncanplaythrough { common.data.functionbody }
scripting.attr.onchange =
Expand All @@ -205,8 +204,12 @@ datatypes w = "http://whattf.org/datatype-draft"
attribute onclick { common.data.functionbody }
scripting.attr.onclose =
attribute onclose { common.data.functionbody }
scripting.attr.oncontextlost =
attribute oncontextlost { common.data.functionbody }
scripting.attr.oncontextmenu =
attribute oncontextmenu { common.data.functionbody }
scripting.attr.oncontextrestored =
attribute oncontextrestored { common.data.functionbody }
scripting.attr.oncopy =
attribute oncopy { common.data.functionbody }
scripting.attr.oncuechange =
Expand Down Expand Up @@ -239,16 +242,8 @@ datatypes w = "http://whattf.org/datatype-draft"
attribute onerror { common.data.functionbody }
scripting.attr.onfocus =
attribute onfocus { common.data.functionbody }
scripting.attr.onfocusin =
attribute onfocusin { common.data.functionbody }
scripting.attr.onfocusout =
attribute onfocusout { common.data.functionbody }
scripting.attr.onformchange =
attribute onformchange { common.data.functionbody }
scripting.attr.onformdata =
attribute onformdata { common.data.functionbody }
scripting.attr.onforminput =
attribute onforminput { common.data.functionbody }
scripting.attr.oninput =
attribute oninput { common.data.functionbody }
scripting.attr.oninvalid =
Expand Down Expand Up @@ -281,8 +276,6 @@ datatypes w = "http://whattf.org/datatype-draft"
attribute onmouseover { common.data.functionbody }
scripting.attr.onmouseup =
attribute onmouseup { common.data.functionbody }
scripting.attr.onwheel =
attribute onwheel { common.data.functionbody }
scripting.attr.onpaste =
attribute onpaste { common.data.functionbody }
scripting.attr.onpause =
Expand Down Expand Up @@ -321,18 +314,12 @@ datatypes w = "http://whattf.org/datatype-draft"
attribute ontimeupdate { common.data.functionbody }
scripting.attr.ontoggle =
attribute ontoggle { common.data.functionbody }
scripting.attr.ontransitioncancel =
attribute ontransitioncancel { common.data.functionbody }
scripting.attr.ontransitionend =
attribute ontransitionend { common.data.functionbody }
scripting.attr.ontransitionrun =
attribute ontransitionrun { common.data.functionbody }
scripting.attr.ontransitionstart =
attribute ontransitionstart { common.data.functionbody }
scripting.attr.onvolumechange =
attribute onvolumechange { common.data.functionbody }
scripting.attr.onwaiting =
attribute onwaiting { common.data.functionbody }
scripting.attr.onwheel =
attribute onwheel { common.data.functionbody }

# scripting.attr.common =
# ( scripting.attr.mouse
Expand Down
13 changes: 5 additions & 8 deletions schema/html5/embed.rnc
Expand Up @@ -223,16 +223,19 @@ namespace local = ""
| hidden
| inputmode
| nonce
| onabort
| onauxclick
| onbeforeinput
| onbeforematch
| onblur
| oncancel
| oncanplay
| oncanplaythrough
| onchange
| onclick
| onclose
| oncontextlost
| oncontextmenu
| oncontextrestored
| oncopy
| oncuechange
| oncut
Expand All @@ -249,8 +252,6 @@ namespace local = ""
| onended
| onerror
| onfocus
| onfocusin
| onfocusout
| onformdata
| oninput
| oninvalid
Expand Down Expand Up @@ -280,17 +281,13 @@ namespace local = ""
| onsecuritypolicyviolation
| onseeked
| onseeking
| onslotchange
| onselect
| onslotchange
| onstalled
| onsubmit
| onsuspend
| ontimeupdate
| ontoggle
| ontransitioncancel
| ontransitionend
| ontransitionrun
| ontransitionstart
| onvolumechange
| onwaiting
| onwheel
Expand Down
22 changes: 14 additions & 8 deletions schema/html5/meta.rnc
Expand Up @@ -55,13 +55,17 @@ datatypes w = "http://whattf.org/datatype-draft"
& body.attrs.onbeforeprint?
& body.attrs.onbeforeunload?
& body.attrs.onhashchange?
& body.attrs.onlanguagechange?
& body.attrs.onmessage?
& body.attrs.onmessageerror?
& body.attrs.onoffline?
& body.attrs.ononline?
& body.attrs.onpagehide?
& body.attrs.onpageshow?
& body.attrs.onpopstate?
& body.attrs.onrejectionhandled?
& body.attrs.onstorage?
& body.attrs.onunhandledrejection?
& body.attrs.onunload?
)
body.inner =
Expand All @@ -75,26 +79,28 @@ datatypes w = "http://whattf.org/datatype-draft"
attribute onbeforeunload { common.data.functionbody }
body.attrs.onhashchange =
attribute onhashchange { common.data.functionbody }
body.attrs.onlanguagechange =
attribute onlanguagechange { common.data.functionbody }
body.attrs.onmessage =
attribute onmessage { common.data.functionbody }
body.attrs.onmessageerror =
attribute onmessageerror { common.data.functionbody }
body.attrs.onoffline =
attribute onoffline { common.data.functionbody }
body.attrs.ononline =
attribute ononline { common.data.functionbody }
body.attrs.onpopstate =
attribute onpopstate { common.data.functionbody }
body.attrs.onpagehide =
attribute onpagehide { common.data.functionbody }
body.attrs.onpageshow =
attribute onpageshow { common.data.functionbody }
body.attrs.onredo =
attribute onredo { common.data.functionbody }
body.attrs.onresize =
attribute onresize { common.data.functionbody }
body.attrs.onpopstate =
attribute onpopstate { common.data.functionbody }
body.attrs.onrejectionhandled =
attribute onrejectionhandled { common.data.functionbody }
body.attrs.onstorage =
attribute onstorage { common.data.functionbody }
body.attrs.onundo =
attribute onundo { common.data.functionbody }
body.attrs.onunhandledrejection =
attribute onunhandledrejection { common.data.functionbody }
body.attrs.onunload =
attribute onunload { common.data.functionbody }

Expand Down

0 comments on commit 58bea51

Please sign in to comment.