Bug 103502

Summary: Node::compareDocumentPosition returns wrong value for a node in the different shadow tree.
Product: WebKit Reporter: Hayato Ito <hayato>
Component: DOMAssignee: Hayato Ito <hayato>
Status: RESOLVED FIXED    
Severity: Normal CC: ojan, webcomponents-bugzilla, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 72352    
Attachments:
Description Flags
Fix Node::compareDocumentPosition for nodes in shadow tree. none

Description Hayato Ito 2012-11-28 04:01:51 PST
According to the spec (http://dom.spec.whatwg.org/#dom-node-comparedocumentposition), if two nodes are not in the same tree, we should return DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC.
But the current implementation mays not return that for nodes which are in different shadow trees.
Comment 1 Hayato Ito 2012-11-28 05:49:46 PST
Created attachment 176468 [details]
Fix Node::compareDocumentPosition for nodes in shadow tree.
Comment 2 WebKit Review Bot 2012-11-28 19:18:40 PST
Comment on attachment 176468 [details]
Fix Node::compareDocumentPosition for nodes in shadow tree.

Clearing flags on attachment: 176468

Committed r136087: <http://trac.webkit.org/changeset/136087>
Comment 3 WebKit Review Bot 2012-11-28 19:18:43 PST
All reviewed patches have been landed.  Closing bug.