Bug 91589 - [meta] It is confusing that node->shadowAncestorNode() returns node itself if node is not in ShadowDOM
Summary: [meta] It is confusing that node->shadowAncestorNode() returns node itself if...
Status: RESOLVED DUPLICATE of bug 91821
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Web Components Team
URL:
Keywords:
: 87230 (view as bug list)
Depends on: 91814
Blocks: 91821
  Show dependency treegraph
 
Reported: 2012-07-17 23:47 PDT by Shinya Kawanaka
Modified: 2013-01-22 18:49 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shinya Kawanaka 2012-07-17 23:47:31 PDT
node->shadowAncestorNode() returns node itself if node is not in ShadowDOM.
This might be sometimes useful, however it is very confusing sometimes.

It should return null if it is not in Shadow DOM, or we should have another non-confusing method.
Comment 1 Dimitri Glazkov (Google) 2012-07-18 09:43:45 PDT
+1
Comment 2 Shinya Kawanaka 2013-01-22 00:32:51 PST
*** Bug 87230 has been marked as a duplicate of this bug. ***
Comment 3 Shinya Kawanaka 2013-01-22 18:49:06 PST
Now it seems this is equivalent to Bug 91821

*** This bug has been marked as a duplicate of bug 91821 ***