mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Implement ToggleEvent and use for details element Testing: Covered by existing WPTs Signed-off-by: Luke Warlow <lwarlow@igalia.com>
19 lines
658 B
Plaintext
19 lines
658 B
Plaintext
/* 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;
|
|
};
|