From 58bea51c7126f417d274a2c9adbd098e75560d47 Mon Sep 17 00:00:00 2001 From: Niedziolka Michal Date: Tue, 25 Oct 2022 19:17:25 +0200 Subject: [PATCH] Sync event handlers --- schema/html5/core-scripting.rnc | 47 ++++++++++++--------------------- schema/html5/embed.rnc | 13 ++++----- schema/html5/meta.rnc | 22 +++++++++------ 3 files changed, 36 insertions(+), 46 deletions(-) diff --git a/schema/html5/core-scripting.rnc b/schema/html5/core-scripting.rnc index 201c34a87..69ec1c856 100644 --- a/schema/html5/core-scripting.rnc +++ b/schema/html5/core-scripting.rnc @@ -112,8 +112,9 @@ 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? @@ -121,7 +122,9 @@ datatypes w = "http://whattf.org/datatype-draft" & 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? @@ -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? @@ -176,10 +177,6 @@ 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? @@ -187,16 +184,18 @@ datatypes w = "http://whattf.org/datatype-draft" 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 = @@ -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 = @@ -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 = @@ -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 = @@ -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 diff --git a/schema/html5/embed.rnc b/schema/html5/embed.rnc index 564ab638c..1523dacc9 100644 --- a/schema/html5/embed.rnc +++ b/schema/html5/embed.rnc @@ -223,8 +223,9 @@ namespace local = "" | hidden | inputmode | nonce - | onabort | onauxclick + | onbeforeinput + | onbeforematch | onblur | oncancel | oncanplay @@ -232,7 +233,9 @@ namespace local = "" | onchange | onclick | onclose + | oncontextlost | oncontextmenu + | oncontextrestored | oncopy | oncuechange | oncut @@ -249,8 +252,6 @@ namespace local = "" | onended | onerror | onfocus - | onfocusin - | onfocusout | onformdata | oninput | oninvalid @@ -280,17 +281,13 @@ namespace local = "" | onsecuritypolicyviolation | onseeked | onseeking - | onslotchange | onselect + | onslotchange | onstalled | onsubmit | onsuspend | ontimeupdate | ontoggle - | ontransitioncancel - | ontransitionend - | ontransitionrun - | ontransitionstart | onvolumechange | onwaiting | onwheel diff --git a/schema/html5/meta.rnc b/schema/html5/meta.rnc index 4d3a68c93..db6f90072 100644 --- a/schema/html5/meta.rnc +++ b/schema/html5/meta.rnc @@ -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 = @@ -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 }