/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_bindings/webidls/Event.webidl
51 строка
2 KB
Josh Matthews
script: Move code generation and webidl files to new script_bindings crate. (#35157)
24 янв 2025, 23:47
Не верифицирован
24 янв 2025, 23:47
af8d7c2
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ /* * For more information on this interface please see * https://dom.spec.whatwg.org/#event */ [Exposed=*] interface Event { [Throws] constructor(DOMString type, optional EventInit eventInitDict = {}); [Pure] readonly attribute DOMString type; readonly attribute EventTarget? target; readonly attribute EventTarget? srcElement; readonly attribute EventTarget? currentTarget; sequence<EventTarget> composedPath(); const unsigned short NONE = 0; const unsigned short CAPTURING_PHASE = 1; const unsigned short AT_TARGET = 2; const unsigned short BUBBLING_PHASE = 3; readonly attribute unsigned short eventPhase; undefined stopPropagation(); attribute boolean cancelBubble; undefined stopImmediatePropagation(); [Pure] readonly attribute boolean bubbles; [Pure] readonly attribute boolean cancelable; attribute boolean returnValue; // historical undefined preventDefault(); [Pure] readonly attribute boolean defaultPrevented; readonly attribute boolean composed; [LegacyUnforgeable] readonly attribute boolean isTrusted; [Constant] readonly attribute DOMHighResTimeStamp timeStamp; undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); }; dictionary EventInit { boolean bubbles = false; boolean cancelable = false; boolean composed = false; };