ZF-9764: Wrong conversion of certain CSS ID Selectors to Xpath queries


Method: Zend_Dom_Query_Css2Xpath::transform()

  1. 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 (…) both are valid expressions.

This bug causes, for instance, Zend_Test_PHPUnit_ControllerTestCase::assertQuery to fail at matching existing elements for certain valid expressions.


Fixed in trunk and 1.10 release branch.