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.
Status
Section titled “Status”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 |
Members
Section titled “Members”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);origin
Section titled “origin”readonly attribute USVString origin;int32_t niso_location_get_origin(niso_dom* dom, niso_handle self, niso_str* out);protocol
Section titled “protocol”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 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);hostname
Section titled “hostname”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 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);pathname
Section titled “pathname”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);search
Section titled “search”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 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);assign()
Section titled “assign()”undefined assign(USVString url);int32_t niso_location_assign(niso_dom* dom, niso_handle self, const char* url, size_t url_len);replace()
Section titled “replace()”undefined replace(USVString url);int32_t niso_location_replace(niso_dom* dom, niso_handle self, const char* url, size_t url_len);reload()
Section titled “reload()”undefined reload();int32_t niso_location_reload(niso_dom* dom, niso_handle self);Not in niso yet
Section titled “Not in niso yet”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)