Why 开发者_StackOverflow中文版did the Mojo::DOM developers create their own Selectors and not use the XPath syntax?
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.
精彩评论