Event.idl 870 B

12345678910111213141516171819202122232425262728
  1. interface Event {
  2. // FIXME: second parameter: 'optional EventInit eventInitDict = {}'
  3. constructor(DOMString type);
  4. readonly attribute DOMString type;
  5. readonly attribute EventTarget? target;
  6. readonly attribute EventTarget? srcTarget;
  7. readonly attribute EventTarget? currentTarget;
  8. readonly attribute unsigned short eventPhase;
  9. undefined stopPropagation();
  10. attribute boolean cancelBubble;
  11. undefined stopImmediatePropagation();
  12. readonly attribute boolean bubbles;
  13. readonly attribute boolean cancelable;
  14. attribute boolean returnValue;
  15. undefined preventDefault();
  16. readonly attribute boolean defaultPrevented;
  17. readonly attribute boolean composed;
  18. readonly attribute boolean isTrusted;
  19. undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
  20. };