aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-04-01 05:18:47 -0600
committerbors-servo <metajack+bors@gmail.com>2015-04-01 05:18:47 -0600
commitd74e6330a49275bc5d15d29ff55c081739ce3659 (patch)
treec21c0ad9c6bcb5e36ad6a31b64f54bc7fed60ce6
parent4846607e189a65baf8d9ac6566594b7893d07f12 (diff)
parent6288a468b948f6923d0d8e03aac9cd9ce40582d1 (diff)
downloadservo-d74e6330a49275bc5d15d29ff55c081739ce3659.tar.gz
servo-d74e6330a49275bc5d15d29ff55c081739ce3659.zip
auto merge of #5475 : servo/servo/add-event-handlers, r=Ms2ger
-rw-r--r--components/script/dom/macros.rs1
-rw-r--r--components/script/dom/webidls/EventHandler.webidl1
-rw-r--r--tests/wpt/metadata/html/dom/interfaces.html.ini15
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