Issues

ZF-8904: Zend_Dom_Query can't handle ID's starting with '__'

Issue Type: Bug Created: 2010-01-22T08:54:48.000+0000 Last Updated: 2012-10-24T18:12:38.000+0000 Status: Open Fix version(s): Reporter: Vincent (vinnl) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dom_Query

Related issues: - ZF-9099

Attachments:

Description

When using Zend_Dom_Query::query with a query of the form '#__' it doesn't convert it to the correct Xpath query.

Comments

Posted by Ivan (ivun) on 2012-10-24T18:12:38.000+0000

Have the same problem. The fix would be in Zend_Dom_Query_Css2Xpath::_tokenize():

Change $expression = preg_replace('|#([a-z][a-z0-9_-])|i', '[@id=\'$1\']', $expression); to $expression = preg_replace('|#([a-z_][a-z0-9_-])|i', '[@id=\'$1\']', $expression);

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