Zend Framework

Zend_Dom_Query_Css2Xpath direct descendants syntax breaks w/whitespace

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Dom_Query
  • Labels:
    None

Description

Using the css query syntax for direct descendants with whitespace on either side of the '>' breaks the parsing.

Works: "div>a"
Fails: "div > a"

Manual docs shows example with whitespace, and jQuery allows whitespace as well (consistency).

Activity

Hide
Chris Martin added a comment -

Patch included

Show
Chris Martin added a comment - Patch included
Hide
Matthew Weier O'Phinney added a comment -

Fixed in trunk and the 1.10 release branch; thanks for the patch!

Show
Matthew Weier O'Phinney added a comment - Fixed in trunk and the 1.10 release branch; thanks for the patch!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: