Plan:
1) Editing htmlutils.js as outlined in this post -
http://updatepanel.net/2009/09/01/how-to-make-selenium-sizzle/
(But I'll edit htmlutils.js directly, and *not* do the edit via
user-extensions)
2) Replacing library import references from cssQuery to Sizzle
Issues:
The build(s) have been broken forever. :-(
1) How would I know if swapping cssQuery for Sizzle broke anything?
2) Which magic build incantation should I run to specifically test css stuff?
Related issue:
http://code.google.com/p/selenium/issues/detail?id=336
Opinionated history of this change:
1) Licensing issues are stupid.
2) cssQuery is LGPL.
3) Selenium uses cssQuery ( http://dean.edwards.name/my/cssQuery/ ).
4) Selenium is licensed as Apache2.
5) Some people think LGPL is incompatible with the Apache2 license.
6) To appease those people, we're removing cssQuery
7) Best replacement for cssQuery is Sizzle. ( http://sizzlejs.com/ )
\ hugs /
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
> So would using sizzle let us use the full jQuery selector syntax
> (including the stuff that goes way beyond CSS selectors)?
Sizzle supports the full JQuery selector syntax AFAIK. Note that only includes a subset of CSS3 selectors (as well as including selectors that are not part of CSS).
http://wiki.github.com/jeresig/sizzle/
http://ejohn.org/blog/selectors-that-people-actually-use/
--
Benjamin Hawkes-Lewis
I think for marketing purposes, we should just say "Selenium now
includes JQuery selector syntax (powered by Sizzle)"...
Also, related side-note, my Sizzle-related change in trunk is/was only
to the Selenium 1 (Core/RC/IDE) code-base... I didn't make any
WebDriver/Selenium2 related changes for doing jQuery/Sizzle lookups...
Perhaps Simon can weigh on what would be involved in "Atom"-ize CSS
lookups using jQuery/Sizzle?
\ hugs /
Rajasankar
I'll need to have a look. Technically, the Right Thing to do would be
to include sizzle in the third_party part of the tree, then define it
as a "js_dep" and drag it on when necessary. That'll need me to jigger
around with the Javascript rules in CrazyFun, but it shouldn't be much
work. Once that's done, hooking it into the locators will be a doddle.
Simon