diff --git a/xml/relaxng/src/resources/html5-schema/html5/core-scripting.rnc b/xml/relaxng/src/resources/html5-schema/html5/core-scripting.rnc
index a8c16475e280..2cf2848ff379 100644
--- a/xml/relaxng/src/resources/html5-schema/html5/core-scripting.rnc
+++ b/xml/relaxng/src/resources/html5-schema/html5/core-scripting.rnc
@@ -152,6 +152,8 @@ datatypes w = "http://whattf.org/datatype-draft"
& scripting.attr.onended?
& scripting.attr.onerror?
& scripting.attr.onfocus?
+ & scripting.attr.onfocusin?
+ & scripting.attr.onfocusout?
& scripting.attr.oninput?
& scripting.attr.oninvalid?
& scripting.attr.onkeydown?
@@ -244,6 +246,10 @@ 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.onforminput =
diff --git a/xml/relaxng/src/resources/html5-schema/html5/embed.rnc b/xml/relaxng/src/resources/html5-schema/html5/embed.rnc
index a879920df1d9..ce8f38c3329f 100644
--- a/xml/relaxng/src/resources/html5-schema/html5/embed.rnc
+++ b/xml/relaxng/src/resources/html5-schema/html5/embed.rnc
@@ -203,6 +203,8 @@ namespace local = ""
| onended
| onerror
| onfocus
+ | onfocusin
+ | onfocusout
| oninput
| oninvalid
| onkeydown