Bug 12450

Summary: XPath test suite failures
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: XMLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal Keywords: LayoutTestFailure
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on: 12452, 12464, 12471, 12486, 12560    
Bug Blocks:    

Alexey Proskuryakov
Reported 2007-01-28 12:02:56 PST
These XPath tests currently fail: dom/svg/level3/xpath/XPathResult_singleNodeValue_FIRST_ORDERED_NODE_TYPE.svg dom/svg/level3/xpath/XPathResult_iteratorNext_ORDERED_NODE_ITERATOR_TYPE.svg dom/svg/level3/xpath/XPathResult_booleanValue_true.svg dom/svg/level3/xpath/XPathResult_stringValue.svg dom/svg/level3/xpath/XPathResult_snapshotLength_UNORDERED_NODE_SNAPSHOT_TYPE.svg dom/svg/level3/xpath/XPathResult_snapshotLength_ORDERED_NODE_SNAPSHOT_TYPE.svg dom/svg/level3/xpath/XPathResult_snapshotItem_ORDERED_NODE_SNAPSHOT_TYPE_order.svg dom/svg/level3/xpath/XPathResult_snapshotItem_UNORDERED_NODE_SNAPSHOT_TYPE_count.svg dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_nist_dmstc.svg dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_null.svg dom/svg/level3/xpath/Text_Nodes.svg dom/svg/level3/xpath/Conformance_ID.svg These two tests fail because our svgunit.js doesn't support loading multiple documents: dom/svg/level3/xpath/XPathExpression_evaluate_WRONG_DOCUMENT_ERR.svg dom/svg/level3/xpath/XPathEvaluator_evaluate_WRONG_DOCUMENT_ERR.svg
Attachments
Alexey Proskuryakov
Comment 1 2007-01-29 22:03:07 PST
The current list: XPathResult_invalidIteratorState_ORDERED_NODE_ITERATOR_TYPE XPathResult_invalidIteratorState_UNORDERED_NODE_ITERATOR_TYPE XPathResult_invalidIteratorState_ANY_TYPE XPathResult_iterateNext_INVALID_STATE_ERR These now fail because XPathResult relies on DOM mutation events for invalidation, which don't work in XMLHttpRequest responses for some reason. Conformance_ID This fails because id() function is not supported, bug 12452. XPathExpression_evaluate_WRONG_DOCUMENT_ERR XPathEvaluator_evaluate_WRONG_DOCUMENT_ERR These now work, but fail. They also fail in Firefox, but pass in Opera. XPathNSResolver_lookupNamespaceURI_nist_dmstc XPathNSResolver_lookupNamespaceURI_null Text_Nodes Haven't investigated these yet.
Alexey Proskuryakov
Comment 2 2007-02-03 13:02:15 PST
The current list: XPathResult_invalidIteratorState_ORDERED_NODE_ITERATOR_TYPE XPathResult_invalidIteratorState_UNORDERED_NODE_ITERATOR_TYPE XPathResult_invalidIteratorState_ANY_TYPE XPathResult_iterateNext_INVALID_STATE_ERR These fail because XPathResult relies on DOM mutation events for invalidation, and those don't work in XMLHttpRequest responses for some reason. Bug 12471. XPathExpression_evaluate_WRONG_DOCUMENT_ERR XPathEvaluator_evaluate_WRONG_DOCUMENT_ERR These now work, but fail. They also fail in Firefox, but pass in Opera. From reading the spec, I'm not entirely sure if they must pass, as our XPathEvaluator is not tied to the document, and can work on any nodes.
Alexey Proskuryakov
Comment 3 2009-06-01 01:40:09 PDT
The remaining failures are: Text_Nodes WONTFIX per bug 12560. XPathEvaluator_evaluate_WRONG_DOCUMENT_ERR XPathExpression_evaluate_WRONG_DOCUMENT_ERR WONTFIX per above comments.
Note You need to log in before you can comment on or make changes to this bug.