Skip to content

Commit

Permalink
[giow] (2) Defer to CSSOM View for window.open(..., ..., features, ...)
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=25685
Affected topics: DOM APIs, HTML

git-svn-id: http://svn.whatwg.org/webapps@8701 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 4, 2014
1 parent a09fee6 commit 9882f42
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
13 changes: 6 additions & 7 deletions complete.html
Expand Up @@ -2454,7 +2454,8 @@ <h4 id=dependencies>2.2.2 Dependencies</h4>
<dfn id=concept-css-style-sheet-disabeld-flag>disabled flag</dfn>,
<dfn id=concept-css-style-sheet-css-rules>CSS rules</dfn>,
<dfn id=concept-css-style-sheet-origin-clean-flag>origin-clean flag</dfn>
<li><dfn id=alternative-style-sheet-sets>Alternative style sheet sets</dfn> and the <dfn id=preferred-style-sheet-set>preferred style sheet set</dfn><li><dfn id=serialising-a-css-value>Serialising a CSS value</dfn><li><dfn id=scroll-an-element-into-view>Scroll an element into view</dfn><li><dfn id=scroll-to-the-beginning-of-the-document>Scroll to the beginning of the document</dfn><li>The <dfn id=event-resize><code>resize</code></dfn> event<li>The <dfn id=event-scroll><code>scroll</code></dfn> event</ul>
<li><dfn id=alternative-style-sheet-sets>Alternative style sheet sets</dfn> and the <dfn id=preferred-style-sheet-set>preferred style sheet set</dfn><li><dfn id=serialising-a-css-value>Serialising a CSS value</dfn><li><dfn id=scroll-an-element-into-view>Scroll an element into view</dfn><li><dfn id=scroll-to-the-beginning-of-the-document>Scroll to the beginning of the document</dfn><li>The <dfn id=event-resize><code>resize</code></dfn> event<li>The <dfn id=event-scroll><code>scroll</code></dfn> event<li><dfn id=dom-open-features><a href=http://dev.w3.org/csswg/cssom-view/#the-features-argument-to-the-open()-method>The <var>features</var> argument of <code>window.open</code></a></dfn>
</ul>

<p>The term <dfn id=environment-encoding>environment encoding</dfn> is defined in the <cite>CSS Syntax</cite>
specifications. <a href=#refsCSSSYNTAX>[CSSSYNTAX]</a></p>
Expand Down Expand Up @@ -56784,7 +56785,7 @@ <h3 id=the-window-object>7.2 The <code id=the-window-object:window><a href=#wind
attribute any <a href=#dom-opener id=the-window-object:dom-opener>opener</a>;
readonly attribute <a href=#windowproxy id=the-window-object:windowproxy-5>WindowProxy</a> <a href=#dom-parent id=the-window-object:dom-parent>parent</a>;
readonly attribute <a href=#element id=the-window-object:element>Element</a>? <a href=#dom-frameelement id=the-window-object:dom-frameelement>frameElement</a>;
<a href=#windowproxy id=the-window-object:windowproxy-6>WindowProxy</a> <a href=#dom-open id=the-window-object:dom-open>open</a>(optional DOMString url = "about:blank", optional DOMString target = "_blank", optional DOMString features = "", optional boolean replace = false);
<a href=#windowproxy id=the-window-object:windowproxy-6>WindowProxy</a> <a href=#dom-open id=the-window-object:dom-open>open</a>(optional DOMString url = "about:blank", optional DOMString target = "_blank", [TreatNullAs=EmptyString] optional DOMString features = "", optional boolean replace = false);
<a href=#dom-window-item id=the-window-object:dom-window-item>getter</a> <a href=#windowproxy id=the-window-object:windowproxy-7>WindowProxy</a> (unsigned long index);
<a href=#dom-window-nameditem id=the-window-object:dom-window-nameditem>getter</a> object (DOMString name);

Expand Down Expand Up @@ -56926,7 +56927,7 @@ <h4 id=apis-for-creating-and-navigating-browsing-contexts-by-name>7.2.2 APIs for
returns it. The <var>target</var> argument gives the name of the new window. If a
window exists with that name already, it is reused. The <var>replace</var> attribute,
if true, means that whatever page is currently open in that window will be removed from the
window's session history. The <var>features</var> argument is ignored.</p>
window's session history. The <var id=apis-for-creating-and-navigating-browsing-contexts-by-name:dom-open-features><a data-x-internal=dom-open-features href=http://dev.w3.org/csswg/cssom-view/#the-features-argument-to-the-open()-method>features</a></var> argument can be used to influence the rendering of the new window.</p>

<dt><var>window</var> . <code id=apis-for-creating-and-navigating-browsing-contexts-by-name:dom-name><a href=#dom-name>name</a></code> [ = <var>value</var> ]<dd>

Expand Down Expand Up @@ -56967,10 +56968,8 @@ <h4 id=apis-for-creating-and-navigating-browsing-contexts-by-name>7.2.2 APIs for
<p>The second argument, <var>target</var>, specifies the <a href=#browsing-context-name id=apis-for-creating-and-navigating-browsing-contexts-by-name:browsing-context-name>name</a> of the browsing context that is to be navigated. It must be a <a href=#valid-browsing-context-name-or-keyword id=apis-for-creating-and-navigating-browsing-contexts-by-name:valid-browsing-context-name-or-keyword>valid
browsing context name or keyword</a>.</p>

<p>The third argument, <var>features</var>, has no defined effect and is mentioned for
historical reasons only. User agents may interpret this argument as instructions to set the size
and position of the browsing context, but are encouraged to instead ignore the argument
entirely.</p>
<p>The third argument, <var id=apis-for-creating-and-navigating-browsing-contexts-by-name:dom-open-features-2><a data-x-internal=dom-open-features href=http://dev.w3.org/csswg/cssom-view/#the-features-argument-to-the-open()-method>features</a></var>, must be interpreted as
defined in the CSSOM View specification. <a href=#refsCSSOMVIEW>[CSSOMVIEW]</a></p>

<p>The fourth argument, <var>replace</var>, specifies whether or not the new page will
<a href=#replacement-enabled id=apis-for-creating-and-navigating-browsing-contexts-by-name:replacement-enabled>replace</a> the page currently loaded in the browsing
Expand Down
13 changes: 6 additions & 7 deletions index
Expand Up @@ -2454,7 +2454,8 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<dfn id=concept-css-style-sheet-disabeld-flag>disabled flag</dfn>,
<dfn id=concept-css-style-sheet-css-rules>CSS rules</dfn>,
<dfn id=concept-css-style-sheet-origin-clean-flag>origin-clean flag</dfn>
<li><dfn id=alternative-style-sheet-sets>Alternative style sheet sets</dfn> and the <dfn id=preferred-style-sheet-set>preferred style sheet set</dfn><li><dfn id=serialising-a-css-value>Serialising a CSS value</dfn><li><dfn id=scroll-an-element-into-view>Scroll an element into view</dfn><li><dfn id=scroll-to-the-beginning-of-the-document>Scroll to the beginning of the document</dfn><li>The <dfn id=event-resize><code>resize</code></dfn> event<li>The <dfn id=event-scroll><code>scroll</code></dfn> event</ul>
<li><dfn id=alternative-style-sheet-sets>Alternative style sheet sets</dfn> and the <dfn id=preferred-style-sheet-set>preferred style sheet set</dfn><li><dfn id=serialising-a-css-value>Serialising a CSS value</dfn><li><dfn id=scroll-an-element-into-view>Scroll an element into view</dfn><li><dfn id=scroll-to-the-beginning-of-the-document>Scroll to the beginning of the document</dfn><li>The <dfn id=event-resize><code>resize</code></dfn> event<li>The <dfn id=event-scroll><code>scroll</code></dfn> event<li><dfn id=dom-open-features><a href=http://dev.w3.org/csswg/cssom-view/#the-features-argument-to-the-open()-method>The <var>features</var> argument of <code>window.open</code></a></dfn>
</ul>

<p>The term <dfn id=environment-encoding>environment encoding</dfn> is defined in the <cite>CSS Syntax</cite>
specifications. <a href=#refsCSSSYNTAX>[CSSSYNTAX]</a></p>
Expand Down Expand Up @@ -56784,7 +56785,7 @@ dictionary <dfn id=drageventinit>DragEventInit</dfn> : <a href=#mouseeventinit i
attribute any <a href=#dom-opener id=the-window-object:dom-opener>opener</a>;
readonly attribute <a href=#windowproxy id=the-window-object:windowproxy-5>WindowProxy</a> <a href=#dom-parent id=the-window-object:dom-parent>parent</a>;
readonly attribute <a href=#element id=the-window-object:element>Element</a>? <a href=#dom-frameelement id=the-window-object:dom-frameelement>frameElement</a>;
<a href=#windowproxy id=the-window-object:windowproxy-6>WindowProxy</a> <a href=#dom-open id=the-window-object:dom-open>open</a>(optional DOMString url = "about:blank", optional DOMString target = "_blank", optional DOMString features = "", optional boolean replace = false);
<a href=#windowproxy id=the-window-object:windowproxy-6>WindowProxy</a> <a href=#dom-open id=the-window-object:dom-open>open</a>(optional DOMString url = "about:blank", optional DOMString target = "_blank", [TreatNullAs=EmptyString] optional DOMString features = "", optional boolean replace = false);
<a href=#dom-window-item id=the-window-object:dom-window-item>getter</a> <a href=#windowproxy id=the-window-object:windowproxy-7>WindowProxy</a> (unsigned long index);
<a href=#dom-window-nameditem id=the-window-object:dom-window-nameditem>getter</a> object (DOMString name);

Expand Down Expand Up @@ -56926,7 +56927,7 @@ dictionary <dfn id=drageventinit>DragEventInit</dfn> : <a href=#mouseeventinit i
returns it. The <var>target</var> argument gives the name of the new window. If a
window exists with that name already, it is reused. The <var>replace</var> attribute,
if true, means that whatever page is currently open in that window will be removed from the
window's session history. The <var>features</var> argument is ignored.</p>
window's session history. The <var id=apis-for-creating-and-navigating-browsing-contexts-by-name:dom-open-features><a data-x-internal=dom-open-features href=http://dev.w3.org/csswg/cssom-view/#the-features-argument-to-the-open()-method>features</a></var> argument can be used to influence the rendering of the new window.</p>

<dt><var>window</var> . <code id=apis-for-creating-and-navigating-browsing-contexts-by-name:dom-name><a href=#dom-name>name</a></code> [ = <var>value</var> ]<dd>

Expand Down Expand Up @@ -56967,10 +56968,8 @@ dictionary <dfn id=drageventinit>DragEventInit</dfn> : <a href=#mouseeventinit i
<p>The second argument, <var>target</var>, specifies the <a href=#browsing-context-name id=apis-for-creating-and-navigating-browsing-contexts-by-name:browsing-context-name>name</a> of the browsing context that is to be navigated. It must be a <a href=#valid-browsing-context-name-or-keyword id=apis-for-creating-and-navigating-browsing-contexts-by-name:valid-browsing-context-name-or-keyword>valid
browsing context name or keyword</a>.</p>

<p>The third argument, <var>features</var>, has no defined effect and is mentioned for
historical reasons only. User agents may interpret this argument as instructions to set the size
and position of the browsing context, but are encouraged to instead ignore the argument
entirely.</p>
<p>The third argument, <var id=apis-for-creating-and-navigating-browsing-contexts-by-name:dom-open-features-2><a data-x-internal=dom-open-features href=http://dev.w3.org/csswg/cssom-view/#the-features-argument-to-the-open()-method>features</a></var>, must be interpreted as
defined in the CSSOM View specification. <a href=#refsCSSOMVIEW>[CSSOMVIEW]</a></p>

<p>The fourth argument, <var>replace</var>, specifies whether or not the new page will
<a href=#replacement-enabled id=apis-for-creating-and-navigating-browsing-contexts-by-name:replacement-enabled>replace</a> the page currently loaded in the browsing
Expand Down
11 changes: 5 additions & 6 deletions source
Expand Up @@ -3155,6 +3155,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<li><dfn>Scroll to the beginning of the document</dfn></li>
<li>The <dfn><code data-x="event-resize">resize</code></dfn> event</li>
<li>The <dfn><code data-x="event-scroll">scroll</code></dfn> event</li>
<li><dfn data-x="dom-open-features" data-x-href="http://dev.w3.org/csswg/cssom-view/#the-features-argument-to-the-open()-method">The <var>features</var> argument of <code data-x="dom-open">window.open</code></dfn>
</ul>

<p>The term <dfn>environment encoding</dfn> is defined in the <cite>CSS Syntax</cite>
Expand Down Expand Up @@ -76754,7 +76755,7 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
attribute any <span data-x="dom-opener">opener</span>;
readonly attribute <span>WindowProxy</span> <span data-x="dom-parent">parent</span>;
readonly attribute <span>Element</span>? <span data-x="dom-frameElement">frameElement</span>;
<span>WindowProxy</span> <span data-x="dom-open">open</span>(optional DOMString url = "about:blank", optional DOMString target = "_blank", optional DOMString features = "", optional boolean replace = false);
<span>WindowProxy</span> <span data-x="dom-open">open</span>(optional DOMString url = "about:blank", optional DOMString target = "_blank", [TreatNullAs=EmptyString] optional DOMString features = "", optional boolean replace = false);
<span data-x="dom-window-item">getter</span> <span>WindowProxy</span> (unsigned long index);
<span data-x="dom-window-namedItem">getter</span> object (DOMString name);

Expand Down Expand Up @@ -76926,7 +76927,7 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
returns it. The <var>target</var> argument gives the name of the new window. If a
window exists with that name already, it is reused. The <var>replace</var> attribute,
if true, means that whatever page is currently open in that window will be removed from the
window's session history. The <var>features</var> argument is ignored.</p>
window's session history. The <var data-x="dom-open-features">features</var> argument can be used to influence the rendering of the new window.</p>

</dd>

Expand Down Expand Up @@ -76986,10 +76987,8 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
name">name</span> of the browsing context that is to be navigated. It must be a <span>valid
browsing context name or keyword</span>.</p>

<p>The third argument, <var>features</var>, has no defined effect and is mentioned for
historical reasons only. User agents may interpret this argument as instructions to set the size
and position of the browsing context, but are encouraged to instead ignore the argument
entirely.</p>
<p>The third argument, <var data-x="dom-open-features">features</var>, must be interpreted as
defined in the CSSOM View specification. <ref spec="CSSOMVIEW"></p>

<p>The fourth argument, <var>replace</var>, specifies whether or not the new page will
<span data-x="replacement enabled">replace</span> the page currently loaded in the browsing
Expand Down

0 comments on commit 9882f42

Please sign in to comment.