11 ms·
> XPath doesn't need to have any dependency on XML capability. That's an important point, programmatically applying XPath to HTML can be super convenient, whi
by masklinn 6y ago
> XPath doesn't need to have any dependency on XML capability.
That's an important point, programmatically applying XPath to HTML can be super convenient, while basic CSS selectors are superior, XPath is way better for non-trivial selections, and because CSS was designed in a rather ad-hoc manner it "scales" very badly as new features get grafted on.