5

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

cjm
  • 61,471
  • 9
  • 126
  • 175
sid_com
  • 24,137
  • 26
  • 96
  • 187

1 Answers1

5

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.

Ashley
  • 4,307
  • 2
  • 19
  • 28