Reputation: 25117
Why did the Mojo::DOM developers create their own Selectors and not use the XPath syntax?
Upvotes: 5
Views: 872
Reputation: 4335
They didn’t exactly. CSS syntax is much more natural to a lot of web developers and, despite xpath’s power, CSS is a better impedance match for HTML DOM. It’s one of the reasons jQuery has done so well for example.