MCPcopy Create free account
hub / github.com/ampproject/amphtml / createXpathIterator

Function createXpathIterator

build-system/tasks/e2e/driver/query-xpath.js:129–131  ·  view source on GitHub ↗

* Create an iterator from an XPathResult instance. * @param {!XPathResult} xpathResult * @return {!Iterable<!HTMLElement>}

(xpathResult)

Source from the content-addressed store, hash-verified

127 * @return {!Iterable<!HTMLElement>}
128 */
129function createXpathIterator(xpathResult) {
130 return createCommonIterator(xpathResult, 'iterateNext');
131}
132
133/**
134 * Create an iterator from an object with iterator-like behavior but a

Callers 1

queryXpathFunction · 0.85

Calls 1

createCommonIteratorFunction · 0.85

Tested by

no test coverage detected