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 16230 - [Shadow]: Consider clarifying the ShadowRoot.activeElement attribute description
Summary: [Shadow]: Consider clarifying the ShadowRoot.activeElement attribute description
Status: RESOLVED WORKSFORME
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: 14978
  Show dependency treegraph
 
Reported: 2012-03-05 07:47 UTC by Kaustubh Atrawalkar
Modified: 2012-03-12 19:15 UTC (History)
5 users (show)

See Also:


Attachments

Description Kaustubh Atrawalkar 2012-03-05 07:47:14 UTC
" each shadow root must also have an activeElement property to store the value of the focused element in the shadow DOM subtree." - 

should it be like below line ? Seems bit confusing with above line.

" each shadow root must also have an activeElement property to store the value of shadow host element which contains the focused element in its shadow DOM subtree."
Comment 1 Dimitri Glazkov 2012-03-05 20:12:32 UTC
(In reply to comment #0)

> " each shadow root must also have an activeElement property to store the value
> of shadow host element which contains the focused element in its shadow DOM
> subtree."

Ok, now I am confused :)

A shadow root may only have one shadow host. So by this description, we will always see the shadow host value when querying the activeElement property.

What would be the usefulness of this?
Comment 2 Kaustubh Atrawalkar 2012-03-06 13:12:47 UTC
(In reply to comment #1)
> (In reply to comment #0)
> 
> > " each shadow root must also have an activeElement property to store the value
> > of shadow host element which contains the focused element in its shadow DOM
> > subtree."
> 
> Ok, now I am confused :)
> 
> A shadow root may only have one shadow host. So by this description, we will
> always see the shadow host value when querying the activeElement property.
> 
> What would be the usefulness of this?

Ok got it. Confusion solved :) So activeElement property of shadowRoot should return the element in its sub tree and not the host element. I hope i got it right now.
Comment 3 Dimitri Glazkov 2012-03-12 19:15:45 UTC
I think the description is ok as-is. Please chime in if you disagree.