<?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>15707</bug_id>
          
          <creation_ts>2012-01-25 10:42:21 +0000</creation_ts>
          <short_desc>&quot;When a document&apos;s document base URL changes&quot; - removing a &lt;base&gt; doesn&apos;t immediately change the document base URL, since the algo that sets it doesn&apos;t run until a URL gets resolved.</short_desc>
          <delta_ts>2012-09-14 13:10:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#dynamic-changes-to-base-urls</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63095</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-01-25 10:42:21 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html
Multipage: http://www.whatwg.org/C#dynamic-changes-to-base-urls
Complete: http://www.whatwg.org/c#dynamic-changes-to-base-urls

Comment:
&quot;When a document&apos;s document base URL changes&quot; - removing a &lt;base&gt; doesn&apos;t
immediately change the document base URL, since the algo that sets it doesn&apos;t
run until a URL gets resolved.

Posted from: 85.227.157.105 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.16 (KHTML, like Gecko) Chrome/18.0.1003.1 Safari/535.16</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70474</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 08:00:22 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18006 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72009</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-10 03:09:11 +0000</bug_when>
    <thetext>The algorithm never gets explicitly run, the document base URL is just defined to be that. It just happens that that definition is in a step of another algorithm, but that doesn&apos;t have any normative effect.

Should I move the definition to its own subsection somewhere maybe? Would that be less confusing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72185</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-08-15 07:46:41 +0000</bug_when>
    <thetext>If it&apos;s not intended to be run as part of the algorithm it is in, then it is extremely confusing to put it in the algorithm.

Right now, I see &quot;When a document&apos;s document base URL changes, all elements in that document are affected by a base URL change.&quot; and the definition of &quot;document base URL&quot; is part of the resolve a URL algorithm, and I don&apos;t see anything else invoking the &quot;document base URL&quot; steps, so clearly the document base URL can&apos;t change until resolve a URL gets run.

If &quot;document base URL&quot; algorithm is supposed to run when a base element is inserted or removed or has its attributes changed (etc), then you should say so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72624</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-23 19:26:42 +0000</bug_when>
    <thetext>The algorithm isn&apos;t supposed to be triggered, it&apos;s just a definition. Just like in mathematics, if &quot;a = b + c&quot;, you don&apos;t &quot;cache&quot; the value of &quot;a&quot; the first time you use it, it&apos;s just defined as being the sum of b and c. Whenever b or c changes, a changes. If you need to do something when a changes, then you need to do it whenever b or c change (unless they simultaneously change by the same amount in opposite directions so as to make the sum stay the same).

Still, I can definitely move the definition out of the parent algorithm to make this clearer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72713</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-24 18:51:54 +0000</bug_when>
    <thetext>Is this better?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73922</commentid>
    <comment_count>6</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-09-14 13:10:01 +0000</bug_when>
    <thetext>I assume you were referring to http://html5.org/tools/web-apps-tracker?from=7265&amp;to=7266</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>