Event
Generated from idl/dom.webidl when the site was built at 7aa23e2.
Event is an interface in idl/dom.webidl, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| Events | Widely available | Partial 66% 669 of 1009 subtests pass | 14 |
| Shadow DOM | Widely available | Partial 3.4% 26 of 756 subtests pass | 2 |
Members
Section titled “Members”constructor
Section titled “constructor”constructor(DOMString type, optional EventInit eventInitDict = {});int32_t niso_event_new(niso_dom* dom, const char* type, size_t type_len, const niso_event_init* event_init_dict, niso_handle* out);readonly attribute DOMString type;int32_t niso_event_get_type(niso_dom* dom, niso_handle self, niso_str* out);target
Section titled “target”readonly attribute EventTarget? target;int32_t niso_event_get_target(niso_dom* dom, niso_handle self, niso_handle* out);srcElement
Section titled “srcElement”readonly attribute EventTarget? srcElement;int32_t niso_event_get_src_element(niso_dom* dom, niso_handle self, niso_handle* out);currentTarget
Section titled “currentTarget”readonly attribute EventTarget? currentTarget;int32_t niso_event_get_current_target(niso_dom* dom, niso_handle self, niso_handle* out);composedPath()
Section titled “composedPath()”sequence<EventTarget> composedPath();int32_t niso_event_composed_path(niso_dom* dom, niso_handle self, niso_handles* out);const unsigned short NONE = 0;CAPTURING_PHASE
Section titled “CAPTURING_PHASE”const unsigned short CAPTURING_PHASE = 1;AT_TARGET
Section titled “AT_TARGET”const unsigned short AT_TARGET = 2;BUBBLING_PHASE
Section titled “BUBBLING_PHASE”const unsigned short BUBBLING_PHASE = 3;eventPhase
Section titled “eventPhase”readonly attribute unsigned short eventPhase;int32_t niso_event_get_event_phase(niso_dom* dom, niso_handle self, uint16_t* out);stopPropagation()
Section titled “stopPropagation()”undefined stopPropagation();int32_t niso_event_stop_propagation(niso_dom* dom, niso_handle self);cancelBubble
Section titled “cancelBubble”attribute boolean cancelBubble;int32_t niso_event_get_cancel_bubble(niso_dom* dom, niso_handle self, bool* out);int32_t niso_event_set_cancel_bubble(niso_dom* dom, niso_handle self, bool value);stopImmediatePropagation()
Section titled “stopImmediatePropagation()”undefined stopImmediatePropagation();int32_t niso_event_stop_immediate_propagation(niso_dom* dom, niso_handle self);bubbles
Section titled “bubbles”readonly attribute boolean bubbles;int32_t niso_event_get_bubbles(niso_dom* dom, niso_handle self, bool* out);cancelable
Section titled “cancelable”readonly attribute boolean cancelable;int32_t niso_event_get_cancelable(niso_dom* dom, niso_handle self, bool* out);returnValue
Section titled “returnValue”attribute boolean returnValue;int32_t niso_event_get_return_value(niso_dom* dom, niso_handle self, bool* out);int32_t niso_event_set_return_value(niso_dom* dom, niso_handle self, bool value);preventDefault()
Section titled “preventDefault()”undefined preventDefault();int32_t niso_event_prevent_default(niso_dom* dom, niso_handle self);defaultPrevented
Section titled “defaultPrevented”readonly attribute boolean defaultPrevented;int32_t niso_event_get_default_prevented(niso_dom* dom, niso_handle self, bool* out);composed
Section titled “composed”readonly attribute boolean composed;int32_t niso_event_get_composed(niso_dom* dom, niso_handle self, bool* out);isTrusted
Section titled “isTrusted”readonly attribute boolean isTrusted;int32_t niso_event_get_is_trusted(niso_dom* dom, niso_handle self, bool* out);timeStamp
Section titled “timeStamp”readonly attribute DOMHighResTimeStamp timeStamp;int32_t niso_event_get_time_stamp(niso_dom* dom, niso_handle self, double* out);initEvent()
Section titled “initEvent()”undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);int32_t niso_event_init_event(niso_dom* dom, niso_handle self, const char* type, size_t type_len, bool bubbles, bool cancelable);