forked from burg/timelapse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compareDocumentPosition() should report PRECEDING or FOLLOWING inform…
…ation even if nodes are disconnected https://bugs.webkit.org/show_bug.cgi?id=119316 Reviewed by Ryosuke Niwa. Source/WebCore: As per the latest specification, compareDocumentPosition() should report PRECEDING or FOLLOWING information even if nodes are disconnected: - http://dom.spec.whatwg.org/#dom-node-comparedocumentposition This behavior is consistent with both IE10, Firefox 22 and since recently Blink. No new tests, covered by existing tests. * dom/Node.cpp: (WebCore::compareDetachedElementsPosition): (WebCore::Node::compareDocumentPosition): LayoutTests: Update fast/dom/compare-document-position-disconnected-nodes.html to check that compareDocumentPosition() now returns one of the following values for disconnected nodes: - DOCUMENT_POSITION_DISCONNECTED | DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | DOCUMENT_POSITION_PRECEDING - DOCUMENT_POSITION_DISCONNECTED | DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | DOCUMENT_POSITION_FOLLOWING Several dom/xhtml/level3 are skipped and marked as WonfFix because they are outdated and no longer match the DOM4 specification. They expect compareDocumentPosition() not to return PRECEDING / FOLLOWING information for disconnected nodes. * TestExpectations: * dom/xhtml/level3/core/nodecomparedocumentposition38-expected.txt: * fast/dom/compare-document-position-disconnected-nodes-expected.txt: * fast/dom/compare-document-position-disconnected-nodes.html: * fast/dom/shadow/compare-document-position-expected.txt: * fast/dom/shadow/compare-document-position.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
ch.dumez@sisa.samsung.com
committed
Aug 2, 2013
1 parent
3a01a34
commit 072d959
Showing
9 changed files
with
169 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition38-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Test http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodecomparedocumentposition38 | ||
Status failure | ||
Message nodecomparedocumentpositionIsContainsFollowing38: assertEquals failed, actual 33, expected 20. | ||
Status Success |
49 changes: 49 additions & 0 deletions
49
LayoutTests/fast/dom/compare-document-position-disconnected-nodes-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters