Bug 17410

Summary: XPath parser chokes with some queries
Product: WebKit Reporter: Valentino Volonghi <dialtone>
Component: XMLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Test file that shows the problem none

Valentino Volonghi
Reported 2008-02-17 08:27:35 PST
.//*[@*[translate(name(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')='athena:class']='foobar'] | .[@*[translate(name(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')='athena:class']='foobar'] This query fails with WebKit but works on Opera and Firefox. The problem is the second part of the OR and more specifically the expression: .[****]
Attachments
Test file that shows the problem (1.51 KB, text/html)
2008-02-17 08:28 PST, Valentino Volonghi
no flags
Valentino Volonghi
Comment 1 2008-02-17 08:28:59 PST
Created attachment 19177 [details] Test file that shows the problem
Alexey Proskuryakov
Comment 2 2008-02-18 02:56:39 PST
We may have to change WebKit behavior for compatibility with Firefox one day, but WebKit is correct here, according to the spec. *** This bug has been marked as a duplicate of 12632 ***
Note You need to log in before you can comment on or make changes to this bug.