-
Notifications
You must be signed in to change notification settings - Fork 92
Make XPathResult (returned by document.evaluate(...)) iterable #97
Comments
@phistuck Sorry for this late response... Can you provide some more information please? It isn't clear (to me at least) what you're proposing. |
@LJWatson - I am discussing adding the |
xPath is not a WebPlatform WG specification. There is an xPath wiki, but there has been no recent activity there. Given that xPath is supported, it may be worth thinking about reviving this activity. It seems there are some Web Platform Tests already,, and you may want to write a tentative test for your proposal. |
XPath isn't. But |
Sadly there is no formal spec for |
closing as outside scope of the wg. |
This will make
for (let x of document.evaluate(...))
possible instead of the current pseudo old-school non-ECMAScript-compatible iterator thatXPathResult
currently is.A basic and probably incomplete polyfill -
https://github.com/phistuck/monorail-enhancer-extension/blob/9e6b0b645d2df97b2e6717a35712a0d6b6229532/injector.js#L12-L29
The text was updated successfully, but these errors were encountered: