This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20268 - [Shadow]: HTMLShadowElement.olderShadowRoot might return a wrong value unintentionally.
Summary: [Shadow]: HTMLShadowElement.olderShadowRoot might return a wrong value uninte...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 18428
  Show dependency treegraph
 
Reported: 2012-12-06 11:12 UTC by Shinya Kawanaka
Modified: 2012-12-06 21:20 UTC (History)
0 users

See Also:


Attachments

Description Shinya Kawanaka 2012-12-06 11:12:24 UTC
Sorry if I'm wrong.

I think the algorithm of olderShadowRoot of HTMLShadowElement should consider activeness.

Let's consider the case a non-active shadow element is the first shadow instance, and active shadow element is the second shadow instance. The first shadow instance should return NULL and The second shadow instance should return the assigned ShadowRoot instead of NULL.
Comment 1 Dimitri Glazkov 2012-12-06 21:20:50 UTC
Good catch! http://dvcs.w3.org/hg/webcomponents/rev/5762cc462fc9