mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add onkey* global event handler attributes
This commit is contained in:
parent
b1021c36c5
commit
7f63309602
4 changed files with 7 additions and 36 deletions
|
@ -274,6 +274,9 @@ macro_rules! global_event_handlers(
|
||||||
);
|
);
|
||||||
(NoOnload) => (
|
(NoOnload) => (
|
||||||
event_handler!(click, GetOnclick, SetOnclick);
|
event_handler!(click, GetOnclick, SetOnclick);
|
||||||
|
event_handler!(keydown, GetOnkeydown, SetOnkeydown);
|
||||||
|
event_handler!(keypress, GetOnkeypress, SetOnkeypress);
|
||||||
|
event_handler!(keypress, GetOnkeyup, SetOnkeyup);
|
||||||
event_handler!(input, GetOninput, SetOninput);
|
event_handler!(input, GetOninput, SetOninput);
|
||||||
event_handler!(change, GetOnchange, SetOnchange);
|
event_handler!(change, GetOnchange, SetOnchange);
|
||||||
event_handler!(submit, GetOnsubmit, SetOnsubmit);
|
event_handler!(submit, GetOnsubmit, SetOnsubmit);
|
||||||
|
|
|
@ -24,6 +24,9 @@ interface GlobalEventHandlers {
|
||||||
attribute EventHandler onclick;
|
attribute EventHandler onclick;
|
||||||
attribute EventHandler onload;
|
attribute EventHandler onload;
|
||||||
attribute EventHandler oninput;
|
attribute EventHandler oninput;
|
||||||
|
attribute EventHandler onkeydown;
|
||||||
|
attribute EventHandler onkeypress;
|
||||||
|
attribute EventHandler onkeyup;
|
||||||
attribute EventHandler onchange;
|
attribute EventHandler onchange;
|
||||||
attribute EventHandler onsubmit;
|
attribute EventHandler onsubmit;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
type: testharness
|
type: testharness
|
||||||
[loading documents from original origin after setting document.domain]
|
[loading documents from original origin after setting document.domain]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -159,15 +159,6 @@
|
||||||
[Document interface: attribute oninvalid]
|
[Document interface: attribute oninvalid]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: attribute onkeydown]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onkeypress]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onkeyup]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute onloadeddata]
|
[Document interface: attribute onloadeddata]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1260,15 +1251,6 @@
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oninvalid" with the proper type (120)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "oninvalid" with the proper type (120)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onkeydown" with the proper type (121)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onkeypress" with the proper type (122)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onkeyup" with the proper type (123)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onloadeddata" with the proper type (125)]
|
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "onloadeddata" with the proper type (125)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1779,15 +1761,6 @@
|
||||||
[HTMLElement interface: attribute oninvalid]
|
[HTMLElement interface: attribute oninvalid]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLElement interface: attribute onkeydown]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onkeypress]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onkeyup]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: attribute onloadeddata]
|
[HTMLElement interface: attribute onloadeddata]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -2028,15 +2001,6 @@
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "oninvalid" with the proper type (59)]
|
[HTMLElement interface: document.createElement("noscript") must inherit property "oninvalid" with the proper type (59)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onkeydown" with the proper type (60)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onkeypress" with the proper type (61)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onkeyup" with the proper type (62)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLElement interface: document.createElement("noscript") must inherit property "onloadeddata" with the proper type (64)]
|
[HTMLElement interface: document.createElement("noscript") must inherit property "onloadeddata" with the proper type (64)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue