mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Add oninput/onchange so tests work
This commit is contained in:
parent
e7ac792ed6
commit
e7b3caa386
15 changed files with 43 additions and 200 deletions
|
@ -211,3 +211,19 @@ macro_rules! error_event_handler(
|
|||
define_event_handler!(OnErrorEventHandlerNonNull, $event_type, $getter, $setter)
|
||||
)
|
||||
)
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#globaleventhandlers
|
||||
// see webidls/EventHandler.webidl
|
||||
// As more methods get added, just update them here.
|
||||
macro_rules! global_event_handlers(
|
||||
() => (
|
||||
event_handler!(load, GetOnload, SetOnload)
|
||||
global_event_handlers!(NoOnload)
|
||||
|
||||
);
|
||||
(NoOnload) => (
|
||||
event_handler!(click, GetOnclick, SetOnclick)
|
||||
event_handler!(input, GetOninput, SetOninput)
|
||||
event_handler!(change, GetOnchange, SetOnchange)
|
||||
)
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue