3 ms·
Yeah, querySelector/querySelectorAll are totally widespread in client-side, it's nice to finally have them in PHP's newer DOM. Definitely what people are used t
by zerocrates 5mo ago
Yeah, querySelector/querySelectorAll are totally widespread in client-side, it's nice to finally have them in PHP's newer DOM. Definitely what people are used to doing.
- werdnapk 5mo agodocument.evaluate is also widespread client-side. https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate https://developer.mozilla.org/en-US/docs/Web/API/Document/ev...
- zerocrates 5mo agoSure, I was more speaking to usage... I'd have to imagine that querySelector* dwarfs evaluate in actual usage. Chrome's stats put evaluate at about 5% of loads; I'm not sure they have tracking for querySelector. 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.