<?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>23810</bug_id>
          
          <creation_ts>2013-11-12 21:27:24 +0000</creation_ts>
          <short_desc>When adopting, &quot;If node is an element, it is affected by a base...&quot;</short_desc>
          <delta_ts>2014-02-10 11:02:50 +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>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>
          <dependson>20567</dependson>
          <blocked>24312</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>96200</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-12 21:27:24 +0000</bug_when>
    <thetext>http://dom.spec.whatwg.org/#interface-document

When adopting, step 3 says &quot;If node is an element, it is affected by a base URL change&quot;. But what if it&apos;s a DocumentFragment, and it contains Elements? What if it&apos;s an Element with children Elements? Are the descendants also so affected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96508</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-11-19 12:07:36 +0000</bug_when>
    <thetext>Yeah, this needs cleaning up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100014</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-07 13:16:24 +0000</bug_when>
    <thetext>How about:

1. Let /nodes/ be /node/&apos;s inclusive descendants, in tree order.
2. For each /potentialElement/ in /nodes/, if /potentialElement/ is an element, run its base URL change steps.

I guess I&apos;ll change that and fix bug 20976 later as that will revamp the entire way base URLs are done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100015</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-07 13:46:53 +0000</bug_when>
    <thetext>https://github.com/whatwg/dom/commit/8b87826a4a153f386152b44c691b9413eed93ed5

Assigning to you Hixie since there&apos;s no need anymore for &quot;affected by a base URL change&quot; in DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100027</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-07 17:46:44 +0000</bug_when>
    <thetext>Per our discussion, we&apos;re going to have DOM forget about base URL change steps, and instead just notify HTML whenever a node is adopted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100125</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-10 11:02:50 +0000</bug_when>
    <thetext>https://github.com/whatwg/dom/commit/e50fd7138f1bf288c4fa0b92f1673359a3affadb

Note that a) you have to cover children yourself and b) timing of when this extension hook runs might change to be a little later to allow for custom elements to work the same way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>