Add oninput/onchange so tests work

This commit is contained in:
Manish Goregaokar 2014-11-26 22:29:41 +05:30
parent e7ac792ed6
commit e7b3caa386
15 changed files with 43 additions and 200 deletions

View file

@ -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)
)
)