Skip to content

Location

Generated from idl/html.webidl when the site was built at 7aa23e2.

Location is an interface in idl/html.webidl, exposed in Window. What it does is on MDN; this page says what niso has of it.

niso has no cross-document navigation: only fragment navigations succeed.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
Location Widely available Partial 11% 33 of 287 subtests pass 13
attribute
stringifier attribute USVString href;
int32_t niso_location_get_href(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_location_set_href(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
readonly attribute USVString origin;
int32_t niso_location_get_origin(niso_dom* dom, niso_handle self, niso_str* out);
attribute
attribute USVString protocol;
int32_t niso_location_get_protocol(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_location_set_protocol(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
attribute USVString host;
int32_t niso_location_get_host(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_location_set_host(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
attribute USVString hostname;
int32_t niso_location_get_hostname(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_location_set_hostname(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
attribute USVString port;
int32_t niso_location_get_port(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_location_set_port(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
attribute USVString pathname;
int32_t niso_location_get_pathname(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_location_set_pathname(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
attribute USVString search;
int32_t niso_location_get_search(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_location_set_search(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
attribute USVString hash;
int32_t niso_location_get_hash(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_location_set_hash(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
operation
undefined assign(USVString url);
int32_t niso_location_assign(niso_dom* dom, niso_handle self, const char* url, size_t url_len);
operation
undefined replace(USVString url);
int32_t niso_location_replace(niso_dom* dom, niso_handle self, const char* url, size_t url_len);
operation
undefined reload();
int32_t niso_location_reload(niso_dom* dom, niso_handle self);

Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.

  • ancestorOrigins (Location)
  • toString (Location)