diff options
-rw-r--r-- | components/script/dom/macros.rs | 1 | ||||
-rw-r--r-- | components/script/dom/webidls/EventHandler.webidl | 1 | ||||
-rw-r--r-- | tests/wpt/metadata/html/dom/interfaces.html.ini | 15 |
3 files changed, 2 insertions, 15 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs index 42f23b8c4b2..c29dede570d 100644 --- a/components/script/dom/macros.rs +++ b/components/script/dom/macros.rs @@ -227,5 +227,6 @@ macro_rules! global_event_handlers( event_handler!(click, GetOnclick, SetOnclick); event_handler!(input, GetOninput, SetOninput); event_handler!(change, GetOnchange, SetOnchange); + event_handler!(submit, GetOnsubmit, SetOnsubmit); ) ); diff --git a/components/script/dom/webidls/EventHandler.webidl b/components/script/dom/webidls/EventHandler.webidl index de491455302..0ab01a113d4 100644 --- a/components/script/dom/webidls/EventHandler.webidl +++ b/components/script/dom/webidls/EventHandler.webidl @@ -25,6 +25,7 @@ interface GlobalEventHandlers { attribute EventHandler onload; attribute EventHandler oninput; attribute EventHandler onchange; + attribute EventHandler onsubmit; }; [NoInterfaceObject] diff --git a/tests/wpt/metadata/html/dom/interfaces.html.ini b/tests/wpt/metadata/html/dom/interfaces.html.ini index 3102ed874ba..9ae1cc788db 100644 --- a/tests/wpt/metadata/html/dom/interfaces.html.ini +++ b/tests/wpt/metadata/html/dom/interfaces.html.ini @@ -246,9 +246,6 @@ [Document interface: attribute onstalled] expected: FAIL - [Document interface: attribute onsubmit] - expected: FAIL - [Document interface: attribute onsuspend] expected: FAIL @@ -1386,9 +1383,6 @@ [Document interface: document.implementation.createDocument(null, "", null) must inherit property "onstalled" with the proper type (149)] expected: FAIL - [Document interface: document.implementation.createDocument(null, "", null) must inherit property "onsubmit" with the proper type (150)] - expected: FAIL - [Document interface: document.implementation.createDocument(null, "", null) must inherit property "onsuspend" with the proper type (151)] expected: FAIL @@ -1920,9 +1914,6 @@ [HTMLElement interface: attribute onstalled] expected: FAIL - [HTMLElement interface: attribute onsubmit] - expected: FAIL - [HTMLElement interface: attribute onsuspend] expected: FAIL @@ -2178,9 +2169,6 @@ [HTMLElement interface: document.createElement("noscript") must inherit property "onstalled" with the proper type (88)] expected: FAIL - [HTMLElement interface: document.createElement("noscript") must inherit property "onsubmit" with the proper type (89)] - expected: FAIL - [HTMLElement interface: document.createElement("noscript") must inherit property "onsuspend" with the proper type (90)] expected: FAIL @@ -8241,9 +8229,6 @@ [Window interface: window must inherit property "onstalled" with the proper type (94)] expected: FAIL - [Window interface: window must inherit property "onsubmit" with the proper type (95)] - expected: FAIL - [Window interface: window must inherit property "onsuspend" with the proper type (96)] expected: FAIL |