Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mojo::DOM - XPath - Question

Tags:

dom

perl

xpath

mojo

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

like image 227
sid_com Avatar asked Jul 16 '11 05:07

sid_com


1 Answers

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.

like image 130
Ashley Avatar answered Oct 21 '22 12:10

Ashley