|
|
|
|
|
by shp0ngle
1694 days ago
|
|
Yes this is what I wanted to add. $() is obviously inspired by jquery itself, but it has a slightly different semantics than jquery, so ironically jquery can override it. I am not sure what x$ is. However, what was not in the article, you can also you $x("/something") for xpath. That can be useful, because for some queries, xpath is easier than CSS selectors, and it is actually far more powerful (except that nobody really knows xpath nowadays). The $x thing is actually script around `document.evaluate(xpath, document.evaluate, null, XPathResult.ANY_TYPE, null)`, but good luck remembering how to use that stuff... I can never write doc.evaluate on the first try |
|