1 2 3 4 5 6 7 8 9 10 11 12 13
interface EventTarget { void addEventListener(); }; interface Event {}; callback EventHandlerNonNull = any (Event event); typedef EventHandlerNonNull? EventHandler; [NoInterfaceObject] interface TestEvent : EventTarget { attribute EventHandler onfoo; };