<?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>26899</bug_id>
          
          <creation_ts>2014-09-24 21:22:33 +0000</creation_ts>
          <short_desc>[Shadow]: ShadowRoot.getElementById overrides DocumentFragment&apos;s getElementById</short_desc>
          <delta_ts>2014-09-25 03:16:28 +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>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Olli Pettay">bugs</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>adamk</cc>
    
    <cc>annevk</cc>
    
    <cc>hayato</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>112134</commentid>
    <comment_count>0</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2014-09-24 21:22:33 +0000</bug_when>
    <thetext>... but ShadowRoot.getElementById() returns HTMLElement, not Element like the
DocumentFragment&apos;s getElementbyId()

http://w3c.github.io/webcomponents/spec/shadow/#shadowroot-object
https://dom.spec.whatwg.org/#nonelementparentnode</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112138</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-24 21:46:22 +0000</bug_when>
    <thetext>Why does it override it to begin with? I think that&apos;s a separate bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112139</commentid>
    <comment_count>2</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2014-09-24 21:49:39 +0000</bug_when>
    <thetext>perhaps I was unclear.
I think ShadowRoot shouldn&apos;t have getElementById, since it is there already
in DocumentFragment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112149</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Klein">adamk</who>
    <bug_when>2014-09-24 22:31:32 +0000</bug_when>
    <thetext>Looks like the mismatched return type is only a spec bug: Blink&apos;s ShadowRoot.idl lists the return time as Element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112160</commentid>
    <comment_count>4</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-09-25 02:28:58 +0000</bug_when>
    <thetext>Nice catch.

It seems we can get rid of getElementById from ShadowRoot.
Let me update the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112161</commentid>
    <comment_count>5</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-09-25 03:16:18 +0000</bug_when>
    <thetext>Fixed: https://github.com/w3c/webcomponents/commit/3d5f147812edaf74cc4f07d294836cafdf48534f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>