ZF-9764: Wrong conversion of certain CSS ID Selectors to Xpath queries
Description
Method: Zend_Dom_Query_Css2Xpath::transform()
- CSS ID Selector with attribute(s)
is converted to
while it should be
2. *CSS ID Selector with leading asterisk symbol*
is converted to
while it should be
According to the W3C specification (http://w3.org/TR/CSS2/…) both are valid expressions.
This bug causes, for instance, Zend_Test_PHPUnit_ControllerTestCase::assertQuery to fail at matching existing elements for certain valid expressions.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2010-04-28T13:01:30.000+0000
Fixed in trunk and 1.10 release branch.