Skip to content

History

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

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

Every entry of niso’s session history is the same document: any values cross the C API as the binding’s structured serialization.

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
History Widely available Partial 18% 55 of 304 subtests pass 9
attribute
readonly attribute unsigned long length;
int32_t niso_history_get_length(niso_dom* dom, niso_handle self, uint32_t* out);
attribute
attribute DOMString scrollRestoration;
int32_t niso_history_get_scroll_restoration(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_history_set_scroll_restoration(niso_dom* dom, niso_handle self, const char* value, size_t value_len);

The standard’s ScrollRestoration enumeration.

attribute
readonly attribute any state;
int32_t niso_history_get_state(niso_dom* dom, niso_handle self, niso_bytes* out);
operation
undefined go(optional long delta = 0);
int32_t niso_history_go(niso_dom* dom, niso_handle self, int32_t delta);
operation
undefined back();
int32_t niso_history_back(niso_dom* dom, niso_handle self);
operation
undefined forward();
int32_t niso_history_forward(niso_dom* dom, niso_handle self);
operation
undefined pushState(any data, DOMString unused, optional USVString? url = null);
int32_t niso_history_push_state(niso_dom* dom, niso_handle self, const uint8_t* data, size_t data_len, const char* unused, size_t unused_len, const char* url, size_t url_len);
operation
undefined replaceState(any data, DOMString unused, optional USVString? url = null);
int32_t niso_history_replace_state(niso_dom* dom, niso_handle self, const uint8_t* data, size_t data_len, const char* unused, size_t unused_len, const char* url, size_t url_len);