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