document.evaluate is also widespread client-side.
https://developer.mozilla.org/en-US/docs/Web/API/Document/ev...
https://developer.mozilla.org/en-US/docs/Web/API/Document/ev...
Of course XPath has its place and is the better tool for some situations. On the PHP side XPath has been supported for a long time, while the querySelector stuff is quite new.