[html5] r2710 - [] (0) Change the document's address when document.open() is invoked to match th [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Jan 26 23:27:34 PST 2009


Author: ianh
Date: 2009-01-26 23:27:33 -0800 (Mon, 26 Jan 2009)
New Revision: 2710

Modified:
   index
   source
Log:
[] (0) Change the document's address when document.open() is invoked to match the _first script_'s document's address, not the address of the document of the script that invoked the method.

Modified: index
===================================================================
--- index	2009-01-27 02:39:57 UTC (rev 2709)
+++ index	2009-01-27 07:27:33 UTC (rev 2710)
@@ -7778,10 +7778,10 @@
    <li><p>Change the <a href="#document's-character-encoding">document's character encoding</a> to
    UTF-16.</li>
 
-   <li><p>Change <a href="#the-document's-address">the document's address</a> to the <a href="#the-document's-address">the
-   document's address</a> of the <a href=#active-document>active document</a> of
-   the <a href="#script's-browsing-context" title="script's browsing context">browsing context</a>
-   of the <a href=#concept-script title=concept-script>script</a> that invoked the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.</li>
+   <li><p>Change <a href="#the-document's-address">the document's address</a> to the
+   <a href=#first-script>first script</a>'s <a href="#script's-browsing-context" title="script's browsing
+   context">browsing context</a>'s <a href=#active-document>active document</a>'s
+   <a href="#the-document's-address" title="the document's address">address</a>.</li>
 
    <li><p>Create a new <a href=#html-parser>HTML parser</a> and associate it with
    the document. This is a <dfn id=script-created-parser>script-created parser</dfn> (meaning
@@ -33572,9 +33572,11 @@
   <dfn id=unit-of-related-similar-origin-browsing-contexts>unit of related similar-origin browsing contexts</dfn>.</p>
 
   <p>Each <a href=#unit-of-related-similar-origin-browsing-contexts>unit of related similar-origin browsing
-  contexts</a> has a <dfn id=current-script-base-url>current script base URL</dfn> which is
-  used to <a href=#resolve-a-url title="resolve a url">resolve</a> relative <a href=#url title=URL>URLs</a> used in scripts running in that <a href=#unit-of-related-similar-origin-browsing-contexts>unit
-  of related similar-origin browsing contexts</a>.</p>
+  contexts</a> can have a <dfn id=first-script>first script</dfn> which is used to
+  obtain, amongst other things, the <a href="#script's-base-url">script's base URL</a> to
+  <a href=#resolve-a-url title="resolve a url">resolve</a> relative <a href=#url title=URL>URLs</a> used in scripts running in that <a href=#unit-of-related-similar-origin-browsing-contexts>unit
+  of related similar-origin browsing contexts</a>. Initially there
+  is no <a href=#first-script>first script</a>.</p>
 
 
 
@@ -33840,8 +33842,9 @@
   context. If no arguments are provided, or if the first argument is
   the empty string, then the <var title="">url</var> argument defaults
   to "<code><a href=#about:blank>about:blank</a></code>". The argument must be <a href=#resolve-a-url title="resolve a url">resolved</a> to an <a href=#absolute-url>absolute
-  URL</a> (or an error), relative to the <a href=#current-script-base-url>current script base
-  URL</a>, when the method is invoked.</p>
+  URL</a> (or an error), relative to the <a href=#first-script>first
+  script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>,
+  when the method is invoked.</p>
 
   <p>The second argument, <var title="">target</var>, specifies the
   <a href=#browsing-context-name title="browsing context name">name</a> of the browsing
@@ -34754,16 +34757,17 @@
 
    </li>
 
-   <li><p>If the <a href=#current-script-base-url>current script base URL</a> has no value,
-   then set it to the <a href="#script's-base-url">script's base URL</a>.</li>
+   <li><p>If this algorithm was <em>not</em> invoked by one script
+   calling another, then set the <a href=#first-script>first script</a> to be the
+   <a href=#concept-script title=concept-script>script</a> being invoked.</li>
 
    <li><p>Make the <a href=#script-execution-environment title="script execution environment">script
    execution environment</a> for the <a href=#concept-script title=concept-script>script</a> execute the code for the given
    code entry-point.</li>
 
-   <li><p>If the <a href=#current-script-base-url>current script base URL</a> was set in the
-   earlier step for this invocation of the algorithm, then set it back
-   to having no value.</li>
+   <li><p>If this algorithm was <em>not</em> invoked by one script
+   calling another, then set the <a href=#first-script>first script</a> back to
+   whatever it was when this algorithm started.</li>
 
   </ol><p class=note>In particular, this means that scripts in a
   <i>frozen</i> <a href=#script-group>script group</a> can keep on executing so
@@ -35824,8 +35828,8 @@
 
   <ol><li>
 
-    <p><a href=#resolve-a-url title="resolve a url">Resolve</a> <var title="">url</var> relative to the <a href=#current-script-base-url>current script base
-    URL</a>.</p>
+    <p><a href=#resolve-a-url title="resolve a url">Resolve</a> <var title="">url</var> relative to the <a href=#first-script>first script</a>'s
+    <a href="#script's-base-url" title="script's base URL">base URL</a>.</p>
 
     <p>If this fails, then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception
     and abort these steps.</p>
@@ -36356,8 +36360,8 @@
     occurrence of the exact literal string "<code title="">%s</code>"
     with an escaped version of the <a href=#absolute-url>absolute URL</a> of the
     content in question (as defined below), then <a href=#resolve-a-url title="resolve
-    a url">resolve</a> the resulting URL, relative to the
-    <a href=#current-script-base-url>current script base URL</a> at the time the <code title=dom-navigator-registerContentHandler><a href=#dom-navigator-registercontenthandler>registerContentHandler()</a></code>
+    a url">resolve</a> the resulting URL, relative to the <a href="#script's-base-url" title="script's base URL">base URL</a> of the <a href=#first-script>first
+    script</a> at the time the <code title=dom-navigator-registerContentHandler><a href=#dom-navigator-registercontenthandler>registerContentHandler()</a></code>
     or <code title=dom-navigator-registerProtocolHandler><a href=#dom-navigator-registerprotocolhandler>registerProtocolHandler()</a></code>
     methods were invoked, and then <a href=#fetch>fetch</a> the resulting
     URL using the GET method (<a href=#concept-http-equivalent-get title=concept-http-equivalent-get>or equivalent</a> for
@@ -36413,8 +36417,9 @@
   <p>User agents must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception if the
   <var title="">url</var> argument passed to one of these methods does
   not contain the exact literal string "<code>%s</code>", or if <a href=#resolve-a-url title="resolve a url">resolving</a> the <var title="">url</var>
-  argument with the first occurance of the string "<code title="">%s</code>" removed, relative to the <a href=#current-script-base-url>current script
-  base URL</a>, is not successful.</p>
+  argument with the first occurance of the string "<code title="">%s</code>" removed, relative to the <a href=#first-script>first
+  script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>, is
+  not successful.</p>
 
   <p>User agents must not raise any other exceptions (other than
   binding-specific exceptions, such as for an incorrect number of
@@ -38279,8 +38284,7 @@
     <p>If a third argument is specified, run these substeps:</p>
 
     <ol><li><a href=#resolve-a-url title="resolve a url">Resolve</a> the value of the
-     third argument, relative to the <a href=#current-script-base-url>current script base
-     URL</a>.</li>
+     third argument, relative to the <a href=#first-script>first script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>.</li>
 
      <li>If that fails, raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception and
      abort the <code title=dom-history-pushState><a href=#dom-history-pushstate>pushState()</a></code>
@@ -38464,20 +38468,19 @@
 
   <p>When the <dfn id=dom-location-assign title=dom-location-assign><code>assign(<var title="">url</var>)</code></dfn> method is invoked, the UA must
   <a href=#resolve-a-url title="resolve a url">resolve</a> the argument, relative to
-  the <a href=#current-script-base-url>current script base URL</a>, and if that is successful,
-  must <a href=#navigate>navigate</a> the <a href=#browsing-context>browsing context</a> to the
-  specified <var title="">url</var>.</p> <!-- XXX browsers seem to
-  treat this as having <span>replacement enabled</span> if the
-  browsing context has only one entry and that entry is about:blank.
-  IE and Firefox only seem to treat it that way if the DOM is still a
-  virgin DOM; Safari doesn't check that. -->
+  the <a href=#first-script>first script</a>'s <a href="#script's-base-url" title="script's base URL">base
+  URL</a>, and if that is successful, must <a href=#navigate>navigate</a>
+  the <a href=#browsing-context>browsing context</a> to the specified <var title="">url</var>.</p> <!-- XXX browsers seem to treat this as
+  having <span>replacement enabled</span> if the browsing context has
+  only one entry and that entry is about:blank.  IE and Firefox only
+  seem to treat it that way if the DOM is still a virgin DOM; Safari
+  doesn't check that. -->
 
   <p>When the <dfn id=dom-location-replace title=dom-location-replace><code>replace(<var title="">url</var>)</code></dfn> method is invoked, the UA must
   <a href=#resolve-a-url title="resolve a url">resolve</a> the argument, relative to
-  the <a href=#current-script-base-url>current script base URL</a>, and if that is successful,
-  <a href=#navigate>navigate</a> the <a href=#browsing-context>browsing context</a> to the
-  specified <var title="">url</var> with <a href=#replacement-enabled>replacement
-  enabled</a>.</p>
+  the <a href=#first-script>first script</a>'s <a href="#script's-base-url" title="script's base URL">base
+  URL</a>, and if that is successful, <a href=#navigate>navigate</a> the
+  <a href=#browsing-context>browsing context</a> to the specified <var title="">url</var> with <a href=#replacement-enabled>replacement enabled</a>.</p>
 
   <p>Navigation for the <code title=dom-location-assign><a href=#dom-location-assign>assign()</a></code> and <code title=dom-location-replace><a href=#dom-location-replace>replace()</a></code> methods must be done
   with the <a href="#script's-browsing-context" title="script's browsing context">browsing
@@ -38513,9 +38516,10 @@
 
   <hr><p>The <dfn id=dom-location-resolveurl title=dom-location-resolveURL><code>resolveURL(<var title="">url</var>)</code></dfn> method must <a href=#resolve-a-url title="resolve a
   url">resolve</a> its <var title="">url</var> argument, relative
-  to the <a href=#current-script-base-url>current script base URL</a>, and if that succeeds,
-  return the resulting <a href=#absolute-url>absolute URL</a>. If it fails, it must
-  throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception instead.</p>
+  to the <a href=#first-script>first script</a>'s <a href="#script's-base-url" title="script's base
+  URL">base URL</a>, and if that succeeds, return the resulting
+  <a href=#absolute-url>absolute URL</a>. If it fails, it must throw a
+  <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception instead.</p>
 
 
   <h5 id=security-3><span class=secno>5.8.4.1 </span>Security</h5>
@@ -44329,21 +44333,23 @@
 
   <p>When the <dfn id=dom-remoteeventtarget-addeventsource title=dom-RemoteEventTarget-addEventSource><code>addEventSource(<var title="">src</var>)</code></dfn> method is invoked, the user agent
   must <a href=#resolve-a-url title="resolve a url">resolve</a> the <a href=#url>URL</a>
-  specified in <var title="">src</var>, relative to the <a href=#current-script-base-url>current
-  script base URL</a>, and if that succeeds, add the resulting
-  <a href=#absolute-url>absolute URL</a> to the <a href=#concept-eventsource-list title=concept-eventsource-list>list of event sources</a> for
-  that object. The same URL can be registered multiple times. If the
-  URL fails to resolve, then the user agent must raise a
+  specified in <var title="">src</var>, relative to the <a href=#first-script>first
+  script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>, and
+  if that succeeds, add the resulting <a href=#absolute-url>absolute URL</a> to the
+  <a href=#concept-eventsource-list title=concept-eventsource-list>list of event sources</a>
+  for that object. The same URL can be registered multiple times. If
+  the URL fails to resolve, then the user agent must raise a
   <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.</p>
 
   <p>When the <dfn id=dom-remoteeventtarget-removeeventsource title=dom-RemoteEventTarget-removeEventSource><code>removeEventSource(<var title="">src</var>)</code></dfn> method is invoked, the user agent
   must <a href=#resolve-a-url title="resolve a url">resolve</a> the <a href=#url>URL</a>
-  specified in <var title="">src</var>, relative to the <a href=#current-script-base-url>current
-  script base URL</a>, and if that succeeds, remove the resulting
-  <a href=#absolute-url>absolute URL</a> from the <a href=#concept-eventsource-list title=concept-eventsource-list>list of event sources</a> for
-  that object. If the same URL has been registered multiple times,
-  removing it must remove only one instance of that URL for each
-  invocation of the <code title=removeEventSource>removeEventSource()</code> method. If the
+  specified in <var title="">src</var>, relative to the <a href=#first-script>first
+  script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>, and
+  if that succeeds, remove the resulting <a href=#absolute-url>absolute URL</a>
+  from the <a href=#concept-eventsource-list title=concept-eventsource-list>list of event
+  sources</a> for that object. If the same URL has been registered
+  multiple times, removing it must remove only one instance of that
+  URL for each invocation of the <code title=removeEventSource>removeEventSource()</code> method. If the
   URL fails to resolve, the user agent does nothing.</p>
 
 
@@ -45808,11 +45814,12 @@
 
     <p>If the value of the <var title="">targetOrigin</var> argument
     is not a single U+002A ASTERISK character ("*"), and <a href=#resolve-a-url title="resolve a url">resolving</a> it relative to the
-    <a href=#current-script-base-url>current script base URL</a> either fails or results in a
-    <a href=#url>URL</a> with a <code title=url-host-specific><a href=#url-host-specific><host-specific></a></code> component
-    that is neither empty nor a single U+002F SOLIDUS character (/),
-    then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort the
-    overall set of steps.</p>
+    <a href=#first-script>first script</a>'s <a href="#script's-base-url" title="script's base URL">base
+    URL</a> either fails or results in a <a href=#url>URL</a> with a
+    <code title=url-host-specific><a href=#url-host-specific><host-specific></a></code>
+    component that is neither empty nor a single U+002F SOLIDUS
+    character (/), then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and
+    abort the overall set of steps.</p>
 
    </li>
 
@@ -45881,11 +45888,12 @@
 
     <p>If the value of the <var title="">targetOrigin</var> argument
     is not a single U+002A ASTERISK character ("*"), and <a href=#resolve-a-url title="resolve a url">resolving</a> it relative to the
-    <a href=#current-script-base-url>current script base URL</a> either fails or results in a
-    <a href=#url>URL</a> with a <code title=url-host-specific><a href=#url-host-specific><host-specific></a></code> component
-    that is neither empty nor a single U+002F SOLIDUS character (/),
-    then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and abort the
-    overall set of steps.</p>
+    <a href=#first-script>first script</a>'s <a href="#script's-base-url" title="script's base URL">base
+    URL</a> either fails or results in a <a href=#url>URL</a> with a
+    <code title=url-host-specific><a href=#url-host-specific><host-specific></a></code>
+    component that is neither empty nor a single U+002F SOLIDUS
+    character (/), then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception and
+    abort the overall set of steps.</p>
 
    </li>
 

Modified: source
===================================================================
--- source	2009-01-27 02:39:57 UTC (rev 2709)
+++ source	2009-01-27 07:27:33 UTC (rev 2710)
@@ -7972,11 +7972,10 @@
    <li><p>Change the <span>document's character encoding</span> to
    UTF-16.</p></li>
 
-   <li><p>Change <span>the document's address</span> to the <span>the
-   document's address</span> of the <span>active document</span> of
-   the <span title="script's browsing context">browsing context</span>
-   of the <span title="concept-script">script</span> that invoked the <code
-   title="dom-document-open">document.open()</code> method.</p></li>
+   <li><p>Change <span>the document's address</span> to the
+   <span>first script</span>'s <span title="script's browsing
+   context">browsing context</span>'s <span>active document</span>'s
+   <span title="the document's address">address</span>.</p></li>
 
    <li><p>Create a new <span>HTML parser</span> and associate it with
    the document. This is a <dfn>script-created parser</dfn> (meaning
@@ -38119,10 +38118,12 @@
   <dfn>unit of related similar-origin browsing contexts</dfn>.</p>
 
   <p>Each <span>unit of related similar-origin browsing
-  contexts</span> has a <dfn>current script base URL</dfn> which is
-  used to <span title="resolve a url">resolve</span> relative <span
+  contexts</span> can have a <dfn>first script</dfn> which is used to
+  obtain, amongst other things, the <span>script's base URL</span> to
+  <span title="resolve a url">resolve</span> relative <span
   title="URL">URLs</span> used in scripts running in that <span>unit
-  of related similar-origin browsing contexts</span>.</p>
+  of related similar-origin browsing contexts</span>. Initially there
+  is no <span>first script</span>.</p>
 
 
 
@@ -38420,8 +38421,9 @@
   the empty string, then the <var title="">url</var> argument defaults
   to "<code>about:blank</code>". The argument must be <span
   title="resolve a url">resolved</span> to an <span>absolute
-  URL</span> (or an error), relative to the <span>current script base
-  URL</span>, when the method is invoked.</p>
+  URL</span> (or an error), relative to the <span>first
+  script</span>'s <span title="script's base URL">base URL</span>,
+  when the method is invoked.</p>
 
   <p>The second argument, <var title="">target</var>, specifies the
   <span title="browsing context name">name</span> of the browsing
@@ -39481,17 +39483,18 @@
 
    </li>
 
-   <li><p>If the <span>current script base URL</span> has no value,
-   then set it to the <span>script's base URL</span>.</p></li>
+   <li><p>If this algorithm was <em>not</em> invoked by one script
+   calling another, then set the <span>first script</span> to be the
+   <span title="concept-script">script</span> being invoked.</p></li>
 
    <li><p>Make the <span title="script execution environment">script
    execution environment</span> for the <span
    title="concept-script">script</span> execute the code for the given
    code entry-point.</p></li>
 
-   <li><p>If the <span>current script base URL</span> was set in the
-   earlier step for this invocation of the algorithm, then set it back
-   to having no value.</p></li>
+   <li><p>If this algorithm was <em>not</em> invoked by one script
+   calling another, then set the <span>first script</span> back to
+   whatever it was when this algorithm started.</p></li>
 
   </ol>
 
@@ -40770,8 +40773,8 @@
    <li>
 
     <p><span title="resolve a url">Resolve</span> <var
-    title="">url</var> relative to the <span>current script base
-    URL</span>.</p>
+    title="">url</var> relative to the <span>first script</span>'s
+    <span title="script's base URL">base URL</span>.</p>
 
     <p>If this fails, then throw a <code>SYNTAX_ERR</code> exception
     and abort these steps.</p>
@@ -41336,8 +41339,9 @@
     occurrence of the exact literal string "<code title="">%s</code>"
     with an escaped version of the <span>absolute URL</span> of the
     content in question (as defined below), then <span title="resolve
-    a url">resolve</span> the resulting URL, relative to the
-    <span>current script base URL</span> at the time the <code
+    a url">resolve</span> the resulting URL, relative to the <span
+    title="script's base URL">base URL</span> of the <span>first
+    script</span> at the time the <code
     title="dom-navigator-registerContentHandler">registerContentHandler()</code>
     or <code
     title="dom-navigator-registerProtocolHandler">registerProtocolHandler()</code>
@@ -41404,8 +41408,9 @@
   not contain the exact literal string "<code>%s</code>", or if <span
   title="resolve a url">resolving</span> the <var title="">url</var>
   argument with the first occurance of the string "<code
-  title="">%s</code>" removed, relative to the <span>current script
-  base URL</span>, is not successful.</p>
+  title="">%s</code>" removed, relative to the <span>first
+  script</span>'s <span title="script's base URL">base URL</span>, is
+  not successful.</p>
 
   <p>User agents must not raise any other exceptions (other than
   binding-specific exceptions, such as for an incorrect number of
@@ -43601,8 +43606,8 @@
     <ol>
 
      <li><span title="resolve a url">Resolve</span> the value of the
-     third argument, relative to the <span>current script base
-     URL</span>.</li>
+     third argument, relative to the <span>first script</span>'s <span
+     title="script's base URL">base URL</span>.</li>
 
      <li>If that fails, raise a <code>SECURITY_ERR</code> exception and
      abort the <code title="dom-history-pushState">pushState()</code>
@@ -43818,21 +43823,22 @@
   <p>When the <dfn title="dom-location-assign"><code>assign(<var
   title="">url</var>)</code></dfn> method is invoked, the UA must
   <span title="resolve a url">resolve</span> the argument, relative to
-  the <span>current script base URL</span>, and if that is successful,
-  must <span>navigate</span> the <span>browsing context</span> to the
-  specified <var title="">url</var>.</p> <!-- XXX browsers seem to
-  treat this as having <span>replacement enabled</span> if the
-  browsing context has only one entry and that entry is about:blank.
-  IE and Firefox only seem to treat it that way if the DOM is still a
-  virgin DOM; Safari doesn't check that. -->
+  the <span>first script</span>'s <span title="script's base URL">base
+  URL</span>, and if that is successful, must <span>navigate</span>
+  the <span>browsing context</span> to the specified <var
+  title="">url</var>.</p> <!-- XXX browsers seem to treat this as
+  having <span>replacement enabled</span> if the browsing context has
+  only one entry and that entry is about:blank.  IE and Firefox only
+  seem to treat it that way if the DOM is still a virgin DOM; Safari
+  doesn't check that. -->
 
   <p>When the <dfn title="dom-location-replace"><code>replace(<var
   title="">url</var>)</code></dfn> method is invoked, the UA must
   <span title="resolve a url">resolve</span> the argument, relative to
-  the <span>current script base URL</span>, and if that is successful,
-  <span>navigate</span> the <span>browsing context</span> to the
-  specified <var title="">url</var> with <span>replacement
-  enabled</span>.</p>
+  the <span>first script</span>'s <span title="script's base URL">base
+  URL</span>, and if that is successful, <span>navigate</span> the
+  <span>browsing context</span> to the specified <var
+  title="">url</var> with <span>replacement enabled</span>.</p>
 
   <p>Navigation for the <code
   title="dom-location-assign">assign()</code> and <code
@@ -43883,9 +43889,10 @@
   <p>The <dfn title="dom-location-resolveURL"><code>resolveURL(<var
   title="">url</var>)</code></dfn> method must <span title="resolve a
   url">resolve</span> its <var title="">url</var> argument, relative
-  to the <span>current script base URL</span>, and if that succeeds,
-  return the resulting <span>absolute URL</span>. If it fails, it must
-  throw a <code>SYNTAX_ERR</code> exception instead.</p>
+  to the <span>first script</span>'s <span title="script's base
+  URL">base URL</span>, and if that succeeds, return the resulting
+  <span>absolute URL</span>. If it fails, it must throw a
+  <code>SYNTAX_ERR</code> exception instead.</p>
 
 
   <h5>Security</h5>
@@ -50603,25 +50610,25 @@
   title="dom-RemoteEventTarget-addEventSource"><code>addEventSource(<var
   title="">src</var>)</code></dfn> method is invoked, the user agent
   must <span title="resolve a url">resolve</span> the <span>URL</span>
-  specified in <var title="">src</var>, relative to the <span>current
-  script base URL</span>, and if that succeeds, add the resulting
-  <span>absolute URL</span> to the <span
-  title="concept-eventsource-list">list of event sources</span> for
-  that object. The same URL can be registered multiple times. If the
-  URL fails to resolve, then the user agent must raise a
+  specified in <var title="">src</var>, relative to the <span>first
+  script</span>'s <span title="script's base URL">base URL</span>, and
+  if that succeeds, add the resulting <span>absolute URL</span> to the
+  <span title="concept-eventsource-list">list of event sources</span>
+  for that object. The same URL can be registered multiple times. If
+  the URL fails to resolve, then the user agent must raise a
   <code>SYNTAX_ERR</code> exception.</p>
 
   <p>When the <dfn
   title="dom-RemoteEventTarget-removeEventSource"><code>removeEventSource(<var
   title="">src</var>)</code></dfn> method is invoked, the user agent
   must <span title="resolve a url">resolve</span> the <span>URL</span>
-  specified in <var title="">src</var>, relative to the <span>current
-  script base URL</span>, and if that succeeds, remove the resulting
-  <span>absolute URL</span> from the <span
-  title="concept-eventsource-list">list of event sources</span> for
-  that object. If the same URL has been registered multiple times,
-  removing it must remove only one instance of that URL for each
-  invocation of the <code
+  specified in <var title="">src</var>, relative to the <span>first
+  script</span>'s <span title="script's base URL">base URL</span>, and
+  if that succeeds, remove the resulting <span>absolute URL</span>
+  from the <span title="concept-eventsource-list">list of event
+  sources</span> for that object. If the same URL has been registered
+  multiple times, removing it must remove only one instance of that
+  URL for each invocation of the <code
   title="removeEventSource">removeEventSource()</code> method. If the
   URL fails to resolve, the user agent does nothing.</p>
 
@@ -52308,12 +52315,12 @@
     <p>If the value of the <var title="">targetOrigin</var> argument
     is not a single U+002A ASTERISK character ("*"), and <span
     title="resolve a url">resolving</span> it relative to the
-    <span>current script base URL</span> either fails or results in a
-    <span>URL</span> with a <code
-    title="url-host-specific"><host-specific></code> component
-    that is neither empty nor a single U+002F SOLIDUS character (/),
-    then throw a <code>SYNTAX_ERR</code> exception and abort the
-    overall set of steps.</p>
+    <span>first script</span>'s <span title="script's base URL">base
+    URL</span> either fails or results in a <span>URL</span> with a
+    <code title="url-host-specific"><host-specific></code>
+    component that is neither empty nor a single U+002F SOLIDUS
+    character (/), then throw a <code>SYNTAX_ERR</code> exception and
+    abort the overall set of steps.</p>
 
    </li>
 
@@ -52401,12 +52408,12 @@
     <p>If the value of the <var title="">targetOrigin</var> argument
     is not a single U+002A ASTERISK character ("*"), and <span
     title="resolve a url">resolving</span> it relative to the
-    <span>current script base URL</span> either fails or results in a
-    <span>URL</span> with a <code
-    title="url-host-specific"><host-specific></code> component
-    that is neither empty nor a single U+002F SOLIDUS character (/),
-    then throw a <code>SYNTAX_ERR</code> exception and abort the
-    overall set of steps.</p>
+    <span>first script</span>'s <span title="script's base URL">base
+    URL</span> either fails or results in a <span>URL</span> with a
+    <code title="url-host-specific"><host-specific></code>
+    component that is neither empty nor a single U+002F SOLIDUS
+    character (/), then throw a <code>SYNTAX_ERR</code> exception and
+    abort the overall set of steps.</p>
 
    </li>
 




More information about the Commit-Watchers mailing list