- From: poot <cvsmail@w3.org>
- Date: Wed, 12 Oct 2011 20:41:54 -0400
- To: public-html-diffs@w3.org
hixie: window.open() should block popups too. (whatwg r6679) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5356&r2=1.5357&f=h http://html5.org/tools/web-apps-tracker?from=6678&to=6679 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5356 retrieving revision 1.5357 diff -u -d -r1.5356 -r1.5357 --- Overview.html 12 Oct 2011 22:47:25 -0000 1.5356 +++ Overview.html 13 Oct 2011 00:41:33 -0000 1.5357 @@ -320,7 +320,7 @@ <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> - <h2 class="no-num no-toc" id="editor-s-draft-12-october-2011">Editor's Draft 12 October 2011</h2> + <h2 class="no-num no-toc" id="editor-s-draft-13-october-2011">Editor's Draft 13 October 2011</h2> <dl><dt>Latest Published Version:</dt> <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd> <dt>Latest Editor's Draft:</dt> @@ -466,7 +466,7 @@ Group</a> is the W3C working group responsible for this specification's progress along the W3C Recommendation track. - This specification is the 12 October 2011 Editor's Draft. + This specification is the 13 October 2011 Editor's Draft. </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 @@ -16278,10 +16278,8 @@ that create <a href="#hyperlink" title="hyperlink">hyperlinks</a> is to run the following steps:</p> - <ol><li><p>If the <code title="event-click"><a href="#event-click">click</a></code> event in - question is not <a href="#concept-events-trusted" title="concept-events-trusted">trusted</a> - (i.e. a <code title="dom-click"><a href="#dom-click">click()</a></code> method call was the - reason for the event being dispatched), and either the <code><a href="#the-a-element">a</a></code> + <ol><li><p>If the algorithm is not <a href="#allowed-to-show-a-pop-up">allowed to show a + pop-up</a> and either the <code><a href="#the-a-element">a</a></code> element's <code title="attr-hyperlink-target"><a href="#attr-hyperlink-target">target</a></code> attribute is present and applying <a href="#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name">the rules for choosing a browsing context given a browsing context name</a>, using the @@ -42024,6 +42022,8 @@ <h4 id="following-hyperlinks-0"><span class="secno">4.12.3 </span>Following hyperlinks</h4> + + <p>When a user <dfn id="following-hyperlinks" title="following hyperlinks">follows a hyperlink</dfn> created by an element, the user agent must <a href="#resolve-a-url" title="resolve a url">resolve</a> the <a href="#url">URL</a> given by the <code title="attr-hyperlink-href"><a href="#attr-hyperlink-href">href</a></code> attribute of that @@ -44010,7 +44010,18 @@ </table><p><small>† This case is only possible if the <code title="attr-iframe-sandbox"><a href="#attr-iframe-sandbox">sandbox</a></code> attribute also allows scripts.</small><div class="impl"> - <p><dfn id="the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name">The rules for choosing a browsing context given a browsing + <hr><p>An algorithm is <dfn id="allowed-to-show-a-pop-up">allowed to show a pop-up</dfn> if: + + <ul class="brief"><li>it is running in the context of an <a href="#activation-behavior">activation + behavior</a> or of the <a href="#concept-event-dispatch" title="concept-event-dispatch">dispatching</a> of a <code title="event-click"><a href="#event-click">click</a></code> event, and</li> + + <li>The <code title="event-click"><a href="#event-click">click</a></code> event that led to + the triggering of the <a href="#activation-behavior">activation behavior</a>, if any, and + <code title="event-click"><a href="#event-click">click</a></code> events of any the <a href="#concept-event-dispatch" title="concept-event-dispatch">event dispatching</a> that + indirectly led to the algorithm being invoked, if any, are all + <a href="#concept-events-trusted" title="concept-events-trusted">trusted</a>.</li> + + </ul><hr><p><dfn id="the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name">The rules for choosing a browsing context given a browsing context name</dfn> are as follows. The rules assume that they are being applied in the context of a <a href="#browsing-context">browsing context</a>.</p> @@ -44365,6 +44376,8 @@ </dl><div class="impl"> + + <p>The <dfn id="dom-open" title="dom-open"><code>open()</code></dfn> method on <code><a href="#window">Window</a></code> objects provides a mechanism for <a href="#navigate" title="navigate">navigating</a> an existing <a href="#browsing-context">browsing context</a> or opening and navigating an <a href="#auxiliary-browsing-context">auxiliary browsing @@ -44419,7 +44432,14 @@ agent could override the selection of the target browsing context to instead target a new tab.</p> - <p>Then, if <var title="">url</var> is not + <p>If the method is not <a href="#allowed-to-show-a-pop-up">allowed to show a pop-up</a> and + applying <a href="#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name">the rules for choosing a browsing context given a + browsing context name</a> using the <var title="">target</var> + argument, would result in there not being a chosen browsing context, + then throw an <code><a href="#invalidaccesserror">InvalidAccessError</a></code> exception and abort + these steps.</p> + + <p>Otherwise, if <var title="">url</var> is not "<code><a href="#about:blank">about:blank</a></code>", the user agent must <a href="#navigate">navigate</a> the selected <a href="#browsing-context">browsing context</a> to the <a href="#absolute-url">absolute URL</a> (or
Received on Thursday, 13 October 2011 00:41:56 UTC