Skip to content

XPathResult

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

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

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
XPath Widely available Partial 98% 1146 of 1166 subtests pass 10
const
const unsigned short ANY_TYPE = 0;
const
const unsigned short NUMBER_TYPE = 1;
const
const unsigned short STRING_TYPE = 2;
const
const unsigned short BOOLEAN_TYPE = 3;
const
const unsigned short UNORDERED_NODE_ITERATOR_TYPE = 4;
const
const unsigned short ORDERED_NODE_ITERATOR_TYPE = 5;
const
const unsigned short UNORDERED_NODE_SNAPSHOT_TYPE = 6;
const
const unsigned short ORDERED_NODE_SNAPSHOT_TYPE = 7;
const
const unsigned short ANY_UNORDERED_NODE_TYPE = 8;
const
const unsigned short FIRST_ORDERED_NODE_TYPE = 9;
attribute
readonly attribute unsigned short resultType;
int32_t niso_x_path_result_get_result_type(niso_dom* dom, niso_handle self, uint16_t* out);
attribute
readonly attribute unrestricted double numberValue;
int32_t niso_x_path_result_get_number_value(niso_dom* dom, niso_handle self, double* out);
attribute
readonly attribute DOMString stringValue;
int32_t niso_x_path_result_get_string_value(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute boolean booleanValue;
int32_t niso_x_path_result_get_boolean_value(niso_dom* dom, niso_handle self, bool* out);
attribute
readonly attribute Node? singleNodeValue;
int32_t niso_x_path_result_get_single_node_value(niso_dom* dom, niso_handle self, niso_handle* out);
attribute
readonly attribute boolean invalidIteratorState;
int32_t niso_x_path_result_get_invalid_iterator_state(niso_dom* dom, niso_handle self, bool* out);
attribute
readonly attribute unsigned long snapshotLength;
int32_t niso_x_path_result_get_snapshot_length(niso_dom* dom, niso_handle self, uint32_t* out);
operation
Node? iterateNext();
int32_t niso_x_path_result_iterate_next(niso_dom* dom, niso_handle self, niso_handle* out);
operation
Node? snapshotItem(unsigned long index);
int32_t niso_x_path_result_snapshot_item(niso_dom* dom, niso_handle self, uint32_t index, niso_handle* out);