Event.idl 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. interface Event {
  2. constructor(DOMString type, optional EventInit eventInitDict = {});
  3. readonly attribute DOMString type;
  4. readonly attribute EventTarget? target;
  5. readonly attribute EventTarget? srcTarget;
  6. readonly attribute EventTarget? currentTarget;
  7. sequence<EventTarget> composedPath();
  8. const unsigned short NONE = 0;
  9. const unsigned short CAPTURING_PHASE = 1;
  10. const unsigned short AT_TARGET = 2;
  11. const unsigned short BUBBLING_PHASE = 3;
  12. readonly attribute unsigned short eventPhase;
  13. undefined stopPropagation();
  14. attribute boolean cancelBubble;
  15. undefined stopImmediatePropagation();
  16. readonly attribute boolean bubbles;
  17. readonly attribute boolean cancelable;
  18. attribute boolean returnValue;
  19. undefined preventDefault();
  20. readonly attribute boolean defaultPrevented;
  21. readonly attribute boolean composed;
  22. readonly attribute boolean isTrusted;
  23. readonly attribute double timeStamp;
  24. undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
  25. };
  26. dictionary EventInit {
  27. boolean bubbles = false;
  28. boolean cancelable = false;
  29. boolean composed = false;
  30. };