Issues

ZF-8753: Zend_Dom_Query CSS query does not match elements having class with hyphen

Issue Type: Bug Created: 2010-01-08T12:35:59.000+0000 Last Updated: 2012-11-20T21:38:13.000+0000 Status: Open Fix version(s): Reporter: Wojciech Szela (wojciech.szela) Assignee: None Tags: - Zend_Dom_Query

Related issues: Attachments:

Description

If there is an element having class with hyphen in name, eg.

<

div class="class-one"> and one queries for such element using second class name:

$dom->query('.class-one');

the element is not matched (query returns empty result), but only if the element is any level child of an element having two classes.

For instance, the above query will work in the the following case:

but not in the one below:

Already tagged 1.9.7 release is also affected.

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts