mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make History attributes and methods throw
This commit is contained in:
parent
5e2d383274
commit
5c53f5b7fa
2 changed files with 26 additions and 12 deletions
|
@ -7,12 +7,20 @@
|
|||
// https://html.spec.whatwg.org/multipage/#the-history-interface
|
||||
[Exposed=(Window,Worker)]
|
||||
interface History {
|
||||
[Throws]
|
||||
readonly attribute unsigned long length;
|
||||
// [Throws]
|
||||
// attribute ScrollRestoration scrollRestoration;
|
||||
// [Throws]
|
||||
// readonly attribute any state;
|
||||
[Throws] void go(optional long delta = 0);
|
||||
[Throws]
|
||||
void go(optional long delta = 0);
|
||||
[Throws]
|
||||
void back();
|
||||
[Throws]
|
||||
void forward();
|
||||
// [Throws]
|
||||
// void pushState(any data, DOMString title, optional USVString? url = null);
|
||||
// [Throws]
|
||||
// void replaceState(any data, DOMString title, optional USVString? url = null);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue