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

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