HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
1999define javascript: in Window-less environments2008-08-05 07:54
@@ -29641,26 +29641,30 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
 
   <p>When a <span>browsing context</span> is <span
   title="navigate">navigated</span> to a <code>javascript:</code> URL,
   and the <span>active document</span> of that browsing context has an
   <span>origin</span> that is <em>not</em> the <span title="same
   origin">same</span> as that of the script given by the URL, the
   <span>script execution context</span> must be an empty object, and
   the <span>script browsing context</span> must be the <span>browsing
   context</span> being <span title="navigate">navigated</span>.</p>
 
-  <p>Otherwise, the <span>script execution context</span> must be an
-  empty object, and the <span>script execution context</span>'s
-  associated <span>browsing context</span> must be the <span>browsing
-  context</span> of the <code>Document</code> object of the element,
+  <p>Otherwise, if the <code>Document</code> object of the element,
   attribute, or style sheet from which the <code>javascript:</code>
-  URL was reached.</p>
+  URL was reached has an associated <span>browsing context</span>, the
+  <span>script execution context</span> must be an empty object, and
+  the <span>script execution context</span>'s associated
+  <span>browsing context</span> must be that <span>browsing
+  context</span>.</p>
+
+  <p>Otherwise, the script is not executed and its return value is
+  void.</p>
 
   <p>If the result of executing the script is void (there is no return
   value), then the URL must be treated in a manner equivalent to an
   HTTP resource with an HTTP 204 No Content response.</p>
 
   <p>Otherwise, the URL must be treated in a manner equivalent to an
   HTTP resource with a 200 OK response whose <span
   title="Content-Type">Content-Type metadata</span> is <code
   title="">text/html</code> and whose response body is the return
   value converted to a string value.</p>

|