summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/Location.idl
blob: 752ff5f18a6cbd4e0d116295af55d75f073fff9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#location
[Exposed=Window, UseNewAKString]
interface Location { // but see also additional creation steps and overridden internal methods
    [LegacyUnforgeable] stringifier attribute USVString href;
    [LegacyUnforgeable] readonly attribute USVString origin;
    [LegacyUnforgeable] attribute USVString protocol;
    [LegacyUnforgeable] attribute USVString host;
    [LegacyUnforgeable] attribute USVString hostname;
    [LegacyUnforgeable] attribute USVString port;
    [LegacyUnforgeable] attribute USVString pathname;
    [LegacyUnforgeable] attribute USVString search;
    [LegacyUnforgeable] attribute USVString hash;

    [LegacyUnforgeable] undefined assign(USVString url);
    [LegacyUnforgeable] undefined replace(USVString url);
    [LegacyUnforgeable] undefined reload();

    // TODO: [LegacyUnforgeable, SameObject] readonly attribute DOMStringList ancestorOrigins;
};