/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_bindings/webidls/ToggleEvent.webidl
18 строк
658 B
Luke Warlow
script: Implement `ToggleEvent` and use for `<details>` element (#40271)
02 ноя 2025, 21:20
Не верифицирован
02 ноя 2025, 21:20
8ca4ecb
Код
Авторство
О чём код?
/* 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/. */ // https://html.spec.whatwg.org/multipage/#the-toggleevent-interface [Exposed=Window] interface ToggleEvent : Event { [Throws] constructor(DOMString type, optional ToggleEventInit eventInitDict = {}); readonly attribute DOMString oldState; readonly attribute DOMString newState; readonly attribute Element? source; }; dictionary ToggleEventInit : EventInit { DOMString oldState = ""; DOMString newState = ""; Element? source = null; };