This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
" 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."
(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?
(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.
I think the description is ok as-is. Please chime in if you disagree.