I wanted to know if there are any plans in adding support for CSS selector type queries to the HtmlUnit's DOM next to current XPath support. Considering HtmlUnit seems to support jQuery, maybe adding support for CSS selectors through embedding jQuery into your DOM javascript model might be a good idea. Thoughts?
Can you provide an example of the API that you would like to see in HtmlUnit?
Pending requester information.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 30 days (the time period specified by
the administrator of this Tracker).
Re-opening and assigning to myself, as I actually think that this would be a good thing to have.
There's an emerging standard for this: http://www.w3.org/TR/selectors-api/
Are still there any plans to implement this?
Have a look at
http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/html/HtmlPage.html#querySelector%28java.lang.String%29
But this is only for the HtmlPage. What about the DomNode class? You should be able to find child nodes by css from the current node. I am asking this because I am trying to fix an open issue on Webdriver/Selenium2 to enable CSS selectors for HtmlUnitDriver.
DomNode was having the mentioned methods, now they are public.