<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16230</bug_id>
          
          <creation_ts>2012-03-05 07:47:14 +0000</creation_ts>
          <short_desc>[Shadow]: Consider clarifying the ShadowRoot.activeElement attribute description</short_desc>
          <delta_ts>2012-03-12 19:15:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kaustubh Atrawalkar">kaustubh</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dominicc</cc>
    
    <cc>hayato</cc>
    
    <cc>kaustubh</cc>
    
    <cc>morrita</cc>
    
    <cc>shinyak</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65012</commentid>
    <comment_count>0</comment_count>
    <who name="Kaustubh Atrawalkar">kaustubh</who>
    <bug_when>2012-03-05 07:47:14 +0000</bug_when>
    <thetext>&quot; each shadow root must also have an activeElement property to store the value of the focused element in the shadow DOM subtree.&quot; - 

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

&quot; 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.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65041</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-03-05 20:12:32 +0000</bug_when>
    <thetext>(In reply to comment #0)

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

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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65067</commentid>
    <comment_count>2</comment_count>
    <who name="Kaustubh Atrawalkar">kaustubh</who>
    <bug_when>2012-03-06 13:12:47 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; 
&gt; &gt; &quot; each shadow root must also have an activeElement property to store the value
&gt; &gt; of shadow host element which contains the focused element in its shadow DOM
&gt; &gt; subtree.&quot;
&gt; 
&gt; Ok, now I am confused :)
&gt; 
&gt; A shadow root may only have one shadow host. So by this description, we will
&gt; always see the shadow host value when querying the activeElement property.
&gt; 
&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65370</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-03-12 19:15:45 +0000</bug_when>
    <thetext>I think the description is ok as-is. Please chime in if you disagree.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>