Bug 12619

Summary: Non-abbreviated XPaths don't work
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: XMLAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on:    
Bug Blocks: 12584    
Attachments:
Description Flags
test case
none
proposed fix ggaren: review+

Description Alexey Proskuryakov 2007-02-05 13:05:15 PST
It seems to be an issue in the parser that garbage is sent to XPath::Step ctor instead of correct Axis ids.
Comment 1 Alexey Proskuryakov 2007-02-05 13:06:07 PST
Created attachment 12941 [details]
test case
Comment 2 Alexey Proskuryakov 2007-02-05 13:40:00 PST
I have a fix for this issue (which is caused by a missing break in a switch statement in Parser::lex()), but my test case still doesn't work correctly. WebKit and Firefox/Opera seem to have different ideas about what a root node is (in Firefox, it's the document element, while in WebKit, it's the Document itself).

Going to investigate this further.
Comment 3 Alexey Proskuryakov 2007-02-05 21:48:39 PST
Created attachment 12960 [details]
proposed fix
Comment 4 Geoffrey Garen 2007-02-05 21:50:57 PST
Comment on attachment 12960 [details]
proposed fix

r=me
Comment 5 Alexey Proskuryakov 2007-02-05 21:53:19 PST
Committed revision 19425.