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

Issue Type: Bug Created: 2010-04-28T11:24:21.000+0000 Last Updated: 2010-04-28T13:01:32.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Núria Aloy (nuqqsa) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dom_Query

Related issues: Attachments:


Method: Zend_Dom_Query_Css2Xpath::transform()

  1. CSS ID Selector with attribute(s)
<pre class="highlight">
is converted to

while it should be

<pre class="highlight">

2. *CSS ID Selector with leading asterisk symbol*

is converted to

<pre class="highlight">
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.


Posted by Matthew Weier O'Phinney (matthew) on 2010-04-28T13:01:30.000+0000

Fixed in trunk and 1.10 release branch.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.