sid_com
sid_com

Reputation: 25117

Mojo::DOM - XPath - Question

Why did the Mojo::DOM developers create their own Selectors and not use the XPath syntax?

Upvotes: 5

Views: 872

Answers (1)

Ashley
Ashley

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.

Upvotes: 5

Related Questions