Location.idl 931 B

12345678910111213141516171819
  1. // https://html.spec.whatwg.org/multipage/nav-history-apis.html#location
  2. [Exposed=Window]
  3. interface Location { // but see also additional creation steps and overridden internal methods
  4. [LegacyUnforgeable] stringifier attribute USVString href;
  5. [LegacyUnforgeable] readonly attribute USVString origin;
  6. [LegacyUnforgeable] attribute USVString protocol;
  7. [LegacyUnforgeable] attribute USVString host;
  8. [LegacyUnforgeable] attribute USVString hostname;
  9. [LegacyUnforgeable] attribute USVString port;
  10. [LegacyUnforgeable] attribute USVString pathname;
  11. [LegacyUnforgeable] attribute USVString search;
  12. [LegacyUnforgeable] attribute USVString hash;
  13. [LegacyUnforgeable] undefined assign(USVString url);
  14. [LegacyUnforgeable] undefined replace(USVString url);
  15. [LegacyUnforgeable] undefined reload();
  16. // TODO: [LegacyUnforgeable, SameObject] readonly attribute DOMStringList ancestorOrigins;
  17. };