Short URL: http://html5.org/r/1999
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 1999 | define javascript: in Window-less environments | 2008-08-05 07:54 |
Index: source =================================================================== --- source (revision 1998) +++ source (revision 1999) @@ -29648,13 +29648,17 @@ 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>