[html5] r8742 - [e] (0) Make use of the DOM spec's 'node document' concept. I sure would appreci [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Sep 4 14:16:28 PDT 2014
Author: ianh
Date: 2014-09-04 14:16:25 -0700 (Thu, 04 Sep 2014)
New Revision: 8742
Modified:
complete.html
index
source
Log:
[e] (0) Make use of the DOM spec's 'node document' concept. I sure would appreciate careful review of this diff, since it is quite likely that I made some mistakes.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26310
Affected topics: CSS, DOM APIs, HTML, HTML Syntax and Parsing, Offline Web Applications, Rendering, Security, Video Text Tracks, Video and Audio, Workers
Modified: complete.html
===================================================================
--- complete.html 2014-09-03 23:43:15 UTC (rev 8741)
+++ complete.html 2014-09-04 21:16:25 UTC (rev 8742)
@@ -291,7 +291,7 @@
</style><link rel=stylesheet href=status.css><body onload=init()>
<header id=head class="head with-buttons">
<p><a href=//www.whatwg.org/ class=logo><img src=/images/logo width=101 alt=WHATWG height=101></a></p>
- <hgroup><h1 class=allcaps>HTML</h1><h2 id=living-standard-—-last-updated-[date:-01-jan-1901] class="no-num no-toc">Living Standard — Last Updated <span class=pubdate>3 September 2014</span></h2></hgroup>
+ <hgroup><h1 class=allcaps>HTML</h1><h2 id=living-standard-—-last-updated-[date:-01-jan-1901] class="no-num no-toc">Living Standard — Last Updated <span class=pubdate>4 September 2014</span></h2></hgroup>
<nav>
<div>
@@ -1703,15 +1703,6 @@
element</a>. When a node is <a href=#in-a-document id=dom-trees:in-a-document>in a <code>Document</code></a>, its <a href=#home-subtree id=dom-trees:home-subtree>home
subtree</a> is that <code id=dom-trees:document-4><a href=#document>Document</a></code>'s tree.</p>
- <p>The <code id=dom-trees:document-5><a href=#document>Document</a></code> of a <code id=dom-trees:node><a href=#node>Node</a></code> (such as an element) is the
- <code id=dom-trees:document-6><a href=#document>Document</a></code> that the <code id=dom-trees:node-2><a href=#node>Node</a></code>'s <code id=dom-trees:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code> IDL attribute returns. When a
- <code id=dom-trees:node-3><a href=#node>Node</a></code> is <a href=#in-a-document id=dom-trees:in-a-document-2>in a <code>Document</code></a> then that <code id=dom-trees:document-7><a href=#document>Document</a></code> is
- always the <code id=dom-trees:node-4><a href=#node>Node</a></code>'s <code id=dom-trees:document-8><a href=#document>Document</a></code>, and the <code id=dom-trees:node-5><a href=#node>Node</a></code>'s <code id=dom-trees:dom-node-ownerdocument-2><a href=#dom-node-ownerdocument>ownerDocument</a></code> IDL attribute thus always returns that
- <code id=dom-trees:document-9><a href=#document>Document</a></code>.</p>
-
- <p>The <code id=dom-trees:document-10><a href=#document>Document</a></code> of a content attribute is the <code id=dom-trees:document-11><a href=#document>Document</a></code> of the
- attribute's element.</p>
-
<p>The term <dfn id=tree-order>tree order</dfn> means a pre-order, depth-first traversal of DOM nodes involved
(through the <code id=dom-trees:dom-node-parentnode><a href=#dom-node-parentnode>parentNode</a></code>/<code id=dom-trees:dom-node-childnodes><a href=#dom-node-childnodes>childNodes</a></code> relationship).</p>
@@ -2358,7 +2349,7 @@
<p>In particular, the following features are defined in the DOM specification: <a href=#refsDOM>[DOM]</a></p>
- <ul class=brief><li><dfn id=attr><code>Attr</code></dfn> interface<li><dfn id=comment-2><code>Comment</code></dfn> interface<li><dfn id=domimplementation><code>DOMImplementation</code></dfn> interface<li><dfn id=dom-document><code>Document</code></dfn> interface<li><dfn id=xmldocument><code>XMLDocument</code></dfn> interface<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface<li><dfn id=documenttype><code>DocumentType</code></dfn> interface<li><dfn id=domexception><code>DOMException</code></dfn> interface<li><dfn id=childnode><code>ChildNode</code></dfn> interface<li><dfn id=element><code>Element</code></dfn> interface<li><dfn id=node><code>Node</code></dfn> interface<li><dfn id=nodelist><code>NodeList</code></dfn> interface<li><dfn id=processinginstruction><code>ProcessingInstruction</code></dfn> interface<li><dfn id=text><code>Text</code></dfn> interface<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface<li><dfn id=dom-htmlcolle
ction-length><code>HTMLCollection.length</code></dfn> attribute<li><dfn id=dom-htmlcollection-item><code>HTMLCollection.item()</code></dfn> method<li><dfn id=dom-htmlcollection-nameditem><code>HTMLCollection.namedItem()</code></dfn> method<li>The terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn><li><dfn id=domtokenlist><code>DOMTokenList</code></dfn> interface<li><dfn id=domsettabletokenlist><code>DOMSettableTokenList</code></dfn> interface<li><dfn id=dom-domsettabletokenlist-value><code>DOMSettableTokenList.value</code></dfn> attribute<li><dfn id=dom-domimplementation-createdocument><code>createDocument()</code></dfn> method<li><dfn id=dom-domimplementation-createhtmldocument><code>createHTMLDocument()</code></dfn> method<li><dfn id=dom-document-createelement><code>createElement()</code></dfn> method<li><dfn id=dom-document-createelementns><code>createElementNS()</code></dfn> method<li><dfn id=dom-docum
ent-getelementbyid><code>getElementById()</code></dfn> method<li><dfn id=dom-document-getelementsbyclassname><code>getElementsByClassName()</code></dfn> method<li><dfn id=dom-node-insertbefore><code>insertBefore()</code></dfn> method<li><dfn id=dom-node-ownerdocument><code>ownerDocument</code></dfn> attribute<li><dfn id=dom-node-childnodes><code>childNodes</code></dfn> attribute<li><dfn id=dom-node-localname><code>localName</code></dfn> attribute<li><dfn id=dom-node-parentnode><code>parentNode</code></dfn> attribute<li><dfn id=dom-node-namespaceuri><code>namespaceURI</code></dfn> attribute<li><dfn id=dom-element-tagname><code>tagName</code></dfn> attribute<li><dfn id=dom-element-id><code>id</code></dfn> attribute<li><dfn id=textcontent><code>textContent</code></dfn> attribute<li>The <dfn id=concept-node-insert>insert</dfn>, <dfn id=concept-node-append>append</dfn>, <dfn id=concept-node-remove>remove</dfn>, <dfn id=concept-node-replace>replace</dfn>, and <dfn id=concept-node-
adopt>adopt</dfn> algorithms for nodes<li>The <dfn id=nodes-are-inserted>nodes are inserted</dfn> and <dfn id=nodes-are-removed>nodes are removed</dfn> concepts<li>An element's <dfn id=concept-node-adopt-ext>adopting steps</dfn><li>The <dfn id=attribute-list>attribute list</dfn> concept.<li>The <dfn id=concept-cd-data>data</dfn> of a text node.<li><dfn id=event><code>Event</code></dfn> interface<li><dfn id=eventtarget><code>EventTarget</code></dfn> interface<li><dfn id=eventinit><code>EventInit</code></dfn> dictionary type<li><dfn id=dom-event-target><code>target</code></dfn> attribute<li><dfn id=dom-event-currenttarget><code>currentTarget</code></dfn> attribute<li><dfn id=dom-event-istrusted><code>isTrusted</code></dfn> attribute<li><dfn id=dom-event-initevent><code>initEvent()</code></dfn> method<li><dfn id=dom-eventtarget-addeventlistener><code>addEventListener()</code></dfn> method<li>The <dfn id=concept-event-type>type</dfn> of an event<li>The concept of an <dfn id=conc
ept-event-listener>event listener</dfn> and the <a href=#concept-event-listener id=dependencies:concept-event-listener>event listeners</a> associated with an <code id=dependencies:eventtarget><a href=#eventtarget>EventTarget</a></code><li>The concept of a <dfn id=concept-event-target-override>target override</dfn><li>The concept of a regular <dfn id=event-parent>event parent</dfn> and a <dfn id=cross-boundary-event-parent>cross-boundary event parent</dfn><li>The <dfn id="document's-character-encoding">encoding</dfn> (herein the <i>character encoding</i>) and <dfn id=concept-document-content-type>content type</dfn> of a <code id=dependencies:document><a href=#document>Document</a></code><li>The distinction between <dfn id=xml-documents>XML documents</dfn> and <dfn id=html-documents>HTML documents</dfn><li>The terms <dfn id=quirks-mode>quirks mode</dfn>, <dfn id=limited-quirks-mode>limited-quirks mode</dfn>, and <dfn id=no-quirks-mode>no-quirks mode</dfn><li>The algorithm to <
dfn id=concept-node-clone>clone</dfn> a <code id=dependencies:node><a href=#node>Node</a></code>, and the concept of <dfn id=concept-node-clone-ext>cloning steps</dfn> used by that algorithm<li>The concept of <dfn id=base-url-change-steps>base URL change steps</dfn> and the definition of what happens when an element is <dfn id=affected-by-a-base-url-change>affected by a base URL change</dfn><li>The concept of an element's <dfn id=concept-id>unique identifier (ID)</dfn><li>The concept of a DOM <dfn id=concept-range>range</dfn>, and the terms <dfn id=concept-range-start>start</dfn>, <dfn id=concept-range-end>end</dfn>, and <dfn id=concept-range-bp>boundary point</dfn> as applied to ranges.<li><dfn id=mutationobserver><code>MutationObserver</code></dfn> interface<li><dfn id=promise>Promise</dfn> interface<li>The <dfn id=concept-resolver>resolver</dfn> concept<li>The <dfn id=concept-resolver-fulfill>fulfill</dfn> and <dfn id=concept-resolver-reject>reject</dfn> algorithms</ul>
+ <ul class=brief><li><dfn id=attr><code>Attr</code></dfn> interface<li><dfn id=comment-2><code>Comment</code></dfn> interface<li><dfn id=domimplementation><code>DOMImplementation</code></dfn> interface<li><dfn id=dom-document><code>Document</code></dfn> interface<li><dfn id=xmldocument><code>XMLDocument</code></dfn> interface<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface<li><dfn id=documenttype><code>DocumentType</code></dfn> interface<li><dfn id=domexception><code>DOMException</code></dfn> interface<li><dfn id=childnode><code>ChildNode</code></dfn> interface<li><dfn id=element><code>Element</code></dfn> interface<li><dfn id=node><code>Node</code></dfn> interface<li><dfn id=nodelist><code>NodeList</code></dfn> interface<li><dfn id=processinginstruction><code>ProcessingInstruction</code></dfn> interface<li><dfn id=text><code>Text</code></dfn> interface<li><dfn id=node-document><a href=http://dom.spec.whatwg.org/#concept-node-document>node docume
nt</a></dfn> concept<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface<li><dfn id=dom-htmlcollection-length><code>HTMLCollection.length</code></dfn> attribute<li><dfn id=dom-htmlcollection-item><code>HTMLCollection.item()</code></dfn> method<li><dfn id=dom-htmlcollection-nameditem><code>HTMLCollection.namedItem()</code></dfn> method<li>The terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn><li><dfn id=domtokenlist><code>DOMTokenList</code></dfn> interface<li><dfn id=domsettabletokenlist><code>DOMSettableTokenList</code></dfn> interface<li><dfn id=dom-domsettabletokenlist-value><code>DOMSettableTokenList.value</code></dfn> attribute<li><dfn id=dom-domimplementation-createdocument><code>createDocument()</code></dfn> method<li><dfn id=dom-domimplementation-createhtmldocument><code>createHTMLDocument()</code></dfn> method<li><dfn id=dom-document-createelement><code>createElement()</code></d
fn> method<li><dfn id=dom-document-createelementns><code>createElementNS()</code></dfn> method<li><dfn id=dom-document-getelementbyid><code>getElementById()</code></dfn> method<li><dfn id=dom-document-getelementsbyclassname><code>getElementsByClassName()</code></dfn> method<li><dfn id=dom-node-insertbefore><code>insertBefore()</code></dfn> method<li><dfn id=dom-node-childnodes><code>childNodes</code></dfn> attribute<li><dfn id=dom-node-localname><code>localName</code></dfn> attribute<li><dfn id=dom-node-parentnode><code>parentNode</code></dfn> attribute<li><dfn id=dom-node-namespaceuri><code>namespaceURI</code></dfn> attribute<li><dfn id=dom-element-tagname><code>tagName</code></dfn> attribute<li><dfn id=dom-element-id><code>id</code></dfn> attribute<li><dfn id=textcontent><code>textContent</code></dfn> attribute<li>The <dfn id=concept-node-insert>insert</dfn>, <dfn id=concept-node-append>append</dfn>, <dfn id=concept-node-remove>remove</dfn>, <dfn id=concept-node-replace>re
place</dfn>, and <dfn id=concept-node-adopt>adopt</dfn> algorithms for nodes<li>The <dfn id=nodes-are-inserted>nodes are inserted</dfn> and <dfn id=nodes-are-removed>nodes are removed</dfn> concepts<li>An element's <dfn id=concept-node-adopt-ext>adopting steps</dfn><li>The <dfn id=attribute-list>attribute list</dfn> concept.<li>The <dfn id=concept-cd-data>data</dfn> of a text node.<li><dfn id=event><code>Event</code></dfn> interface<li><dfn id=eventtarget><code>EventTarget</code></dfn> interface<li><dfn id=eventinit><code>EventInit</code></dfn> dictionary type<li><dfn id=dom-event-target><code>target</code></dfn> attribute<li><dfn id=dom-event-currenttarget><code>currentTarget</code></dfn> attribute<li><dfn id=dom-event-istrusted><code>isTrusted</code></dfn> attribute<li><dfn id=dom-event-initevent><code>initEvent()</code></dfn> method<li><dfn id=dom-eventtarget-addeventlistener><code>addEventListener()</code></dfn> method<li>The <dfn id=concept-event-type>type</dfn> of an e
vent<li>The concept of an <dfn id=concept-event-listener>event listener</dfn> and the <a href=#concept-event-listener id=dependencies:concept-event-listener>event listeners</a> associated with an <code id=dependencies:eventtarget><a href=#eventtarget>EventTarget</a></code><li>The concept of a <dfn id=concept-event-target-override>target override</dfn><li>The concept of a regular <dfn id=event-parent>event parent</dfn> and a <dfn id=cross-boundary-event-parent>cross-boundary event parent</dfn><li>The <dfn id="document's-character-encoding">encoding</dfn> (herein the <i>character encoding</i>) and <dfn id=concept-document-content-type>content type</dfn> of a <code id=dependencies:document><a href=#document>Document</a></code><li>The distinction between <dfn id=xml-documents>XML documents</dfn> and <dfn id=html-documents>HTML documents</dfn><li>The terms <dfn id=quirks-mode>quirks mode</dfn>, <dfn id=limited-quirks-mode>limited-quirks mode</dfn>, and <dfn id=no-quirks-mode>no-q
uirks mode</dfn><li>The algorithm to <dfn id=concept-node-clone>clone</dfn> a <code id=dependencies:node><a href=#node>Node</a></code>, and the concept of <dfn id=concept-node-clone-ext>cloning steps</dfn> used by that algorithm<li>The concept of <dfn id=base-url-change-steps>base URL change steps</dfn> and the definition of what happens when an element is <dfn id=affected-by-a-base-url-change>affected by a base URL change</dfn><li>The concept of an element's <dfn id=concept-id>unique identifier (ID)</dfn><li>The concept of a DOM <dfn id=concept-range>range</dfn>, and the terms <dfn id=concept-range-start>start</dfn>, <dfn id=concept-range-end>end</dfn>, and <dfn id=concept-range-bp>boundary point</dfn> as applied to ranges.<li><dfn id=mutationobserver><code>MutationObserver</code></dfn> interface<li><dfn id=promise>Promise</dfn> interface<li>The <dfn id=concept-resolver>resolver</dfn> concept<li>The <dfn id=concept-resolver-fulfill>fulfill</dfn> and <dfn id=concept-resolver
-reject>reject</dfn> algorithms</ul>
<p>The term <dfn id=throw>throw</dfn> in this specification is used as defined in the DOM specification.
The following <code id=dependencies:domexception><a href=#domexception>DOMException</a></code> types are defined in the DOM specification: <a href=#refsDOM>[DOM]</a></p>
@@ -4315,26 +4306,26 @@
<ol><li><p>If the <code id=terminology-2:document-2><a href=#document>Document</a></code> is <a href=#an-iframe-srcdoc-document id=terminology-2:an-iframe-srcdoc-document-2>an <code>iframe</code> <code>srcdoc</code> document</a>, then return the <a href=#document-base-url id=terminology-2:document-base-url>document base
URL</a> of the <code id=terminology-2:document-3><a href=#document>Document</a></code>'s <a href=#browsing-context id=terminology-2:browsing-context>browsing context</a>'s <a href=#browsing-context-container id=terminology-2:browsing-context-container>browsing context
- container</a>'s <code id=terminology-2:document-4><a href=#document>Document</a></code> and abort these steps.<li>
+ container</a>'s <a id=terminology-2:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> and abort these steps.<li>
<p>If <a id="terminology-2:the-document's-address-2" href=http://dom.spec.whatwg.org/#concept-document-url data-x-internal="the-document's-address">the document's address</a> is <code id=terminology-2:about:blank><a href=#about:blank>about:blank</a></code>, and the
- <code id=terminology-2:document-5><a href=#document>Document</a></code>'s <a href=#browsing-context id=terminology-2:browsing-context-2>browsing context</a> has a <a href=#creator-browsing-context id=terminology-2:creator-browsing-context>creator browsing
+ <code id=terminology-2:document-4><a href=#document>Document</a></code>'s <a href=#browsing-context id=terminology-2:browsing-context-2>browsing context</a> has a <a href=#creator-browsing-context id=terminology-2:creator-browsing-context>creator browsing
context</a>, then return the <a href=#document-base-url id=terminology-2:document-base-url-2>document base URL</a> of the <a href=#creator-document id=terminology-2:creator-document>creator
<code>Document</code></a>, and abort these steps.</p>
<li><p>Return <a id="terminology-2:the-document's-address-3" href=http://dom.spec.whatwg.org/#concept-document-url data-x-internal="the-document's-address">the document's address</a>.</ol>
- <p>The <dfn id=document-base-url>document base URL</dfn> of a <code id=terminology-2:document-6><a href=#document>Document</a></code> object is the <a href=#absolute-url id=terminology-2:absolute-url-2>absolute
+ <p>The <dfn id=document-base-url>document base URL</dfn> of a <code id=terminology-2:document-5><a href=#document>Document</a></code> object is the <a href=#absolute-url id=terminology-2:absolute-url-2>absolute
URL</a> obtained by running these substeps:</p>
- <ol><li><p>If there is no <code id=terminology-2:the-base-element><a href=#the-base-element>base</a></code> element that has an <code id=terminology-2:attr-base-href><a href=#attr-base-href>href</a></code> attribute in the <code id=terminology-2:document-7><a href=#document>Document</a></code>, then the
- <a href=#document-base-url id=terminology-2:document-base-url-3>document base URL</a> is the <code id=terminology-2:document-8><a href=#document>Document</a></code>'s <a href=#fallback-base-url id=terminology-2:fallback-base-url>fallback base URL</a>;
+ <ol><li><p>If there is no <code id=terminology-2:the-base-element><a href=#the-base-element>base</a></code> element that has an <code id=terminology-2:attr-base-href><a href=#attr-base-href>href</a></code> attribute in the <code id=terminology-2:document-6><a href=#document>Document</a></code>, then the
+ <a href=#document-base-url id=terminology-2:document-base-url-3>document base URL</a> is the <code id=terminology-2:document-7><a href=#document>Document</a></code>'s <a href=#fallback-base-url id=terminology-2:fallback-base-url>fallback base URL</a>;
abort these steps.<li><p>Otherwise, the <a href=#document-base-url id=terminology-2:document-base-url-4>document base URL</a> is the <a href=#frozen-base-url id=terminology-2:frozen-base-url>frozen base URL</a> of the
- first <code id=terminology-2:the-base-element-2><a href=#the-base-element>base</a></code> element in the <code id=terminology-2:document-9><a href=#document>Document</a></code> that has an <code id=terminology-2:attr-base-href-2><a href=#attr-base-href>href</a></code> attribute, in <a href=#tree-order id=terminology-2:tree-order>tree order</a>.</ol>
+ first <code id=terminology-2:the-base-element-2><a href=#the-base-element>base</a></code> element in the <code id=terminology-2:document-8><a href=#document>Document</a></code> that has an <code id=terminology-2:attr-base-href-2><a href=#attr-base-href>href</a></code> attribute, in <a href=#tree-order id=terminology-2:tree-order>tree order</a>.</ol>
@@ -4477,13 +4468,13 @@
<p>Let <var>document</var> be the appropriate <code id=processing-model:document><a href=#document>Document</a></code> as given by the
following list:</p>
- <dl class=switch><dt>If there is a specific <i>override referrer source</i><dd>The <i>override referrer source</i>.<dt>When <a href=#navigate id=processing-model:navigate>navigating</a><dd>The <a href=#active-document id=processing-model:active-document>active document</a> of the <a href=#source-browsing-context id=processing-model:source-browsing-context>source browsing context</a>.<dt>When fetching resources for an element<dd>The element's <code id=processing-model:document-2><a href=#document>Document</a></code>.</dl>
+ <dl class=switch><dt>If there is a specific <i>override referrer source</i><dd>The <i>override referrer source</i>.<dt>When <a href=#navigate id=processing-model:navigate>navigating</a><dd>The <a href=#active-document id=processing-model:active-document>active document</a> of the <a href=#source-browsing-context id=processing-model:source-browsing-context>source browsing context</a>.<dt>When fetching resources for an element<dd>The element's <a id=processing-model:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</dl>
<li>
<p>While <var>document</var> is <a href=#an-iframe-srcdoc-document id=processing-model:an-iframe-srcdoc-document>an <code>iframe</code> <code>srcdoc</code> document</a>, let <var>document</var> be
<var>document</var>'s <a href=#browsing-context id=processing-model:browsing-context>browsing context</a>'s <a href=#browsing-context-container id=processing-model:browsing-context-container>browsing context
- container</a>'s <code id=processing-model:document-3><a href=#document>Document</a></code> instead.</p>
+ container</a>'s <a id=processing-model:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> instead.</p>
<li>
@@ -4515,7 +4506,7 @@
regardless of its value.</p>
<li><p>If the algorithm was not invoked with the <i>synchronous flag</i>, perform the remaining
- steps asynchronously.<li><p>If the <code id=processing-model:document-4><a href=#document>Document</a></code> with which any <a href=#concept-task id=processing-model:concept-task>tasks</a> <a href=#queue-a-task id=processing-model:queue-a-task>queued</a> by this algorithm would be associated doesn't have an
+ steps asynchronously.<li><p>If the <code id=processing-model:document-2><a href=#document>Document</a></code> with which any <a href=#concept-task id=processing-model:concept-task>tasks</a> <a href=#queue-a-task id=processing-model:queue-a-task>queued</a> by this algorithm would be associated doesn't have an
associated <a href=#browsing-context id=processing-model:browsing-context-2>browsing context</a>, then abort these steps.<li>
<p>This is the <i>main step</i>.</p>
@@ -4988,7 +4979,7 @@
<ol><li>If the corresponding content attribute is absent, then the IDL attribute must return
null.<li>Let <var>candidate</var> be the element that the <code id=reflecting-content-attributes-in-idl-attributes:dom-document-getelementbyid><a href=#dom-document-getelementbyid>document.getElementById()</a></code> method would find when
- called on the content attribute's document if it were passed as its argument the current value of
+ called on the content attribute's element's <a id=reflecting-content-attributes-in-idl-attributes:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> if it were passed as its argument the current value of
the corresponding content attribute.<li>If <var>candidate</var> is null, or if it is not type-compatible with the IDL
attribute, then the IDL attribute must return null.<li>Otherwise, it must return <var>candidate</var>.</ol>
@@ -9132,7 +9123,7 @@
<p>Do a <a href=#potentially-cors-enabled-fetch id=the-link-element:potentially-cors-enabled-fetch>potentially CORS-enabled fetch</a> of the resulting <a href=#absolute-url id=the-link-element:absolute-url>absolute
URL</a>, with the <i>mode</i> being the current state of the element's <code id=the-link-element:attr-link-crossorigin-2><a href=#attr-link-crossorigin>crossorigin</a></code> content attribute, the <i>origin</i>
- being the <a href=#origin-2 id=the-link-element:origin-2>origin</a> of the <code id=the-link-element:the-link-element-9><a href=#the-link-element>link</a></code> element's <code id=the-link-element:document><a href=#document>Document</a></code>, and the
+ being the <a href=#origin-2 id=the-link-element:origin-2>origin</a> of the <code id=the-link-element:the-link-element-9><a href=#the-link-element>link</a></code> element's <a id=the-link-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, and the
<i>default origin behaviour</i> set to <i>taint</i>.</p>
<p>The resource obtained in this fashion can be either <a href=#cors-same-origin id=the-link-element:cors-same-origin>CORS-same-origin</a> or
@@ -9162,7 +9153,7 @@
<p>The <a href=#task-source id=the-link-element:task-source>task source</a> for these <a href=#concept-task id=the-link-element:concept-task>tasks</a> is the <a href=#dom-manipulation-task-source id=the-link-element:dom-manipulation-task-source>DOM
manipulation task source</a>.</p>
- <p>The element must <a href=#delay-the-load-event id=the-link-element:delay-the-load-event>delay the load event</a> of the element's document until all the
+ <p>The element must <a href=#delay-the-load-event id=the-link-element:delay-the-load-event>delay the load event</a> of the element's <a id=the-link-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> until all the
attempts to obtain the resource and its <a href=#critical-subresources id=the-link-element:critical-subresources-3>critical subresources</a> are complete.
(Resources that the user agent has not yet attempted to obtain, e.g. because it is waiting for the
resource to be needed, do not <a href=#delay-the-load-event id=the-link-element:delay-the-load-event-2>delay the load event</a>.)</p>
@@ -9304,7 +9295,7 @@
<p>The <a href=#activation-behavior id=the-link-element:activation-behavior>activation behavior</a> of <code id=the-link-element:the-link-element-18><a href=#the-link-element>link</a></code> elements that create <a href=#hyperlink id=the-link-element:hyperlink-5>hyperlinks</a> is to run the following steps:</p>
- <ol><li><p>If the <code id=the-link-element:the-link-element-19><a href=#the-link-element>link</a></code> element's <code id=the-link-element:document-2><a href=#document>Document</a></code> is not <a href=#fully-active id=the-link-element:fully-active>fully active</a>,
+ <ol><li><p>If the <code id=the-link-element:the-link-element-19><a href=#the-link-element>link</a></code> element's <a id=the-link-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-link-element:fully-active>fully active</a>,
then abort these steps.<li><p><a href=#following-hyperlinks-2 id=the-link-element:following-hyperlinks-2-2>Follow the hyperlink</a> created by the
<code id=the-link-element:the-link-element-20><a href=#the-link-element>link</a></code> element.</ol>
@@ -9771,11 +9762,11 @@
<ul><li>
<p>After the refresh has come due (as defined below), if the user has not canceled the
- redirect and if the <code id=pragma-directives:the-meta-element-11><a href=#the-meta-element>meta</a></code> element's <code id=pragma-directives:document><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=pragma-directives:active-sandboxing-flag-set>active
+ redirect and if the <code id=pragma-directives:the-meta-element-11><a href=#the-meta-element>meta</a></code> element's <a id=pragma-directives:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=pragma-directives:active-sandboxing-flag-set>active
sandboxing flag set</a> does not have the <a href=#sandboxed-automatic-features-browsing-context-flag id=pragma-directives:sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing
context flag</a> set, <a href=#navigate id=pragma-directives:navigate>navigate</a> the
- <code id=pragma-directives:document-2><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context>browsing context</a> to <var>url</var>, with
- <a href=#replacement-enabled id=pragma-directives:replacement-enabled>replacement enabled</a>, and with the <code id=pragma-directives:document-3><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context-2>browsing
+ <code id=pragma-directives:document><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context>browsing context</a> to <var>url</var>, with
+ <a href=#replacement-enabled id=pragma-directives:replacement-enabled>replacement enabled</a>, and with the <code id=pragma-directives:document-2><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context-2>browsing
context</a> as the <a href=#source-browsing-context id=pragma-directives:source-browsing-context>source browsing context</a>.</p>
<p>For the purposes of the previous paragraph, a refresh is said to have come due as soon as
@@ -9789,7 +9780,7 @@
preferences.</ul>
<li><p>Provide the user with an interface that, when selected, <a href=#navigate id=pragma-directives:navigate-2>navigates</a> a <a href=#browsing-context id=pragma-directives:browsing-context-3>browsing context</a> to
- <var>url</var>, with the <code id=pragma-directives:document-4><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context-4>browsing context</a> as
+ <var>url</var>, with the <code id=pragma-directives:document-3><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context-4>browsing context</a> as
the <a href=#source-browsing-context id=pragma-directives:source-browsing-context-2>source browsing context</a>.<li><p>Do nothing.</ul>
<p>In addition, the user agent may, as with anything, inform the user of any and all aspects
@@ -10157,7 +10148,7 @@
<p>The <a href=#task-source id=the-style-element:task-source>task source</a> for these <a href=#concept-task id=the-style-element:concept-task>tasks</a> is the <a href=#dom-manipulation-task-source id=the-style-element:dom-manipulation-task-source>DOM
manipulation task source</a>.</p>
- <p>The element must <a href=#delay-the-load-event id=the-style-element:delay-the-load-event>delay the load event</a> of the element's document until all the
+ <p>The element must <a href=#delay-the-load-event id=the-style-element:delay-the-load-event>delay the load event</a> of the element's <a id=the-style-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> until all the
attempts to obtain the style sheet's <a href=#critical-subresources id=the-style-element:critical-subresources-4>critical subresources</a>, if any, are complete.</p>
@@ -11267,11 +11258,11 @@
the nearest <code id=the-address-element:the-article-element-5><a href=#the-article-element>article</a></code> or <code id=the-address-element:the-body-element-6><a href=#the-body-element>body</a></code> element ancestor, whichever is
nearest.</p>
- <dt>If <var>node</var>'s <code id=the-address-element:document><a href=#document>Document</a></code> has <a href=#the-body-element-2 id=the-address-element:the-body-element-2-2>a body
+ <dt>If <var>node</var>'s <a id=the-address-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> has <a href=#the-body-element-2 id=the-address-element:the-body-element-2-2>a body
element</a><dd>
<p>The contact information of <var>node</var> is the same as the contact information of
- <a href=#the-body-element-2 id=the-address-element:the-body-element-2-3>the body element</a> of the <code id=the-address-element:document-2><a href=#document>Document</a></code>.</p>
+ <a href=#the-body-element-2 id=the-address-element:the-body-element-2-3>the body element</a> of the <code id=the-address-element:document><a href=#document>Document</a></code>.</p>
<dt>Otherwise<dd>
@@ -13512,7 +13503,7 @@
<p>The <a href=#activation-behavior id=the-a-element:activation-behavior>activation behavior</a> of <code id=the-a-element:the-a-element-6><a href=#the-a-element>a</a></code> elements that create <a href=#hyperlink id=the-a-element:hyperlink-4>hyperlinks</a> is to run the following steps:</p>
- <ol><li><p>If the <code id=the-a-element:the-a-element-7><a href=#the-a-element>a</a></code> element's <code id=the-a-element:document><a href=#document>Document</a></code> is not <a href=#fully-active id=the-a-element:fully-active>fully active</a>, then abort these steps.<li>
+ <ol><li><p>If the <code id=the-a-element:the-a-element-7><a href=#the-a-element>a</a></code> element's <a id=the-a-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-a-element:fully-active>fully active</a>, then abort these steps.<li>
<p>If either the <code id=the-a-element:the-a-element-8><a href=#the-a-element>a</a></code> element has a <code id=the-a-element:attr-hyperlink-download-4><a href=#attr-hyperlink-download>download</a></code> attribute and the algorithm is not <a href=#allowed-to-show-a-popup id=the-a-element:allowed-to-show-a-popup>allowed
to show a popup</a>, or the element's <code id=the-a-element:attr-hyperlink-target-4><a href=#attr-hyperlink-target>target</a></code>
@@ -15766,7 +15757,7 @@
whose <code id=introduction-2:attr-hyperlink-rel-4><a href=#attr-hyperlink-rel>rel</a></code> attribute has no keywords that are defined as
specifying <a href=#hyperlink id=introduction-2:hyperlink>hyperlinks</a>, must also create a <a href=#hyperlink id=introduction-2:hyperlink-2>hyperlink</a>.
This implied hyperlink has no special meaning (it has no <a href=#linkTypes>link type</a>)
- beyond linking the element's document to the resource given by the element's <code id=introduction-2:attr-hyperlink-href-3><a href=#attr-hyperlink-href>href</a></code> attribute.</p>
+ beyond linking the element's <a id=introduction-2:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> to the resource given by the element's <code id=introduction-2:attr-hyperlink-href-3><a href=#attr-hyperlink-href>href</a></code> attribute.</p>
<p>A <a href=#hyperlink id=introduction-2:hyperlink-3>hyperlink</a> can have one or more <dfn id=hyperlink-annotation>hyperlink
annotations</dfn> that modify the processing semantics of that hyperlink.</p>
@@ -19893,7 +19884,7 @@
<p>Any <a href=#navigate id=the-iframe-element:navigate-3>navigation</a> required of the user agent in the <a href=#process-the-iframe-attributes id=the-iframe-element:process-the-iframe-attributes-4>process
the <code>iframe</code> attributes</a> algorithm must be completed as an <a href=#explicit-self-navigation-override id=the-iframe-element:explicit-self-navigation-override>explicit
- self-navigation override</a> and with the <code id=the-iframe-element:the-iframe-element-13><a href=#the-iframe-element>iframe</a></code> element's document's
+ self-navigation override</a> and with the <code id=the-iframe-element:the-iframe-element-13><a href=#the-iframe-element>iframe</a></code> element's <a id=the-iframe-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s
<a href=#browsing-context id=the-iframe-element:browsing-context-2>browsing context</a> as the <a href=#source-browsing-context id=the-iframe-element:source-browsing-context>source browsing context</a>.</p>
<p>Furthermore, if the <a href=#active-document id=the-iframe-element:active-document-2>active document</a> of the element's <a href=#child-browsing-context id=the-iframe-element:child-browsing-context-3>child browsing
@@ -20136,10 +20127,10 @@
<li>Either:
<ul><li>The <a href=#browsing-context id=the-iframe-element:browsing-context-10>browsing context</a>'s <a href=#active-document id=the-iframe-element:active-document-6>active document</a> has the <a href=#same-origin id=the-iframe-element:same-origin-2>same
- origin</a> as the <code id=the-iframe-element:the-iframe-element-48><a href=#the-iframe-element>iframe</a></code> element's <code id=the-iframe-element:document-13><a href=#document>Document</a></code>, or
+ origin</a> as the <code id=the-iframe-element:the-iframe-element-48><a href=#the-iframe-element>iframe</a></code> element's <a id=the-iframe-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, or
<li>The <a href=#browsing-context id=the-iframe-element:browsing-context-11>browsing context</a>'s <a href=#active-document id=the-iframe-element:active-document-7>active document</a>'s <em><a href=http://dom.spec.whatwg.org/#concept-document-url id="the-iframe-element:the-document's-address-2" data-x-internal="the-document's-address">address</a></em> has the <a href=#same-origin id=the-iframe-element:same-origin-3>same origin</a> as the
- <code id=the-iframe-element:the-iframe-element-49><a href=#the-iframe-element>iframe</a></code> element's <code id=the-iframe-element:document-14><a href=#document>Document</a></code>, or
+ <code id=the-iframe-element:the-iframe-element-49><a href=#the-iframe-element>iframe</a></code> element's <a id=the-iframe-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, or
<li>The <a href=#browsing-context id=the-iframe-element:browsing-context-12>browsing context</a>'s <a href=#active-document id=the-iframe-element:active-document-8>active document</a> is <a href=#an-iframe-srcdoc-document id=the-iframe-element:an-iframe-srcdoc-document-4>an
<code>iframe</code> <code>srcdoc</code> document</a>.
@@ -20156,7 +20147,7 @@
parent browsing context</a> unless an <a href=#explicit-self-navigation-override id=the-iframe-element:explicit-self-navigation-override-2>explicit self-navigation override</a> is used
(<code>target="_self"</code>).<li><p>Media queries in the context of the <code id=the-iframe-element:the-iframe-element-51><a href=#the-iframe-element>iframe</a></code>'s <a href=#browsing-context id=the-iframe-element:browsing-context-14>browsing context</a>
(e.g. on <code id=the-iframe-element:attr-style-media><a href=#attr-style-media>media</a></code> attributes of <code id=the-iframe-element:the-style-element><a href=#the-style-element>style</a></code> elements in
- <code id=the-iframe-element:document-15><a href=#document>Document</a></code>s in that <code id=the-iframe-element:the-iframe-element-52><a href=#the-iframe-element>iframe</a></code>) must be evaluated with respect to the nearest
+ <code id=the-iframe-element:document-13><a href=#document>Document</a></code>s in that <code id=the-iframe-element:the-iframe-element-52><a href=#the-iframe-element>iframe</a></code>) must be evaluated with respect to the nearest
<a href=#ancestor-browsing-context id=the-iframe-element:ancestor-browsing-context-2>ancestor browsing context</a> that is not itself being <a href=#browsing-context-nested-through id=the-iframe-element:browsing-context-nested-through>nested through</a> an <code id=the-iframe-element:the-iframe-element-53><a href=#the-iframe-element>iframe</a></code> that is <a href=#in-seamless-mode id=the-iframe-element:in-seamless-mode-2>in seamless
mode</a>. <a href=#refsMQ>[MQ]</a><li><p>In a CSS-supporting user agent: the user agent must add all the style sheets that apply to
the <code id=the-iframe-element:the-iframe-element-54><a href=#the-iframe-element>iframe</a></code> element to the cascade of the <a href=#active-document id=the-iframe-element:active-document-9>active document</a> of the
@@ -20224,7 +20215,7 @@
<hr>
<p>The <dfn id=attr-iframe-allowfullscreen><code>allowfullscreen</code></dfn> attribute is a
- <a href=#boolean-attribute id=the-iframe-element:boolean-attribute-2>boolean attribute</a>. When specified, it indicates that <code id=the-iframe-element:document-16><a href=#document>Document</a></code> objects in
+ <a href=#boolean-attribute id=the-iframe-element:boolean-attribute-2>boolean attribute</a>. When specified, it indicates that <code id=the-iframe-element:document-14><a href=#document>Document</a></code> objects in
the <code id=the-iframe-element:the-iframe-element-70><a href=#the-iframe-element>iframe</a></code> element's <a href=#browsing-context id=the-iframe-element:browsing-context-17>browsing context</a> are to be allowed to use <code id=the-iframe-element:dom-element-requestfullscreen-2><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code> (if it's not blocked for other
reasons, e.g. there is another ancestor <code id=the-iframe-element:the-iframe-element-71><a href=#the-iframe-element>iframe</a></code> without this attribute set).</p>
@@ -20288,7 +20279,7 @@
content attribute.</p>
<p>The <dfn id=dom-iframe-contentdocument><code>contentDocument</code></dfn> IDL attribute
- must return the <code id=the-iframe-element:document-17><a href=#document>Document</a></code> object of the <a href=#active-document id=the-iframe-element:active-document-14>active document</a> of the
+ must return the <code id=the-iframe-element:document-15><a href=#document>Document</a></code> object of the <a href=#active-document id=the-iframe-element:active-document-14>active document</a> of the
<code id=the-iframe-element:the-iframe-element-81><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-28>nested browsing context</a>, if any and if its
<a href=#effective-script-origin id=the-iframe-element:effective-script-origin>effective script origin</a> is the <a href=#same-origin id=the-iframe-element:same-origin-4>same origin</a> as the <a href=#effective-script-origin id=the-iframe-element:effective-script-origin-2>effective script
origin</a> specified by the <a href=#incumbent-settings-object id=the-iframe-element:incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>
@@ -20363,7 +20354,7 @@
active</dfn> when the following conditions are all met simultaneously:</p>
<ul class=brief><li>The element is <a href=#in-a-document id=the-embed-element:in-a-document>in a <code>Document</code></a> or was <a href=#in-a-document id=the-embed-element:in-a-document-2>in a <code>Document</code></a> the last time the <a href=#event-loop id=the-embed-element:event-loop>event loop</a>
- reached step 1.<li>The element's <code id=the-embed-element:document-2><a href=#document>Document</a></code> is <a href=#fully-active id=the-embed-element:fully-active>fully active</a>.<li>The element has either a <code id=the-embed-element:attr-embed-src-6><a href=#attr-embed-src>src</a></code> attribute set or a <code id=the-embed-element:attr-embed-type-5><a href=#attr-embed-type>type</a></code> attribute set (or both).<li>The element's <code id=the-embed-element:attr-embed-src-7><a href=#attr-embed-src>src</a></code> attribute is either absent or its value
+ reached step 1.<li>The element's <a id=the-embed-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <a href=#fully-active id=the-embed-element:fully-active>fully active</a>.<li>The element has either a <code id=the-embed-element:attr-embed-src-6><a href=#attr-embed-src>src</a></code> attribute set or a <code id=the-embed-element:attr-embed-type-5><a href=#attr-embed-type>type</a></code> attribute set (or both).<li>The element's <code id=the-embed-element:attr-embed-src-7><a href=#attr-embed-src>src</a></code> attribute is either absent or its value
is not the empty string.<li>The element is not a descendant of a <a href=#media-element id=the-embed-element:media-element-2>media element</a>.<li>The element is not a descendant of an <code id=the-embed-element:the-object-element-2><a href=#the-object-element>object</a></code> element that is not showing its
<a href=#fallback-content id=the-embed-element:fallback-content-2>fallback content</a>.<li>The element is <a href=#being-rendered id=the-embed-element:being-rendered>being rendered</a>, or was <a href=#being-rendered id=the-embed-element:being-rendered-2>being rendered</a> the last time
the <a href=#event-loop id=the-embed-element:event-loop-2>event loop</a> reached step 1.</ul>
@@ -20432,7 +20423,7 @@
<li><p><a href=#navigate id=the-embed-element:navigate>Navigate</a> the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-4>nested browsing context</a> to
the fetched resource, with <a href=#replacement-enabled id=the-embed-element:replacement-enabled>replacement enabled</a>, and with the
- <code id=the-embed-element:the-embed-element-9><a href=#the-embed-element>embed</a></code> element's document's <a href=#browsing-context id=the-embed-element:browsing-context>browsing context</a> as the <a href=#source-browsing-context id=the-embed-element:source-browsing-context>source
+ <code id=the-embed-element:the-embed-element-9><a href=#the-embed-element>embed</a></code> element's <a id=the-embed-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#browsing-context id=the-embed-element:browsing-context>browsing context</a> as the <a href=#source-browsing-context id=the-embed-element:source-browsing-context>source
browsing context</a>. (The <code id=the-embed-element:attr-embed-src-10><a href=#attr-embed-src>src</a></code> attribute of the
<code id=the-embed-element:the-embed-element-10><a href=#the-embed-element>embed</a></code> element doesn't get updated if the browsing context gets further
navigated to other locations.)<li><p>The <code id=the-embed-element:the-embed-element-11><a href=#the-embed-element>embed</a></code> element now <a href=#represents id=the-embed-element:represents-2>represents</a> its associated
@@ -20456,7 +20447,7 @@
<p class=note>This allows servers to return data for plugins even with error responses (e.g.
HTTP 500 Internal Server Error codes can still contain plugin data).</p>
- <p>Fetching the resource must <a href=#delay-the-load-event id=the-embed-element:delay-the-load-event>delay the load event</a> of the element's document.</p>
+ <p>Fetching the resource must <a href=#delay-the-load-event id=the-embed-element:delay-the-load-event>delay the load event</a> of the element's <a id=the-embed-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
@@ -20484,7 +20475,7 @@
<a href=#plugin id=the-embed-element:plugin-10>plugin</a> that had been instantiated for that element must be unloaded.</p>
<p id=sandboxPluginEmbed>When a <a href=#plugin id=the-embed-element:plugin-11>plugin</a> is to be instantiated but it cannot be <a href=#concept-plugin-secure id=the-embed-element:concept-plugin-secure>secured</a> and the <a href=#sandboxed-plugins-browsing-context-flag id=the-embed-element:sandboxed-plugins-browsing-context-flag>sandboxed plugins browsing context
- flag</a> is set on the <code id=the-embed-element:the-embed-element-16><a href=#the-embed-element>embed</a></code> element's <code id=the-embed-element:document-3><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-embed-element:active-sandboxing-flag-set>active
+ flag</a> is set on the <code id=the-embed-element:the-embed-element-16><a href=#the-embed-element>embed</a></code> element's <a id=the-embed-element:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=the-embed-element:active-sandboxing-flag-set>active
sandboxing flag set</a>, then the user agent must not instantiate the <a href=#plugin id=the-embed-element:plugin-12>plugin</a>, and
must instead render the <code id=the-embed-element:the-embed-element-17><a href=#the-embed-element>embed</a></code> element in a manner that conveys that the
<a href=#plugin id=the-embed-element:plugin-13>plugin</a> was disabled. The user agent may offer the user the option to override the
@@ -20540,7 +20531,7 @@
<dl class=domintro><dt><var>doc</var> = <var>embed</var> . <code id=the-embed-element:dom-embed-getsvgdocument-2><a href=#dom-embed-getsvgdocument>getSVGDocument</a></code>()<dd>
- <p>Returns the <code id=the-embed-element:document-4><a href=#document>Document</a></code> object, in the case of <code id=the-embed-element:the-embed-element-27><a href=#the-embed-element>embed</a></code> being used to embed SVG images.</p>
+ <p>Returns the <code id=the-embed-element:document-2><a href=#document>Document</a></code> object, in the case of <code id=the-embed-element:the-embed-element-27><a href=#the-embed-element>embed</a></code> being used to embed SVG images.</p>
</dl>
@@ -20552,11 +20543,11 @@
<ol><li><p>If the element has no <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-8>nested browsing context</a>, then return null and abort
these steps.<li><p>If the <a href=#active-document id=the-embed-element:active-document-3>active document</a> of the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-9>nested browsing context</a> does not
have the <a href=#same-origin id=the-embed-element:same-origin>same</a> <a href=#effective-script-origin id=the-embed-element:effective-script-origin>effective script origin</a> as the
- <code id=the-embed-element:the-embed-element-28><a href=#the-embed-element>embed</a></code> element's <code id=the-embed-element:document-5><a href=#document>Document</a></code>, then return null and abort these
+ <code id=the-embed-element:the-embed-element-28><a href=#the-embed-element>embed</a></code> element's <a id=the-embed-element:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, then return null and abort these
steps.<li><p>If the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-10>nested browsing context</a>'s <a href=#active-document id=the-embed-element:active-document-4>active document</a> was created by
the <a href=#read-xml id=the-embed-element:read-xml>page load processing model for XML files</a> section because
<span>the sniffed type of the resource</span> in the <a href=#navigate id=the-embed-element:navigate-2>navigate</a> algorithm was
- <code id=the-embed-element:image/svg+xml><a href=#image/svg+xml>image/svg+xml</a></code>, then return that <code id=the-embed-element:document-6><a href=#document>Document</a></code> object and abort these
+ <code id=the-embed-element:image/svg+xml><a href=#image/svg+xml>image/svg+xml</a></code>, then return that <code id=the-embed-element:document-3><a href=#document>Document</a></code> object and abort these
steps.<li><p>Otherwise, return null.</ol>
<p>The IDL attributes <dfn id=dom-embed-src><code>src</code></dfn> and <dfn id=dom-embed-type><code>type</code></dfn> each must <a href=#reflect id=the-embed-element:reflect>reflect</a> the respective
@@ -20670,7 +20661,7 @@
<li>the element is not on the <a href=#stack-of-open-elements id=the-object-element:stack-of-open-elements-2>stack of open elements</a> of an <a href=#html-parser id=the-object-element:html-parser-2>HTML parser</a>
or <a href=#xml-parser id=the-object-element:xml-parser-2>XML parser</a>, and it is either <a href=#insert-an-element-into-a-document id=the-object-element:insert-an-element-into-a-document>inserted into a document</a> or <a href=#remove-an-element-from-a-document id=the-object-element:remove-an-element-from-a-document>removed from a document</a>,
- <li>the element's <code id=the-object-element:document-2><a href=#document>Document</a></code> changes whether it is <a href=#fully-active id=the-object-element:fully-active>fully active</a>,
+ <li>the element's <a id=the-object-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> changes whether it is <a href=#fully-active id=the-object-element:fully-active>fully active</a>,
<li>one of the element's ancestor <code id=the-object-element:the-object-element-4><a href=#the-object-element>object</a></code> elements changes to or from showing its
<a href=#fallback-content id=the-object-element:fallback-content>fallback content</a>,
@@ -20691,7 +20682,7 @@
<p>...the user agent must <a href=#queue-a-task id=the-object-element:queue-a-task>queue a task</a> to run the following steps to (re)determine
what the <code id=the-object-element:the-object-element-5><a href=#the-object-element>object</a></code> element represents. This <a href=#concept-task id=the-object-element:concept-task>task</a>
being <a href=#queue-a-task id=the-object-element:queue-a-task-2>queued</a> or actively running must <a href=#delay-the-load-event id=the-object-element:delay-the-load-event>delay the load
- event</a> of the element's document. </p>
+ event</a> of the element's <a id=the-object-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>. </p>
<ol><li>
@@ -20707,7 +20698,7 @@
<p>If the element has an ancestor <a href=#media-element id=the-object-element:media-element>media element</a>, or has an ancestor
<code id=the-object-element:the-object-element-7><a href=#the-object-element>object</a></code> element that is <em>not</em> showing its <a href=#fallback-content id=the-object-element:fallback-content-4>fallback content</a>, or
if the element is not <a href=#in-a-document id=the-object-element:in-a-document>in a <code>Document</code></a> with a
- <a href=#browsing-context id=the-object-element:browsing-context>browsing context</a>, or if the element's <code id=the-object-element:document-3><a href=#document>Document</a></code> is not <a href=#fully-active id=the-object-element:fully-active-2>fully
+ <a href=#browsing-context id=the-object-element:browsing-context>browsing context</a>, or if the element's <a id=the-object-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-object-element:fully-active-2>fully
active</a>, or if the element is still in the <a href=#stack-of-open-elements id=the-object-element:stack-of-open-elements-3>stack of open elements</a> of an
<a href=#html-parser id=the-object-element:html-parser-3>HTML parser</a> or <a href=#xml-parser id=the-object-element:xml-parser-3>XML parser</a>, or if the element is not <a href=#being-rendered id=the-object-element:being-rendered-2>being
rendered</a>, then jump to the step below labeled <i>fallback</i>.</p>
@@ -20740,7 +20731,7 @@
<a href=#browsing-context-scope-origin id=the-object-element:browsing-context-scope-origin>browsing context scope origin</a> if it has one.</p>
- <p>Fetching the resource must <a href=#delay-the-load-event id=the-object-element:delay-the-load-event-2>delay the load event</a> of the element's document
+ <p>Fetching the resource must <a href=#delay-the-load-event id=the-object-element:delay-the-load-event-2>delay the load event</a> of the element's <a id=the-object-element:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>
until the <a href=#concept-task id=the-object-element:concept-task-2>task</a> that is <a href=#queue-a-task id=the-object-element:queue-a-task-3>queued</a> by the <a href=#networking-task-source id=the-object-element:networking-task-source>networking task source</a> once the resource has been
<a href=#fetch id=the-object-element:fetch-2>fetched</a> (defined next) has been run.</p>
@@ -20919,7 +20910,7 @@
<p>If the <a href=#url id=the-object-element:url-3>URL</a> of the given resource is not <code id=the-object-element:about:blank><a href=#about:blank>about:blank</a></code>, the
element's <a href=#nested-browsing-context id=the-object-element:nested-browsing-context-5>nested browsing context</a> must then be <a href=#navigate id=the-object-element:navigate>navigated</a> to that resource, with
- <a href=#replacement-enabled id=the-object-element:replacement-enabled>replacement enabled</a>, and with the <code id=the-object-element:the-object-element-14><a href=#the-object-element>object</a></code> element's document's
+ <a href=#replacement-enabled id=the-object-element:replacement-enabled>replacement enabled</a>, and with the <code id=the-object-element:the-object-element-14><a href=#the-object-element>object</a></code> element's <a id=the-object-element:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s
<a href=#browsing-context id=the-object-element:browsing-context-2>browsing context</a> as the <a href=#source-browsing-context id=the-object-element:source-browsing-context>source browsing context</a>. (The <code id=the-object-element:attr-object-data-11><a href=#attr-object-data>data</a></code> attribute of the <code id=the-object-element:the-object-element-15><a href=#the-object-element>object</a></code> element doesn't
get updated if the browsing context gets further navigated to other locations.)</p>
@@ -21001,7 +20992,7 @@
<p id=sandboxPluginObject>Plugins are considered sandboxed for the purpose of an
<code id=the-object-element:the-object-element-24><a href=#the-object-element>object</a></code> element if the <a href=#sandboxed-plugins-browsing-context-flag id=the-object-element:sandboxed-plugins-browsing-context-flag>sandboxed plugins browsing context flag</a> is set on
- the <code id=the-object-element:the-object-element-25><a href=#the-object-element>object</a></code> element's <code id=the-object-element:document-4><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-object-element:active-sandboxing-flag-set>active sandboxing flag
+ the <code id=the-object-element:the-object-element-25><a href=#the-object-element>object</a></code> element's <a id=the-object-element:node-document-6 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=the-object-element:active-sandboxing-flag-set>active sandboxing flag
set</a>.</p>
<p>Due to the algorithm above, the contents of <code id=the-object-element:the-object-element-26><a href=#the-object-element>object</a></code> elements act as <a href=#fallback-content id=the-object-element:fallback-content-6>fallback
@@ -21054,7 +21045,7 @@
<a href=#reflect id=the-object-element:reflect-3>reflect</a> the <code id=the-object-element:attr-hyperlink-usemap-4><a href=#attr-hyperlink-usemap>usemap</a></code> content attribute.</p>
<p>The <dfn id=dom-object-contentdocument><code>contentDocument</code></dfn> IDL attribute
- must return the <code id=the-object-element:document-5><a href=#document>Document</a></code> object of the <a href=#active-document id=the-object-element:active-document-3>active document</a> of the
+ must return the <code id=the-object-element:document-2><a href=#document>Document</a></code> object of the <a href=#active-document id=the-object-element:active-document-3>active document</a> of the
<code id=the-object-element:the-object-element-40><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context id=the-object-element:nested-browsing-context-11>nested browsing context</a>, if any and if its
<a href=#effective-script-origin id=the-object-element:effective-script-origin>effective script origin</a> is the <a href=#same-origin id=the-object-element:same-origin>same origin</a> as the <a href=#effective-script-origin id=the-object-element:effective-script-origin-2>effective script
origin</a> specified by the <a href=#incumbent-settings-object id=the-object-element:incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>
@@ -21261,8 +21252,8 @@
or if the attribute is absent, then there is no <a href=#poster-frame id=the-video-element:poster-frame-2>poster frame</a>; abort these
steps.<li><p><a href=#resolve-a-url id=the-video-element:resolve-a-url>Resolve</a> the <code id=the-video-element:attr-video-poster-4><a href=#attr-video-poster>poster</a></code> attribute's value relative to the element. If this fails,
then there is no <a href=#poster-frame id=the-video-element:poster-frame-3>poster frame</a>; abort these steps.<li><p><a href=#fetch id=the-video-element:fetch>Fetch</a> the resulting <a href=#absolute-url id=the-video-element:absolute-url>absolute URL</a>, from the element's
- <code id=the-video-element:document><a href=#document>Document</a></code>'s <a href=#origin-2 id=the-video-element:origin-2>origin</a>. This must <a href=#delay-the-load-event id=the-video-element:delay-the-load-event>delay the load event</a> of the
- element's document.<li><p>If an image is thus obtained, the <a href=#poster-frame id=the-video-element:poster-frame-4>poster frame</a> is that image. Otherwise,
+ <a id=the-video-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#origin-2 id=the-video-element:origin-2>origin</a>. This must <a href=#delay-the-load-event id=the-video-element:delay-the-load-event>delay the load event</a> of the
+ element's <a id=the-video-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.<li><p>If an image is thus obtained, the <a href=#poster-frame id=the-video-element:poster-frame-4>poster frame</a> is that image. Otherwise,
there is no <a href=#poster-frame id=the-video-element:poster-frame-5>poster frame</a>.</ol>
@@ -21516,7 +21507,7 @@
attribute set to the literal value "<code id=the-audio-element:attr-media-preload-auto><a href=#attr-media-preload-auto>auto</a></code>". If the
<var>src</var> argument is present, the object created must be created with its <code id=the-audio-element:attr-media-src-6><a href=#attr-media-src>src</a></code> content attribute set to the provided value (this will <a href=#concept-media-load-algorithm-at-creation>cause the user agent to invoke</a> the object's
<a href=#concept-media-load-algorithm id=the-audio-element:concept-media-load-algorithm>resource selection algorithm</a> before returning).
- The element's document must be the <a href=#active-document id=the-audio-element:active-document>active document</a> of the <a href=#browsing-context id=the-audio-element:browsing-context>browsing
+ The element's <a id=the-audio-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> must be the <a href=#active-document id=the-audio-element:active-document>active document</a> of the <a href=#browsing-context id=the-audio-element:browsing-context>browsing
context</a> of the <code id=the-audio-element:window><a href=#window>Window</a></code> object on which the interface object of the invoked
constructor is found.</p>
@@ -22392,7 +22383,7 @@
resource</var>'s <a href=#absolute-url id=loading-the-media-resource:absolute-url-5>absolute URL</a>, with the <i>mode</i> being the state of the
<a href=#media-element id=loading-the-media-resource:media-element-26>media element</a>'s <code id=loading-the-media-resource:attr-media-crossorigin><a href=#attr-media-crossorigin>crossorigin</a></code> content
attribute, the <i>origin</i> being the <a href=#origin-2 id=loading-the-media-resource:origin-2>origin</a> of the <a href=#media-element id=loading-the-media-resource:media-element-27>media element</a>'s
- <code id=loading-the-media-resource:document><a href=#document>Document</a></code>, and the <i>default origin behaviour</i> set to <i>taint</i>.</p>
+ <a id=loading-the-media-resource:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, and the <i>default origin behaviour</i> set to <i>taint</i>.</p>
<p>The resource obtained in this fashion, if any, contains the <a href=#media-data id=loading-the-media-resource:media-data>media data</a>. It can
be <a href=#cors-same-origin id=loading-the-media-resource:cors-same-origin>CORS-same-origin</a> or <a href=#cors-cross-origin id=loading-the-media-resource:cors-cross-origin>CORS-cross-origin</a>; this affects whether
@@ -23178,7 +23169,7 @@
<p>If the <a href=#autoplaying-flag id=ready-states:autoplaying-flag>autoplaying flag</a> is true, and the <code id=ready-states:dom-media-paused-3><a href=#dom-media-paused>paused</a></code> attribute is true, and the <a href=#media-element id=ready-states:media-element-6>media element</a>
has an <code id=ready-states:attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute specified, and the
- <a href=#media-element id=ready-states:media-element-7>media element</a>'s <code id=ready-states:document><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=ready-states:active-sandboxing-flag-set>active sandboxing flag set</a>
+ <a href=#media-element id=ready-states:media-element-7>media element</a>'s <a id=ready-states:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=ready-states:active-sandboxing-flag-set>active sandboxing flag set</a>
does not have the <a href=#sandboxed-automatic-features-browsing-context-flag id=ready-states:sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing context flag</a> set, then
the user agent may also run the following substeps:</p>
@@ -23676,7 +23667,7 @@
of a <a href=#text-track id=playing-the-media-resource:text-track-17>text track</a> only if it is listed in the <a href=#text-track-list-of-cues id=playing-the-media-resource:text-track-list-of-cues-4>text track list of cues</a>, not
merely if it is associated with the <a href=#text-track id=playing-the-media-resource:text-track-18>text track</a>.</p>
- <p class=note>If the <a href=#media-element id=playing-the-media-resource:media-element-74>media element</a>'s <code id=playing-the-media-resource:document-3><a href=#document>Document</a></code> stops being a
+ <p class=note>If the <a href=#media-element id=playing-the-media-resource:media-element-74>media element</a>'s <a id=playing-the-media-resource:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> stops being a
<a href=#fully-active id=playing-the-media-resource:fully-active-2>fully active</a> document, then the playback will <a href=#media-playback>stop</a>
until the document is active again.</p>
@@ -23684,7 +23675,7 @@
from a <code>Document</code></a>, the user agent must run the following steps:</p>
<ol><li><p>Asynchronously <a href=#await-a-stable-state id=playing-the-media-resource:await-a-stable-state-2>await a stable state</a>, allowing the <a href=#concept-task id=playing-the-media-resource:concept-task-13>task</a> that removed the <a href=#media-element id=playing-the-media-resource:media-element-76>media element</a> from the
- <code id=playing-the-media-resource:document-4><a href=#document>Document</a></code> to continue. The <a href=#synchronous-section id=playing-the-media-resource:synchronous-section>synchronous section</a> consists of all the
+ <code id=playing-the-media-resource:document-3><a href=#document>Document</a></code> to continue. The <a href=#synchronous-section id=playing-the-media-resource:synchronous-section>synchronous section</a> consists of all the
remaining steps of this algorithm. (Steps in the <a href=#synchronous-section id=playing-the-media-resource:synchronous-section-2>synchronous section</a> are marked with
⌛.)<li><p>⌛ If the <a href=#media-element id=playing-the-media-resource:media-element-77>media element</a> is <a href=#in-a-document id=playing-the-media-resource:in-a-document-2>in a <code>Document</code></a>,
abort these steps.<li><p>⌛ Run the <a href=#internal-pause-steps id=playing-the-media-resource:internal-pause-steps-2>internal pause steps</a> for the <a href=#media-element id=playing-the-media-resource:media-element-78>media element</a>.</p>
@@ -24772,7 +24763,7 @@
is being removed, then jump to the <i>update controllers</i> step below.<li>
<p>If there is another <a href=#media-element id=assigning-a-media-controller-declaratively:media-element-7>media element</a> whose <code id=assigning-a-media-controller-declaratively:document><a href=#document>Document</a></code> is the same as
- <var>m</var>'s <code id=assigning-a-media-controller-declaratively:document-2><a href=#document>Document</a></code> (even if one or both of these elements are not
+ <var>m</var>'s <a id=assigning-a-media-controller-declaratively:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> (even if one or both of these elements are not
actually <a href=#in-a-document id=assigning-a-media-controller-declaratively:in-a-document><em>in</em> the <code>Document</code></a>), and which
also has a <code id=assigning-a-media-controller-declaratively:attr-media-mediagroup-4><a href=#attr-media-mediagroup>mediagroup</a></code> attribute, and whose <code id=assigning-a-media-controller-declaratively:attr-media-mediagroup-5><a href=#attr-media-mediagroup>mediagroup</a></code> attribute has the same value as the new value of
<var>m</var>'s <code id=assigning-a-media-controller-declaratively:attr-media-mediagroup-6><a href=#attr-media-mediagroup>mediagroup</a></code> attribute, then
@@ -25361,7 +25352,7 @@
<p>If <var>URL</var> is not the empty string, perform a <a href=#potentially-cors-enabled-fetch id=sourcing-out-of-band-text-tracks:potentially-cors-enabled-fetch>potentially CORS-enabled
fetch</a> of <var>URL</var>, with the <i>mode</i> being <var>CORS mode</var>, the <i>origin</i> being the <a href=#origin-2 id=sourcing-out-of-band-text-tracks:origin-2>origin</a> of the
- <code id=sourcing-out-of-band-text-tracks:the-track-element-18><a href=#the-track-element>track</a></code> element's <code id=sourcing-out-of-band-text-tracks:document><a href=#document>Document</a></code>, and the <i>default origin behaviour</i> set
+ <code id=sourcing-out-of-band-text-tracks:the-track-element-18><a href=#the-track-element>track</a></code> element's <a id=sourcing-out-of-band-text-tracks:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, and the <i>default origin behaviour</i> set
to <i>fail</i>.</p>
<p>The resource obtained in this fashion, if any, contains the text track data. If any data is
@@ -27120,7 +27111,7 @@
<p>The <a href=#activation-behavior id=the-area-element:activation-behavior>activation behavior</a> of <code id=the-area-element:the-area-element-13><a href=#the-area-element>area</a></code> elements is to run the following
steps:</p>
- <ol><li><p>If the <code id=the-area-element:the-area-element-14><a href=#the-area-element>area</a></code> element's <code id=the-area-element:document><a href=#document>Document</a></code> is not <a href=#fully-active id=the-area-element:fully-active>fully active</a>,
+ <ol><li><p>If the <code id=the-area-element:the-area-element-14><a href=#the-area-element>area</a></code> element's <a id=the-area-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-area-element:fully-active>fully active</a>,
then abort these steps.<li>
<p>If the <code id=the-area-element:the-area-element-15><a href=#the-area-element>area</a></code> element has a <code id=the-area-element:attr-hyperlink-download-4><a href=#attr-hyperlink-download>download</a></code>
@@ -29109,7 +29100,7 @@
<li>
<p>If <var>rowspan</var> is zero and the <code id=forming-a-table:the-table-element-13><a href=#the-table-element>table</a></code> element's
- <code id=forming-a-table:document><a href=#document>Document</a></code> is not set to <a href=#quirks-mode id=forming-a-table:quirks-mode>quirks mode</a>, then let <var>cell grows
+ <a id=forming-a-table:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not set to <a href=#quirks-mode id=forming-a-table:quirks-mode>quirks mode</a>, then let <var>cell grows
downward</var> be true, and set <var>rowspan</var> to 1. Otherwise, let <var>cell grows downward</var> be false.</p>
<li>
@@ -35638,7 +35629,7 @@
<p>If the element is <i id="submit-button-state-(type=submit):concept-fe-mutable"><a href=#concept-fe-mutable>mutable</a></i>, then the element's
<a href=#activation-behavior id="submit-button-state-(type=submit):activation-behavior">activation behavior</a> is as follows: if the element has a <a href=#form-owner id="submit-button-state-(type=submit):form-owner">form owner</a>,
- and the element's <code id="submit-button-state-(type=submit):document"><a href=#document>Document</a></code> is <a href=#fully-active id="submit-button-state-(type=submit):fully-active">fully active</a>,
+ and the element's <a id="submit-button-state-(type=submit):node-document" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <a href=#fully-active id="submit-button-state-(type=submit):fully-active">fully active</a>,
<a href=#concept-form-submit id="submit-button-state-(type=submit):concept-form-submit">submit</a> the <a href=#form-owner id="submit-button-state-(type=submit):form-owner-2">form owner</a> from the
<code id="submit-button-state-(type=submit):the-input-element-3"><a href=#the-input-element>input</a></code> element; otherwise, do nothing.</p>
@@ -35754,7 +35745,7 @@
the <a href="#image-button-state-(type=image)" id="image-button-state-(type=image):image-button-state-(type=image)-5">Image Button</a> state, and the <code id="image-button-state-(type=image):attr-input-src-6"><a href=#attr-input-src>src</a></code> attribute is set or changed.</ul>
- <p>Fetching the image must <a href=#delay-the-load-event id="image-button-state-(type=image):delay-the-load-event">delay the load event</a> of the element's document until the
+ <p>Fetching the image must <a href=#delay-the-load-event id="image-button-state-(type=image):delay-the-load-event">delay the load event</a> of the element's <a id="image-button-state-(type=image):node-document" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> until the
<a href=#concept-task id="image-button-state-(type=image):concept-task">task</a> that is <a href=#queue-a-task id="image-button-state-(type=image):queue-a-task">queued</a> by the
<a href=#networking-task-source id="image-button-state-(type=image):networking-task-source">networking task source</a> once the resource has been <a href=#fetch id="image-button-state-(type=image):fetch-2">fetched</a>
(defined below) has been run.</p>
@@ -35800,19 +35791,19 @@
then: The element <a href=#represents id="image-button-state-(type=image):represents-2">represents</a> a control for selecting a <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate">coordinate</a> from the image specified by the
<code id="image-button-state-(type=image):attr-input-src-8"><a href=#attr-input-src>src</a></code> attribute; if the element is <i id="image-button-state-(type=image):concept-fe-mutable"><a href=#concept-fe-mutable>mutable</a></i>, the user agent should allow the user to select this <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate-2">coordinate</a>, and the element's <a href=#activation-behavior id="image-button-state-(type=image):activation-behavior">activation
behavior</a> is as follows: if the element has a <a href=#form-owner id="image-button-state-(type=image):form-owner">form owner</a>, and the element's
- <code id="image-button-state-(type=image):document"><a href=#document>Document</a></code> is <a href=#fully-active id="image-button-state-(type=image):fully-active">fully active</a>, take the user's selected <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate-3">coordinate</a>, and <a href=#concept-form-submit id="image-button-state-(type=image):concept-form-submit">submit</a> the <code id="image-button-state-(type=image):the-input-element-10"><a href=#the-input-element>input</a></code> element's <a href=#form-owner id="image-button-state-(type=image):form-owner-2">form owner</a>
+ <a id="image-button-state-(type=image):node-document-2" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <a href=#fully-active id="image-button-state-(type=image):fully-active">fully active</a>, take the user's selected <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate-3">coordinate</a>, and <a href=#concept-form-submit id="image-button-state-(type=image):concept-form-submit">submit</a> the <code id="image-button-state-(type=image):the-input-element-10"><a href=#the-input-element>input</a></code> element's <a href=#form-owner id="image-button-state-(type=image):form-owner-2">form owner</a>
from the <code id="image-button-state-(type=image):the-input-element-11"><a href=#the-input-element>input</a></code> element. If the user activates the control without explicitly
selecting a coordinate, then the coordinate (0,0) must be assumed.</p>
<p>Otherwise, the element <a href=#represents id="image-button-state-(type=image):represents-3">represents</a> a submit button whose label is given by the
value of the <code id="image-button-state-(type=image):attr-input-alt-2"><a href=#attr-input-alt>alt</a></code> attribute; if the element is <i id="image-button-state-(type=image):concept-fe-mutable-2"><a href=#concept-fe-mutable>mutable</a></i>, then the element's <a href=#activation-behavior id="image-button-state-(type=image):activation-behavior-2">activation behavior</a> is as
- follows: if the element has a <a href=#form-owner id="image-button-state-(type=image):form-owner-3">form owner</a>, and the element's <code id="image-button-state-(type=image):document-2"><a href=#document>Document</a></code> is
+ follows: if the element has a <a href=#form-owner id="image-button-state-(type=image):form-owner-3">form owner</a>, and the element's <a id="image-button-state-(type=image):node-document-3" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
<a href=#fully-active id="image-button-state-(type=image):fully-active-2">fully active</a>, set the <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate-4">selected
coordinate</a> to (0,0), and <a href=#concept-form-submit id="image-button-state-(type=image):concept-form-submit-2">submit</a> the
<code id="image-button-state-(type=image):the-input-element-12"><a href=#the-input-element>input</a></code> element's <a href=#form-owner id="image-button-state-(type=image):form-owner-4">form owner</a> from the <code id="image-button-state-(type=image):the-input-element-13"><a href=#the-input-element>input</a></code> element.</p>
<p>In either case, if the element is <i id="image-button-state-(type=image):concept-fe-mutable-3"><a href=#concept-fe-mutable>mutable</a></i> but has no
- <a href=#form-owner id="image-button-state-(type=image):form-owner-5">form owner</a> or the element's <code id="image-button-state-(type=image):document-3"><a href=#document>Document</a></code> is not <a href=#fully-active id="image-button-state-(type=image):fully-active-3">fully active</a>,
+ <a href=#form-owner id="image-button-state-(type=image):form-owner-5">form owner</a> or the element's <a id="image-button-state-(type=image):node-document-4" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id="image-button-state-(type=image):fully-active-3">fully active</a>,
then its <a href=#activation-behavior id="image-button-state-(type=image):activation-behavior-3">activation behavior</a> must be to do nothing. If the element is not <i id="image-button-state-(type=image):concept-fe-mutable-4"><a href=#concept-fe-mutable>mutable</a></i>, it has no <a href=#activation-behavior id="image-button-state-(type=image):activation-behavior-4">activation behavior</a>.</p>
<p>The <dfn id=concept-input-type-image-coordinate>selected coordinate</dfn> must consist of
@@ -35960,7 +35951,7 @@
<p>If the element is <i id="reset-button-state-(type=reset):concept-fe-mutable"><a href=#concept-fe-mutable>mutable</a></i>, then the element's
<a href=#activation-behavior id="reset-button-state-(type=reset):activation-behavior">activation behavior</a>, if the element has a <a href=#form-owner id="reset-button-state-(type=reset):form-owner">form owner</a> and the element's
- <code id="reset-button-state-(type=reset):document"><a href=#document>Document</a></code> is <a href=#fully-active id="reset-button-state-(type=reset):fully-active">fully active</a>, is to <a href=#concept-form-reset id="reset-button-state-(type=reset):concept-form-reset">reset</a> the <a href=#form-owner id="reset-button-state-(type=reset):form-owner-2">form owner</a>; otherwise, it is to do
+ <a id="reset-button-state-(type=reset):node-document" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <a href=#fully-active id="reset-button-state-(type=reset):fully-active">fully active</a>, is to <a href=#concept-form-reset id="reset-button-state-(type=reset):concept-form-reset">reset</a> the <a href=#form-owner id="reset-button-state-(type=reset):form-owner-2">form owner</a>; otherwise, it is to do
nothing.</p>
<p>If the element is not <i id="reset-button-state-(type=reset):concept-fe-mutable-2"><a href=#concept-fe-mutable>mutable</a></i>, it has no <a href=#activation-behavior id="reset-button-state-(type=reset):activation-behavior-2">activation
@@ -37287,9 +37278,9 @@
its <a href=#activation-behavior id=the-button-element:activation-behavior>activation behavior</a> element is to run the steps defined in the following list for
the current state of the element's <code id=the-button-element:attr-button-type-4><a href=#attr-button-type>type</a></code> attribute:</p>
- <dl><dt> <dfn id=attr-button-type-submit-state>Submit Button</dfn> <dd><p>If the element has a <a href=#form-owner id=the-button-element:form-owner>form owner</a> and the element's <code id=the-button-element:document><a href=#document>Document</a></code> is
+ <dl><dt> <dfn id=attr-button-type-submit-state>Submit Button</dfn> <dd><p>If the element has a <a href=#form-owner id=the-button-element:form-owner>form owner</a> and the element's <a id=the-button-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
<a href=#fully-active id=the-button-element:fully-active>fully active</a>, the element must <a href=#concept-form-submit id=the-button-element:concept-form-submit>submit</a> the
- <a href=#form-owner id=the-button-element:form-owner-2>form owner</a> from the <code id=the-button-element:the-button-element-3><a href=#the-button-element>button</a></code> element.<dt> <dfn id=attr-button-type-reset-state>Reset Button</dfn> <dd><p>If the element has a <a href=#form-owner id=the-button-element:form-owner-3>form owner</a> and the element's <code id=the-button-element:document-2><a href=#document>Document</a></code> is
+ <a href=#form-owner id=the-button-element:form-owner-2>form owner</a> from the <code id=the-button-element:the-button-element-3><a href=#the-button-element>button</a></code> element.<dt> <dfn id=attr-button-type-reset-state>Reset Button</dfn> <dd><p>If the element has a <a href=#form-owner id=the-button-element:form-owner-3>form owner</a> and the element's <a id=the-button-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
<a href=#fully-active id=the-button-element:fully-active-2>fully active</a>, the element must <a href=#concept-form-reset id=the-button-element:concept-form-reset>reset</a> the
<a href=#form-owner id=the-button-element:form-owner-4>form owner</a>.<dt> <dfn id=attr-button-type-button-state>Button</dfn>
@@ -37300,7 +37291,7 @@
<p>The element must follow these steps:</p>
<ol><li><p>If the <code id=the-button-element:the-button-element-4><a href=#the-button-element>button</a></code> is not <a href=#being-rendered id=the-button-element:being-rendered>being rendered</a>, abort these
- steps.<li><p>If the <code id=the-button-element:the-button-element-5><a href=#the-button-element>button</a></code> element's <code id=the-button-element:document-3><a href=#document>Document</a></code> is not <a href=#fully-active id=the-button-element:fully-active-3>fully
+ steps.<li><p>If the <code id=the-button-element:the-button-element-5><a href=#the-button-element>button</a></code> element's <a id=the-button-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-button-element:fully-active-3>fully
active</a>, abort these steps.<li><p>Let <var>menu</var> be the element's <a href=#designated-pop-up-menu id=the-button-element:designated-pop-up-menu-2>designated pop-up menu</a>, if
any. If there isn't one, then abort these steps.<li><p><a href=#concept-event-fire id=the-button-element:concept-event-fire>Fire</a> a <a href=#concept-events-trusted id=the-button-element:concept-events-trusted>trusted</a> event with the name <code id=the-button-element:event-show><a href=#event-show>show</a></code> at <var>menu</var>, using the <code id=the-button-element:relatedevent><a href=#relatedevent>RelatedEvent</a></code>
interface, with the <code id=the-button-element:dom-relatedevent-relatedtarget><a href=#dom-relatedevent-relatedtarget>relatedTarget</a></code> attribute
@@ -38118,7 +38109,7 @@
no children. If the <var>value</var> argument is present, the new object must have a
<code id=the-option-element:attr-option-value-7><a href=#attr-option-value>value</a></code> attribute set with the value of the argument as its
value. If the <var>defaultSelected</var> argument is true, the new object must have a
- <code id=the-option-element:attr-option-selected-10><a href=#attr-option-selected>selected</a></code> attribute set with no value. If the <var>selected</var> argument is true, the new object must have its <a href=#concept-option-selectedness id=the-option-element:concept-option-selectedness-9>selectedness</a> set to true; otherwise the <a href=#concept-option-selectedness id=the-option-element:concept-option-selectedness-10>selectedness</a> must be set to false, even if the <var>defaultSelected</var> argument is true. The element's document must be the <a href=#active-document id=the-option-element:active-document>active
+ <code id=the-option-element:attr-option-selected-10><a href=#attr-option-selected>selected</a></code> attribute set with no value. If the <var>selected</var> argument is true, the new object must have its <a href=#concept-option-selectedness id=the-option-element:concept-option-selectedness-9>selectedness</a> set to true; otherwise the <a href=#concept-option-selectedness id=the-option-element:concept-option-selectedness-10>selectedness</a> must be set to false, even if the <var>defaultSelected</var> argument is true. The element's <a id=the-option-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> must be the <a href=#active-document id=the-option-element:active-document>active
document</a> of the <a href=#browsing-context id=the-option-element:browsing-context>browsing context</a> of the <code id=the-option-element:window><a href=#window>Window</a></code> object on which
the interface object of the invoked constructor is found.</p>
@@ -39992,15 +39983,15 @@
is <a href=#insert-an-element-into-a-document id=autofocusing-a-form-control:-the-autofocus-attribute:insert-an-element-into-a-document>inserted into a document</a>, user agents
should run the following steps:</p>
- <ol><li><p>Let <var>target</var> be the element's <code id=autofocusing-a-form-control:-the-autofocus-attribute:document><a href=#document>Document</a></code>.<li><p>If <var>target</var> has no <a href=#browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:browsing-context>browsing context</a>, abort these
+ <ol><li><p>Let <var>target</var> be the element's <a id=autofocusing-a-form-control:-the-autofocus-attribute:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.<li><p>If <var>target</var> has no <a href=#browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:browsing-context>browsing context</a>, abort these
steps.<li><p>If <var>target</var>'s <a href=#browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:browsing-context-2>browsing context</a> has no <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context>top-level
browsing context</a> (e.g. it is a <a href=#nested-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:nested-browsing-context>nested browsing context</a> with no <a href=#parent-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:parent-browsing-context>parent
browsing context</a>), abort these steps.<li><p>If <var>target</var>'s <a href=#active-sandboxing-flag-set id=autofocusing-a-form-control:-the-autofocus-attribute:active-sandboxing-flag-set>active sandboxing flag set</a> has the
- <a href=#sandboxed-automatic-features-browsing-context-flag id=autofocusing-a-form-control:-the-autofocus-attribute:sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing context flag</a>, abort these steps.<li><p>If <var>target</var>'s <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2>origin</a> is not the <a href=#same-origin id=autofocusing-a-form-control:-the-autofocus-attribute:same-origin>same</a> as the <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2-2>origin</a> of the <code id=autofocusing-a-form-control:-the-autofocus-attribute:document-2><a href=#document>Document</a></code> of the currently
+ <a href=#sandboxed-automatic-features-browsing-context-flag id=autofocusing-a-form-control:-the-autofocus-attribute:sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing context flag</a>, abort these steps.<li><p>If <var>target</var>'s <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2>origin</a> is not the <a href=#same-origin id=autofocusing-a-form-control:-the-autofocus-attribute:same-origin>same</a> as the <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2-2>origin</a> of the <a id=autofocusing-a-form-control:-the-autofocus-attribute:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the currently
focused element in <var>target</var>'s <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-2>top-level browsing context</a>, abort
these steps.<li><p>If <var>target</var>'s <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2-3>origin</a> is not the <a href=#same-origin id=autofocusing-a-form-control:-the-autofocus-attribute:same-origin-2>same</a> as the <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2-4>origin</a> of the <a href=#active-document id=autofocusing-a-form-control:-the-autofocus-attribute:active-document>active document</a> of <var>target</var>'s <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-3>top-level browsing context</a>, abort these steps.<li><p>If the user agent has already reached the last step of this list of steps in response to
an element being <a href=#insert-an-element-into-a-document id=autofocusing-a-form-control:-the-autofocus-attribute:insert-an-element-into-a-document-2>inserted</a> into a
- <code id=autofocusing-a-form-control:-the-autofocus-attribute:document-3><a href=#document>Document</a></code> whose <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-4>top-level browsing context</a>'s <a href=#active-document id=autofocusing-a-form-control:-the-autofocus-attribute:active-document-2>active
+ <code id=autofocusing-a-form-control:-the-autofocus-attribute:document><a href=#document>Document</a></code> whose <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-4>top-level browsing context</a>'s <a href=#active-document id=autofocusing-a-form-control:-the-autofocus-attribute:active-document-2>active
document</a> is the same as <var>target</var>'s <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-5>top-level browsing
context</a>'s <a href=#active-document id=autofocusing-a-form-control:-the-autofocus-attribute:active-document-3>active document</a>, abort these steps.<li><p>If the user has indicated (for example, by starting to type in a form control) that he
does not wish focus to be changed, then optionally abort these steps.<li><p><a href=#queue-a-task id=autofocusing-a-form-control:-the-autofocus-attribute:queue-a-task>Queue a task</a> that runs the <a href=#focusing-steps id=autofocusing-a-form-control:-the-autofocus-attribute:focusing-steps>focusing steps</a> for the element. User
@@ -41324,10 +41315,10 @@
<p>If any of the following conditions are met, then <a href=#queue-a-task id=user-interface-for-bulk-autofill:queue-a-task>queue a task</a> to <a href=#fail-the-autofill-request id=user-interface-for-bulk-autofill:fail-the-autofill-request>fail the
autofill request</a> on <var>form</var> with the reason "<code id=user-interface-for-bulk-autofill:dom-autocompleteerrorreason-disabled><a href=#dom-autocompleteerrorreason-disabled>disabled</a></code>", and abort these steps:</p>
- <ul><li><p>the algorithm is not <a href=#allowed-to-show-a-popup id=user-interface-for-bulk-autofill:allowed-to-show-a-popup>allowed to show a popup</a><li><p><var>form</var>'s <code id=user-interface-for-bulk-autofill:document><a href=#document>Document</a></code> is not <a href=#fully-active id=user-interface-for-bulk-autofill:fully-active>fully
+ <ul><li><p>the algorithm is not <a href=#allowed-to-show-a-popup id=user-interface-for-bulk-autofill:allowed-to-show-a-popup>allowed to show a popup</a><li><p><var>form</var>'s <a id=user-interface-for-bulk-autofill:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=user-interface-for-bulk-autofill:fully-active>fully
active</a><li><p><var>form</var>'s <code id=user-interface-for-bulk-autofill:attr-form-autocomplete><a href=#attr-form-autocomplete>autocomplete</a></code>
attribute is in the <a href=#attr-form-autocomplete-off-state id=user-interface-for-bulk-autofill:attr-form-autocomplete-off-state>off</a> state<li><p>the user has disabled this feature for this <var>form</var>'s
- <code id=user-interface-for-bulk-autofill:document-2><a href=#document>Document</a></code>'s <a href=#origin-2 id=user-interface-for-bulk-autofill:origin-2>origin</a><li><p>the user agent does not support this <var>form</var>'s fields (e.g. the form
+ <a id=user-interface-for-bulk-autofill:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#origin-2 id=user-interface-for-bulk-autofill:origin-2>origin</a><li><p>the user agent does not support this <var>form</var>'s fields (e.g. the form
has different fields whose <a href=#autofill-scope id=user-interface-for-bulk-autofill:autofill-scope>autofill scope</a> use different "<code>section-*</code>" tokens)<li><p>the <var>form</var> was obtained via unencrypted channels and the user agent
does not support autofill in such situations<li><p>another instance of this algorithm is already being run for <var>form</var></ul>
@@ -41358,7 +41349,7 @@
<p>If any of the following conditions are met, then <a href=#fail-the-autofill-request id=user-interface-for-bulk-autofill:fail-the-autofill-request-2>fail the autofill request</a> on
<var>form</var> with the reason "<code id=user-interface-for-bulk-autofill:dom-autocompleteerrorreason-disabled-2><a href=#dom-autocompleteerrorreason-disabled>disabled</a></code>", and abort these steps:</p>
- <ul><li><p><var>form</var> is no longer <a href=#in-a-document id=user-interface-for-bulk-autofill:in-a-document>in a <code>Document</code></a><li><p><var>form</var>'s <code id=user-interface-for-bulk-autofill:document-3><a href=#document>Document</a></code> is no longer <a href=#fully-active id=user-interface-for-bulk-autofill:fully-active-2>fully
+ <ul><li><p><var>form</var> is no longer <a href=#in-a-document id=user-interface-for-bulk-autofill:in-a-document>in a <code>Document</code></a><li><p><var>form</var>'s <a id=user-interface-for-bulk-autofill:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is no longer <a href=#fully-active id=user-interface-for-bulk-autofill:fully-active-2>fully
active</a><li><p><var>form</var>'s <code id=user-interface-for-bulk-autofill:attr-form-autocomplete-2><a href=#attr-form-autocomplete>autocomplete</a></code>
attribute is now in the <a href=#attr-form-autocomplete-off-state id=user-interface-for-bulk-autofill:attr-form-autocomplete-off-state-2>off</a>
state</ul>
@@ -42131,7 +42122,7 @@
following steps:</p>
<ol><li><p>Let <var>form document</var> be the <var>form</var>'s
- <code id=form-submission-algorithm:document><a href=#document>Document</a></code>.<li id=sandboxSubmitBlocked><p>If <var>form document</var> has no associated
+ <a id=form-submission-algorithm:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.<li id=sandboxSubmitBlocked><p>If <var>form document</var> has no associated
<a href=#browsing-context id=form-submission-algorithm:browsing-context>browsing context</a> or its <a href=#active-sandboxing-flag-set id=form-submission-algorithm:active-sandboxing-flag-set>active sandboxing flag set</a> has its
<a href=#sandboxed-forms-browsing-context-flag id=form-submission-algorithm:sandboxed-forms-browsing-context-flag>sandboxed forms browsing context flag</a> set, then abort these steps without doing
anything.<li><p>Let <var>form browsing context</var> be the <a href=#browsing-context id=form-submission-algorithm:browsing-context-2>browsing context</a> of <var>form document</var>.<li><p>If the <var>submitted from <code id=form-submission-algorithm:dom-form-submit-2><a href=#dom-form-submit>submit()</a></code>
@@ -43996,8 +43987,8 @@
an <code id=the-dialog-element:invalidstateerror-2><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these steps.<li><p>Add an <code id=the-dialog-element:attr-dialog-open-6><a href=#attr-dialog-open>open</a></code> attribute to <var>subject</var>, whose value is the empty string.<li><p>If the <code id=the-dialog-element:dom-dialog-showmodal-3><a href=#dom-dialog-showmodal>showModal()</a></code> method was invoked with an
argument, <a href=#set-up-the-position id=the-dialog-element:set-up-the-position-2>set up the position</a> of <var>subject</var>, using that argument
as the anchor. Otherwise, set the <code id=the-dialog-element:the-dialog-element-15><a href=#the-dialog-element>dialog</a></code> to the <a href=#centered-alignment id=the-dialog-element:centered-alignment>centered alignment</a>
- mode.<li><p>Let <var>subject</var>'s <code id=the-dialog-element:document-3><a href=#document>Document</a></code> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog>blocked by the modal dialog</a> <var>subject</var>.<li><p>Push <var>subject</var> onto <var>subject</var>'s
- <code id=the-dialog-element:document-4><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-3>pending dialog stack</a>.<li><p>Run the <a href=#dialog-focusing-steps id=the-dialog-element:dialog-focusing-steps-2>dialog focusing steps</a> for <var>subject</var>.</ol>
+ mode.<li><p>Let <var>subject</var>'s <a id=the-dialog-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog>blocked by the modal dialog</a> <var>subject</var>.<li><p>Push <var>subject</var> onto <var>subject</var>'s
+ <a id=the-dialog-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-3>pending dialog stack</a>.<li><p>Run the <a href=#dialog-focusing-steps id=the-dialog-element:dialog-focusing-steps-2>dialog focusing steps</a> for <var>subject</var>.</ol>
<p>The <dfn id=dialog-focusing-steps>dialog focusing steps</dfn> for a <code id=the-dialog-element:the-dialog-element-16><a href=#the-dialog-element>dialog</a></code> element <var>subject</var> are as follows:</p>
@@ -44015,9 +44006,9 @@
<li><p>Run the <a href=#focusing-steps id=the-dialog-element:focusing-steps>focusing steps</a> for <var>control</var>.</ol>
<p>If at any time a <code id=the-dialog-element:the-dialog-element-17><a href=#the-dialog-element>dialog</a></code> element is <a href=#remove-an-element-from-a-document id=the-dialog-element:remove-an-element-from-a-document>removed from a <code>Document</code></a>, then if that <code id=the-dialog-element:the-dialog-element-18><a href=#the-dialog-element>dialog</a></code> is in that
- <code id=the-dialog-element:document-5><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-4>pending dialog stack</a>, the following steps must be run:</p>
+ <code id=the-dialog-element:document-3><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-4>pending dialog stack</a>, the following steps must be run:</p>
- <ol><li><p>Let <var>subject</var> be that <code id=the-dialog-element:the-dialog-element-19><a href=#the-dialog-element>dialog</a></code> element and <var>document</var> be the <code id=the-dialog-element:document-6><a href=#document>Document</a></code> from which it is being removed.<li><p>Remove <var>subject</var> from <var>document</var>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-5>pending
+ <ol><li><p>Let <var>subject</var> be that <code id=the-dialog-element:the-dialog-element-19><a href=#the-dialog-element>dialog</a></code> element and <var>document</var> be the <code id=the-dialog-element:document-4><a href=#document>Document</a></code> from which it is being removed.<li><p>Remove <var>subject</var> from <var>document</var>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-5>pending
dialog stack</a>.<li><p>If <var>document</var>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-6>pending dialog stack</a> is not empty, then let
<var>document</var> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog-2>blocked by the modal
dialog</a> that is at the top of <var>document</var>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-7>pending dialog
@@ -44038,10 +44029,10 @@
attribute, then abort these steps.<li><p>Remove <var>subject</var>'s <code id=the-dialog-element:attr-dialog-open-8><a href=#attr-dialog-open>open</a></code>
attribute.<li><p>If the argument <var>result</var> was provided, then set the <code id=the-dialog-element:dom-dialog-returnvalue-3><a href=#dom-dialog-returnvalue>returnValue</a></code> attribute to the value of <var>result</var>.<li>
- <p>If <var>subject</var> is in its <code id=the-dialog-element:document-7><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-8>pending dialog
+ <p>If <var>subject</var> is in its <code id=the-dialog-element:document-5><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-8>pending dialog
stack</a>, then run these substeps:</p>
- <ol><li><p>Remove <var>subject</var> from that <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-9>pending dialog stack</a>.<li><p>If that <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-10>pending dialog stack</a> is not empty, then let <var>subject</var>'s <code id=the-dialog-element:document-8><a href=#document>Document</a></code> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog-4>blocked by the modal dialog</a> that is at the top of the <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-11>pending dialog
+ <ol><li><p>Remove <var>subject</var> from that <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-9>pending dialog stack</a>.<li><p>If that <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-10>pending dialog stack</a> is not empty, then let <var>subject</var>'s <a id=the-dialog-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog-4>blocked by the modal dialog</a> that is at the top of the <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-11>pending dialog
stack</a>. Otherwise, let <var>document</var> be no longer <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog-5>blocked by a modal
dialog</a> at all.</ol>
@@ -44055,9 +44046,9 @@
<hr>
- <p><strong>Canceling dialogs</strong>: When a <code id=the-dialog-element:document-9><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-12>pending dialog
+ <p><strong>Canceling dialogs</strong>: When a <code id=the-dialog-element:document-6><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-12>pending dialog
stack</a> is not empty, user agents may provide a user interface that, upon activation, <a href=#queue-a-task id=the-dialog-element:queue-a-task-2>queues a task</a> to <a href=#fire-a-simple-event id=the-dialog-element:fire-a-simple-event-2>fire a simple event</a> named <code id=the-dialog-element:event-cancel><a href=#event-cancel>cancel</a></code> that is cancelable at the top <code id=the-dialog-element:the-dialog-element-21><a href=#the-dialog-element>dialog</a></code> element on
- the <code id=the-dialog-element:document-10><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-13>pending dialog stack</a>. The default action of this event
+ the <code id=the-dialog-element:document-7><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-13>pending dialog stack</a>. The default action of this event
must be to check if that element has an <code id=the-dialog-element:attr-dialog-open-9><a href=#attr-dialog-open>open</a></code> attribute, and
if it does, <a href=#close-the-dialog id=the-dialog-element:close-the-dialog-2>close the dialog</a> with no return value.</p>
@@ -44117,7 +44108,7 @@
<p>If at any time either <var>A</var> or <var>B</var> cease having rendered
boxes, <var>A</var> and <var>B</var> cease being in the same
- <code id=the-dialog-element:document-11><a href=#document>Document</a></code>, or <var>B</var> ceases being earlier than <var>A</var> in <a href=#tree-order id=the-dialog-element:tree-order>tree order</a>, then, if <var>subject</var> is in the
+ <code id=the-dialog-element:document-8><a href=#document>Document</a></code>, or <var>B</var> ceases being earlier than <var>A</var> in <a href=#tree-order id=the-dialog-element:tree-order>tree order</a>, then, if <var>subject</var> is in the
<a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-14>pending dialog stack</a>, let <var>subject</var>'s mode become <a href=#centered-alignment id=the-dialog-element:centered-alignment-7>centered
alignment</a>, otherwise, let <var>subject</var>'s mode become <a href=#normal-alignment id=the-dialog-element:normal-alignment-3>normal
alignment</a>.</p>
@@ -44454,8 +44445,8 @@
type</var></dfn>, <dfn id=concept-script-encoding><var>the script block's character
encoding</var></dfn>, and <dfn id=concept-script-fallback-encoding><var>the script block's
fallback character encoding</var></dfn>. They are determined when the script is prepared, based on
- the attributes on the element at that time, and the <code id=the-script-element:document><a href=#document>Document</a></code> of the
- <code id=the-script-element:the-script-element-14><a href=#the-script-element>script</a></code> element.</p>
+ the attributes on the element at that time, and the
+ <code id=the-script-element:the-script-element-14><a href=#the-script-element>script</a></code> element's <a id=the-script-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
<p>When a <code id=the-script-element:the-script-element-15><a href=#the-script-element>script</a></code> element that is not marked as being <a href=#parser-inserted id=the-script-element:parser-inserted-2>"parser-inserted"</a>
experiences one of the events listed in the following list, the user agent must synchronously
@@ -44464,7 +44455,7 @@
<ul><li>The <code id=the-script-element:the-script-element-17><a href=#the-script-element>script</a></code> element gets <a href=#insert-an-element-into-a-document id=the-script-element:insert-an-element-into-a-document>inserted
into a document</a>, at the time the <a href=#nodes-are-inserted id=the-script-element:nodes-are-inserted>node is inserted</a>
according to the DOM, after any other <code id=the-script-element:the-script-element-18><a href=#the-script-element>script</a></code> elements inserted at the same time that
- are earlier in the <code id=the-script-element:document-2><a href=#document>Document</a></code> in <a href=#tree-order id=the-script-element:tree-order>tree order</a>.<li>The <code id=the-script-element:the-script-element-19><a href=#the-script-element>script</a></code> element is <a href=#in-a-document id=the-script-element:in-a-document>in a <code>Document</code></a> and a node or
+ are earlier in the <code id=the-script-element:document><a href=#document>Document</a></code> in <a href=#tree-order id=the-script-element:tree-order>tree order</a>.<li>The <code id=the-script-element:the-script-element-19><a href=#the-script-element>script</a></code> element is <a href=#in-a-document id=the-script-element:in-a-document>in a <code>Document</code></a> and a node or
document fragment is <a href=#nodes-are-inserted id=the-script-element:nodes-are-inserted-2>inserted</a> into the
<code id=the-script-element:the-script-element-20><a href=#the-script-element>script</a></code> element, after any <code id=the-script-element:the-script-element-21><a href=#the-script-element>script</a></code> elements <a href=#nodes-are-inserted id=the-script-element:nodes-are-inserted-3>inserted</a> at that time.<li>The <code id=the-script-element:the-script-element-22><a href=#the-script-element>script</a></code> element is <a href=#in-a-document id=the-script-element:in-a-document-2>in a <code>Document</code></a> and has a <code id=the-script-element:attr-script-src-9><a href=#attr-script-src>src</a></code> attribute set where previously the element had no such
attribute.</ul>
@@ -44558,7 +44549,7 @@
<li>
<p>If the element is flagged as <a href=#parser-inserted id=the-script-element:parser-inserted-6>"parser-inserted"</a>, but the element's
- <code id=the-script-element:document-3><a href=#document>Document</a></code> is not the <code id=the-script-element:document-4><a href=#document>Document</a></code> of the parser that created the element,
+ <a id=the-script-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not the <code id=the-script-element:document-2><a href=#document>Document</a></code> of the parser that created the element,
then abort these steps.</p>
<li id=script-processing-noscript>
@@ -44572,7 +44563,7 @@
<code id=the-script-element:xmlhttprequest><a href=#xmlhttprequest>XMLHttpRequest</a></code>'s <code id=the-script-element:dom-xmlhttprequest-responsexml><a href=#dom-xmlhttprequest-responsexml>responseXML</a></code>
documents, scripts in <code id=the-script-element:domparser><a data-x-internal=domparser href=http://domparsing.spec.whatwg.org/#the-domparser-interface>DOMParser</a></code>-created documents, scripts in documents created by
<code id=the-script-element:xsltprocessor><a href=#xsltprocessor>XSLTProcessor</a></code>'s <code id=the-script-element:dom-xsltprocessor-transformtodocument><a href=#dom-xsltprocessor-transformtodocument>transformToDocument</a></code> feature, and scripts
- that are first inserted by a script into a <code id=the-script-element:document-5><a href=#document>Document</a></code> that was created using the
+ that are first inserted by a script into a <code id=the-script-element:document-3><a href=#document>Document</a></code> that was created using the
<code id=the-script-element:dom-domimplementation-createdocument><a href=#dom-domimplementation-createdocument>createDocument()</a></code> API. <a href=#refsXHR>[XHR]</a>
<a href=#refsDOMPARSING>[DOMPARSING]</a> <a href=#refsDOM>[DOM]</a></p>
@@ -44617,7 +44608,7 @@
<p>Do a <a href=#potentially-cors-enabled-fetch id=the-script-element:potentially-cors-enabled-fetch>potentially CORS-enabled fetch</a> of the resulting
<a href=#absolute-url id=the-script-element:absolute-url>absolute URL</a>, with the <i>mode</i> being the current state of the element's <code id=the-script-element:attr-script-crossorigin-3><a href=#attr-script-crossorigin>crossorigin</a></code> content attribute, the <i>origin</i> being
- the <a href=#origin-2 id=the-script-element:origin-2-2>origin</a> of the <code id=the-script-element:the-script-element-39><a href=#the-script-element>script</a></code> element's <code id=the-script-element:document-6><a href=#document>Document</a></code>, and the
+ the <a href=#origin-2 id=the-script-element:origin-2-2>origin</a> of the <code id=the-script-element:the-script-element-39><a href=#the-script-element>script</a></code> element's <a id=the-script-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, and the
<i>default origin behaviour</i> set to <i>taint</i>.</p>
<p>The resource obtained in this fashion can be either <a href=#cors-same-origin id=the-script-element:cors-same-origin>CORS-same-origin</a> or
@@ -44644,7 +44635,7 @@
an <code id=the-script-element:attr-script-async-11><a href=#attr-script-async>async</a></code> attribute<dd>
<p>The element must be added to the end of the <dfn id=list-of-scripts-that-will-execute-when-the-document-has-finished-parsing>list of scripts that will execute when the
- document has finished parsing</dfn> associated with the <code id=the-script-element:document-7><a href=#document>Document</a></code> of the parser
+ document has finished parsing</dfn> associated with the <code id=the-script-element:document-4><a href=#document>Document</a></code> of the parser
that created the element.</p>
<p>The <a href=#concept-task id=the-script-element:concept-task>task</a> that the <a href=#networking-task-source id=the-script-element:networking-task-source>networking task source</a>
@@ -44656,8 +44647,8 @@
<a href=#parser-inserted id=the-script-element:parser-inserted-8>"parser-inserted"</a>, and the element does not have an <code id=the-script-element:attr-script-async-12><a href=#attr-script-async>async</a></code> attribute<dd>
<p>The element is the <a href=#pending-parsing-blocking-script id=the-script-element:pending-parsing-blocking-script>pending parsing-blocking script</a> of the
- <code id=the-script-element:document-8><a href=#document>Document</a></code> of the parser that created the element. (There can only be one such
- script per <code id=the-script-element:document-9><a href=#document>Document</a></code> at a time.)</p>
+ <code id=the-script-element:document-5><a href=#document>Document</a></code> of the parser that created the element. (There can only be one such
+ script per <code id=the-script-element:document-6><a href=#document>Document</a></code> at a time.)</p>
<p>The <a href=#concept-task id=the-script-element:concept-task-2>task</a> that the <a href=#networking-task-source id=the-script-element:networking-task-source-2>networking task source</a>
places on the <a href=#task-queue id=the-script-element:task-queue-2>task queue</a> once the <a href=#fetch id=the-script-element:fetch-2>fetching algorithm</a>
@@ -44667,13 +44658,13 @@
<dt id=script-processing-style-delayed>If the element does not have a <code id=the-script-element:attr-script-src-17><a href=#attr-script-src>src</a></code> attribute, and the element has been flagged as
<a href=#parser-inserted id=the-script-element:parser-inserted-9>"parser-inserted"</a>, and either the parser that created the <code id=the-script-element:the-script-element-40><a href=#the-script-element>script</a></code> is
an <a href=#xml-parser id=the-script-element:xml-parser-3>XML parser</a> or it's an <a href=#html-parser id=the-script-element:html-parser-3>HTML parser</a> whose <a href=#script-nesting-level id=the-script-element:script-nesting-level>script nesting
- level</a> is not greater than one, and the <code id=the-script-element:document-10><a href=#document>Document</a></code> of the <a href=#html-parser id=the-script-element:html-parser-4>HTML
+ level</a> is not greater than one, and the <code id=the-script-element:document-7><a href=#document>Document</a></code> of the <a href=#html-parser id=the-script-element:html-parser-4>HTML
parser</a> or <a href=#xml-parser id=the-script-element:xml-parser-4>XML parser</a> that created the <code id=the-script-element:the-script-element-41><a href=#the-script-element>script</a></code> element <a href=#has-a-style-sheet-that-is-blocking-scripts id=the-script-element:has-a-style-sheet-that-is-blocking-scripts>has
a style sheet that is blocking scripts</a><dd>
<p>The element is the <a href=#pending-parsing-blocking-script id=the-script-element:pending-parsing-blocking-script-2>pending parsing-blocking script</a> of the
- <code id=the-script-element:document-11><a href=#document>Document</a></code> of the parser that created the element. (There can only be one such
- script per <code id=the-script-element:document-12><a href=#document>Document</a></code> at a time.)</p>
+ <code id=the-script-element:document-8><a href=#document>Document</a></code> of the parser that created the element. (There can only be one such
+ script per <code id=the-script-element:document-9><a href=#document>Document</a></code> at a time.)</p>
<p>Set the element's <a href=#ready-to-be-parser-executed id=the-script-element:ready-to-be-parser-executed-3>"ready to be parser-executed"</a> flag. The parser will handle
executing the script.</p>
@@ -44682,7 +44673,7 @@
<a href=#force-async id=the-script-element:force-async-5>"force-async"</a> flag set<dd>
<p>The element must be added to the end of the <dfn id=list-of-scripts-that-will-execute-in-order-as-soon-as-possible>list of scripts that will execute in order
- as soon as possible</dfn> associated with the <code id=the-script-element:document-13><a href=#document>Document</a></code> of the <code id=the-script-element:the-script-element-42><a href=#the-script-element>script</a></code>
+ as soon as possible</dfn> associated with the <a id=the-script-element:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <code id=the-script-element:the-script-element-42><a href=#the-script-element>script</a></code>
element at the time the <a href=#prepare-a-script id=the-script-element:prepare-a-script-2>prepare a script</a> algorithm started.</p>
<p>The <a href=#concept-task id=the-script-element:concept-task-3>task</a> that the <a href=#networking-task-source id=the-script-element:networking-task-source-3>networking task source</a>
@@ -44702,7 +44693,7 @@
attribute<dd>
<p>The element must be added to the <dfn id=set-of-scripts-that-will-execute-as-soon-as-possible>set of scripts that will execute as soon as
- possible</dfn> of the <code id=the-script-element:document-14><a href=#document>Document</a></code> of the <code id=the-script-element:the-script-element-43><a href=#the-script-element>script</a></code> element at the time the
+ possible</dfn> of the <a id=the-script-element:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <code id=the-script-element:the-script-element-43><a href=#the-script-element>script</a></code> element at the time the
<a href=#prepare-a-script id=the-script-element:prepare-a-script-3>prepare a script</a> algorithm started.</p>
<p>The <a href=#concept-task id=the-script-element:concept-task-4>task</a> that the <a href=#networking-task-source id=the-script-element:networking-task-source-4>networking task source</a>
@@ -44716,19 +44707,19 @@
</ol>
- <p>Fetching an external script must <a href=#delay-the-load-event id=the-script-element:delay-the-load-event>delay the load event</a> of the element's document
+ <p>Fetching an external script must <a href=#delay-the-load-event id=the-script-element:delay-the-load-event>delay the load event</a> of the element's <a id=the-script-element:node-document-6 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>
until the <a href=#concept-task id=the-script-element:concept-task-5>task</a> that is <a href=#queue-a-task id=the-script-element:queue-a-task-3>queued</a>
by the <a href=#networking-task-source id=the-script-element:networking-task-source-5>networking task source</a> once the resource has been <a href=#fetch id=the-script-element:fetch-5>fetched</a> (defined above) has been run.</p>
- <p>The <dfn id=pending-parsing-blocking-script>pending parsing-blocking script</dfn> of a <code id=the-script-element:document-15><a href=#document>Document</a></code> is used by the
- <code id=the-script-element:document-16><a href=#document>Document</a></code>'s parser(s).</p>
+ <p>The <dfn id=pending-parsing-blocking-script>pending parsing-blocking script</dfn> of a <code id=the-script-element:document-10><a href=#document>Document</a></code> is used by the
+ <code id=the-script-element:document-11><a href=#document>Document</a></code>'s parser(s).</p>
<p class=note>If a <code id=the-script-element:the-script-element-44><a href=#the-script-element>script</a></code> element that blocks a parser gets moved to another
- <code id=the-script-element:document-17><a href=#document>Document</a></code> before it would normally have stopped blocking that parser, it nonetheless
+ <code id=the-script-element:document-12><a href=#document>Document</a></code> before it would normally have stopped blocking that parser, it nonetheless
continues blocking that parser until the condition that causes it to be blocking the parser no
longer applies (e.g. if the script is a <a href=#pending-parsing-blocking-script id=the-script-element:pending-parsing-blocking-script-3>pending parsing-blocking script</a> because there
was <a href=#a-style-sheet-that-is-blocking-scripts id=the-script-element:a-style-sheet-that-is-blocking-scripts>a style sheet that is blocking scripts</a> when it was parsed, but then the script is
- moved to another <code id=the-script-element:document-18><a href=#document>Document</a></code> before the style sheet loads, the script still blocks the
+ moved to another <code id=the-script-element:document-13><a href=#document>Document</a></code> before the style sheet loads, the script still blocks the
parser until the style sheets are all loaded, at which time the script executes and the parser is
unblocked).</p>
@@ -44740,7 +44731,7 @@
<ol><li>
<p>If the element is flagged as <a href=#parser-inserted id=the-script-element:parser-inserted-10>"parser-inserted"</a>, but the element's
- <code id=the-script-element:document-19><a href=#document>Document</a></code> is not the <code id=the-script-element:document-20><a href=#document>Document</a></code> of the parser that created the element,
+ <a id=the-script-element:node-document-7 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not the <code id=the-script-element:document-14><a href=#document>Document</a></code> of the parser that created the element,
then abort these steps.</p>
<li>
@@ -44820,18 +44811,18 @@
<p>If the script is from an external file, then increment the
<a href=#ignore-destructive-writes-counter id=the-script-element:ignore-destructive-writes-counter>ignore-destructive-writes counter</a> of the <code id=the-script-element:the-script-element-48><a href=#the-script-element>script</a></code> element's
- <code id=the-script-element:document-21><a href=#document>Document</a></code>. Let <var>neutralised doc</var> be that
- <code id=the-script-element:document-22><a href=#document>Document</a></code>.</p>
+ <a id=the-script-element:node-document-8 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>. Let <var>neutralised doc</var> be that
+ <code id=the-script-element:document-15><a href=#document>Document</a></code>.</p>
<li>
<p>Let <var>old script element</var> be the value to which the <code id=the-script-element:the-script-element-49><a href=#the-script-element>script</a></code>
- element's <code id=the-script-element:document-23><a href=#document>Document</a></code>'s <code id=the-script-element:dom-document-currentscript><a href=#dom-document-currentscript>currentScript</a></code> object was most recently
+ element's <a id=the-script-element:node-document-9 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <code id=the-script-element:dom-document-currentscript><a href=#dom-document-currentscript>currentScript</a></code> object was most recently
initialized.</p>
<li>
- <p>Initialise the <code id=the-script-element:the-script-element-50><a href=#the-script-element>script</a></code> element's <code id=the-script-element:document-24><a href=#document>Document</a></code>'s <code id=the-script-element:dom-document-currentscript-2><a href=#dom-document-currentscript>currentScript</a></code> object to the <code id=the-script-element:the-script-element-51><a href=#the-script-element>script</a></code>
+ <p>Initialise the <code id=the-script-element:the-script-element-50><a href=#the-script-element>script</a></code> element's <a id=the-script-element:node-document-10 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <code id=the-script-element:dom-document-currentscript-2><a href=#dom-document-currentscript>currentScript</a></code> object to the <code id=the-script-element:the-script-element-51><a href=#the-script-element>script</a></code>
element.</p>
<li>
@@ -44839,7 +44830,7 @@
<p><a href=#create-a-script id=the-script-element:create-a-script>Create a script</a>, using <var id=the-script-element:concept-script-source><a href=#concept-script-source>the script
block's source</a></var>, the <a href=#url id=the-script-element:url>URL</a> from which the script was obtained, <var id=the-script-element:concept-script-type-11><a href=#concept-script-type>the script block's type</a></var> as the scripting language, and
the <a href=#script-settings-object id=the-script-element:script-settings-object>script settings object</a> of the <code id=the-script-element:the-script-element-52><a href=#the-script-element>script</a></code> element's
- <code id=the-script-element:document-25><a href=#document>Document</a></code>'s <code id=the-script-element:window><a href=#window>Window</a></code> object.</p>
+ <a id=the-script-element:node-document-11 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <code id=the-script-element:window><a href=#window>Window</a></code> object.</p>
<p>If the script came from a resource that was <a href=#fetch id=the-script-element:fetch-6>fetched</a> in the
steps above, and the resource was <a href=#cors-cross-origin id=the-script-element:cors-cross-origin-2>CORS-cross-origin</a>, then pass the <var>muted errors</var> flag to the <a href=#create-a-script id=the-script-element:create-a-script-2>create a script</a> algorithm as well.</p>
@@ -44848,7 +44839,7 @@
<li>
- <p>Initialise the <code id=the-script-element:the-script-element-53><a href=#the-script-element>script</a></code> element's <code id=the-script-element:document-26><a href=#document>Document</a></code>'s <code id=the-script-element:dom-document-currentscript-3><a href=#dom-document-currentscript>currentScript</a></code> object to <var>old script
+ <p>Initialise the <code id=the-script-element:the-script-element-53><a href=#the-script-element>script</a></code> element's <a id=the-script-element:node-document-12 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <code id=the-script-element:dom-document-currentscript-3><a href=#dom-document-currentscript>currentScript</a></code> object to <var>old script
element</var>.</p>
<li>
@@ -45380,8 +45371,8 @@
is its <dfn id=template-contents>template contents</dfn>. When a <code id=the-template-element:the-template-element-6><a href=#the-template-element>template</a></code> element is created, the user
agent must run the following steps to establish the <a href=#template-contents id=the-template-element:template-contents>template contents</a>:</p>
- <ol><li><p>Let <var>doc</var> be the <code id=the-template-element:the-template-element-7><a href=#the-template-element>template</a></code> element's <code id=the-template-element:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code>'s <a href=#appropriate-template-contents-owner-document id=the-template-element:appropriate-template-contents-owner-document>appropriate template contents owner
- document</a>.<li><p>Create a <code id=the-template-element:documentfragment-4><a href=#documentfragment>DocumentFragment</a></code> object whose <code id=the-template-element:dom-node-ownerdocument-2><a href=#dom-node-ownerdocument>ownerDocument</a></code> is <var>doc</var>.<li><p>Set the <code id=the-template-element:the-template-element-8><a href=#the-template-element>template</a></code> element's <a href=#template-contents id=the-template-element:template-contents-2>template contents</a> to the newly
+ <ol><li><p>Let <var>doc</var> be the <code id=the-template-element:the-template-element-7><a href=#the-template-element>template</a></code> element's <a id=the-template-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#appropriate-template-contents-owner-document id=the-template-element:appropriate-template-contents-owner-document>appropriate template contents owner
+ document</a>.<li><p>Create a <code id=the-template-element:documentfragment-4><a href=#documentfragment>DocumentFragment</a></code> object whose <a id=the-template-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <var>doc</var>.<li><p>Set the <code id=the-template-element:the-template-element-8><a href=#the-template-element>template</a></code> element's <a href=#template-contents id=the-template-element:template-contents-2>template contents</a> to the newly
created <code id=the-template-element:documentfragment-5><a href=#documentfragment>DocumentFragment</a></code> object.</ol>
<p>A <code id=the-template-element:document-3><a href=#document>Document</a></code> <var>doc</var>'s <dfn id=appropriate-template-contents-owner-document>appropriate template contents owner
@@ -45415,10 +45406,10 @@
<li><p>Return <var>doc</var>.</ol>
- <p>When a <code id=the-template-element:the-template-element-11><a href=#the-template-element>template</a></code> element changes <code id=the-template-element:dom-node-ownerdocument-3><a href=#dom-node-ownerdocument>ownerDocument</a></code>, the user agent must run the following
+ <p>When a <code id=the-template-element:the-template-element-11><a href=#the-template-element>template</a></code> element's <a id=the-template-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> changes, the user agent must run the following
steps:</p>
- <ol><li><p>Let <var>doc</var> be the <code id=the-template-element:the-template-element-12><a href=#the-template-element>template</a></code> element's new <code id=the-template-element:dom-node-ownerdocument-4><a href=#dom-node-ownerdocument>ownerDocument</a></code>'s <a href=#appropriate-template-contents-owner-document id=the-template-element:appropriate-template-contents-owner-document-2>appropriate template contents owner
+ <ol><li><p>Let <var>doc</var> be the <code id=the-template-element:the-template-element-12><a href=#the-template-element>template</a></code> element's new <a id=the-template-element:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#appropriate-template-contents-owner-document id=the-template-element:appropriate-template-contents-owner-document-2>appropriate template contents owner
document</a>.<li><p><a href=#concept-node-adopt id=the-template-element:concept-node-adopt>Adopt</a> the <code id=the-template-element:the-template-element-13><a href=#the-template-element>template</a></code> element's
<a href=#template-contents id=the-template-element:template-contents-4>template contents</a> (a <code id=the-template-element:documentfragment-6><a href=#documentfragment>DocumentFragment</a></code> object) into <var>doc</var>.</ol>
@@ -45432,7 +45423,8 @@
following steps:</p>
<ol><li><p>If the <var>clone children flag</var> is not set in the calling <a href=#concept-node-clone id=the-template-element:concept-node-clone>clone</a> algorithm, abort these steps.<li><p>Let <var>copied contents</var> be the result of <a href=#concept-node-clone id=the-template-element:concept-node-clone-2>cloning</a> all the children of <var>node</var>'s
- <a href=#template-contents id=the-template-element:template-contents-6>template contents</a>, with <var>ownerDocument</var> set to <var>copy</var>'s <a href=#template-contents id=the-template-element:template-contents-7>template contents</a>'s <code id=the-template-element:dom-node-ownerdocument-5><a href=#dom-node-ownerdocument>ownerDocument</a></code>, and with the <var>clone children
+ <a href=#template-contents id=the-template-element:template-contents-6>template contents</a>, with <var>document</var> set to <var>copy</var>'s <a href=#template-contents id=the-template-element:template-contents-7>template contents</a>'s <a id=the-template-element:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node
+ document</a>, and with the <var>clone children
flag</var> set.<li><p>Append <var>copied contents</var> to <var>copy</var>'s <a href=#template-contents id=the-template-element:template-contents-8>template
contents</a>.</ol>
@@ -54529,7 +54521,7 @@
<a href=#browsing-context-container id=focus-management-apis:browsing-context-container>browsing context container</a> is <a href=#bc-focus-ergo-bcc-focus>focused</a> in the
<a href=#parent-browsing-context id=focus-management-apis:parent-browsing-context>parent browsing context</a>. For example, if the user moves the focus to a text field
in an <code id=focus-management-apis:the-iframe-element><a href=#the-iframe-element>iframe</a></code>, the <code id=focus-management-apis:the-iframe-element-2><a href=#the-iframe-element>iframe</a></code> is the element returned by the <code id=focus-management-apis:dom-document-activeelement-2><a href=#dom-document-activeelement>activeElement</a></code> API in the <code id=focus-management-apis:the-iframe-element-3><a href=#the-iframe-element>iframe</a></code>'s
- <code id=focus-management-apis:document><a href=#document>Document</a></code>.</p>
+ <a id=focus-management-apis:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
<dt><var>document</var> . <code id=focus-management-apis:dom-document-hasfocus><a href=#dom-document-hasfocus>hasFocus</a></code>()<dd>
@@ -54577,9 +54569,9 @@
<p>The <dfn id=dom-document-activeelement><code>activeElement</code></dfn> attribute on
- <code id=focus-management-apis:document-2><a href=#document>Document</a></code> objects must return the value returned by the following steps:</p>
+ <code id=focus-management-apis:document><a href=#document>Document</a></code> objects must return the value returned by the following steps:</p>
- <ol><li><p>Let <var>candidate</var> be the <code id=focus-management-apis:document-3><a href=#document>Document</a></code> on which the method was
+ <ol><li><p>Let <var>candidate</var> be the <code id=focus-management-apis:document-2><a href=#document>Document</a></code> on which the method was
invoked.<li><p>If <var>candidate</var> has a <a href=#dialog-group id=focus-management-apis:dialog-group>dialog group</a> with a designated
<a href=#focused-dialog-of-the-dialog-group id=focus-management-apis:focused-dialog-of-the-dialog-group>focused dialog of the dialog group</a>, then let <var>candidate</var> be the
designated <a href=#focused-dialog-of-the-dialog-group id=focus-management-apis:focused-dialog-of-the-dialog-group-2>focused dialog of the dialog group</a>, and redo this step.<li><p>If <var>candidate</var> has a non-empty <a href=#control-group id=focus-management-apis:control-group>control group</a>, let <var>candidate</var> be the designated <a href=#focused-area-of-the-control-group id=focus-management-apis:focused-area-of-the-control-group>focused area of the control
@@ -54587,22 +54579,22 @@
<li><p>If <var>candidate</var> is a <a href=#focusable-area id=focus-management-apis:focusable-area>focusable area</a>, let <var>candidate</var> be <var>candidate</var>'s <a href=#dom-anchor id=focus-management-apis:dom-anchor>DOM anchor</a>.<li>
- <p>If <var>candidate</var> is a <code id=focus-management-apis:document-4><a href=#document>Document</a></code> that has a <a href=#the-body-element-2 id=focus-management-apis:the-body-element-2-3>body element</a>, then let <var>candidate</var> be <a href=#the-body-element-2 id=focus-management-apis:the-body-element-2-4>the body
- element</a> of that <code id=focus-management-apis:document-5><a href=#document>Document</a></code>.</p>
+ <p>If <var>candidate</var> is a <code id=focus-management-apis:document-3><a href=#document>Document</a></code> that has a <a href=#the-body-element-2 id=focus-management-apis:the-body-element-2-3>body element</a>, then let <var>candidate</var> be <a href=#the-body-element-2 id=focus-management-apis:the-body-element-2-4>the body
+ element</a> of that <code id=focus-management-apis:document-4><a href=#document>Document</a></code>.</p>
- <p>Otherwise, if <var>candidate</var> is a <code id=focus-management-apis:document-6><a href=#document>Document</a></code> that has a <a href=#root-element id=focus-management-apis:root-element>root
+ <p>Otherwise, if <var>candidate</var> is a <code id=focus-management-apis:document-5><a href=#document>Document</a></code> that has a <a href=#root-element id=focus-management-apis:root-element>root
element</a>, then let <var>candidate</var> be the <a href=#root-element id=focus-management-apis:root-element-2>root element</a> of that
- <code id=focus-management-apis:document-7><a href=#document>Document</a></code>.</p>
+ <code id=focus-management-apis:document-6><a href=#document>Document</a></code>.</p>
- <p>Otherwise, if <var>candidate</var> is a <code id=focus-management-apis:document-8><a href=#document>Document</a></code>, then let <var>candidate</var> be null.</p>
+ <p>Otherwise, if <var>candidate</var> is a <code id=focus-management-apis:document-7><a href=#document>Document</a></code>, then let <var>candidate</var> be null.</p>
<li><p>Return <var>candidate</var>.</ol>
<p>The <dfn id=dom-document-hasfocus><code>hasFocus()</code></dfn> method on
- <code id=focus-management-apis:document-9><a href=#document>Document</a></code> objects must return the value returned by the following steps:</p>
+ <code id=focus-management-apis:document-8><a href=#document>Document</a></code> objects must return the value returned by the following steps:</p>
- <ol><li><p>Let <var>target</var> be the <code id=focus-management-apis:document-10><a href=#document>Document</a></code> on which the method was
- invoked.<li><p>Let <var>candidate</var> be the <code id=focus-management-apis:document-11><a href=#document>Document</a></code> of the <a href=#top-level-browsing-context id=focus-management-apis:top-level-browsing-context>top-level
+ <ol><li><p>Let <var>target</var> be the <code id=focus-management-apis:document-9><a href=#document>Document</a></code> on which the method was
+ invoked.<li><p>Let <var>candidate</var> be the <code id=focus-management-apis:document-10><a href=#document>Document</a></code> of the <a href=#top-level-browsing-context id=focus-management-apis:top-level-browsing-context>top-level
browsing context</a>.<li><p>If <var>candidate</var> is <var>target</var>, return true and abort
these steps.<li>
@@ -56720,7 +56712,7 @@
the following algorithm:</p>
<ol><li><p>If <var>d</var> is not a <code id=navigating-nested-browsing-contexts-in-the-dom:document-4><a href=#document>Document</a></code> in a <a href=#nested-browsing-context id=navigating-nested-browsing-contexts-in-the-dom:nested-browsing-context-3>nested browsing
- context</a>, return null and abort these steps.<li><p>If the <a href=#browsing-context-container id=navigating-nested-browsing-contexts-in-the-dom:browsing-context-container-2>browsing context container</a>'s <code id=navigating-nested-browsing-contexts-in-the-dom:document-5><a href=#document>Document</a></code> does not have the
+ context</a>, return null and abort these steps.<li><p>If the <a href=#browsing-context-container id=navigating-nested-browsing-contexts-in-the-dom:browsing-context-container-2>browsing context container</a>'s <a id=navigating-nested-browsing-contexts-in-the-dom:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> does not have the
<a href=#same-origin id=navigating-nested-browsing-contexts-in-the-dom:same-origin>same</a> <a href=#effective-script-origin id=navigating-nested-browsing-contexts-in-the-dom:effective-script-origin>effective script origin</a> as the
<a href=#effective-script-origin id=navigating-nested-browsing-contexts-in-the-dom:effective-script-origin-2>effective script origin</a> specified by the <a href=#entry-settings-object id=navigating-nested-browsing-contexts-in-the-dom:entry-settings-object>entry settings object</a>, then
throw a <code id=navigating-nested-browsing-contexts-in-the-dom:securityerror-2><a href=#securityerror>SecurityError</a></code> exception and abort these steps.<li><p>Return the <a href=#browsing-context-container id=navigating-nested-browsing-contexts-in-the-dom:browsing-context-container-3>browsing context container</a> for <var>b</var>.</ol>
@@ -56800,25 +56792,25 @@
is not a <a href=#top-level-browsing-context id=security-nav:top-level-browsing-context-4>top-level browsing context</a>, and <var>A</var>'s <a href=#active-document id=security-nav:active-document-5>active
document</a>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set>active sandboxing flag set</a> has its <a href=#sandboxed-navigation-browsing-context-flag id=security-nav:sandboxed-navigation-browsing-context-flag>sandboxed navigation
browsing context flag</a> set, then abort these steps negatively.<li><p>Otherwise, if <var>B</var> is a <a href=#top-level-browsing-context id=security-nav:top-level-browsing-context-5>top-level browsing context</a>, and is
- one of the <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-3>ancestor browsing contexts</a> of <var>A</var>, and <var>A</var>'s <code id=security-nav:document><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set-2>active sandboxing
+ one of the <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-3>ancestor browsing contexts</a> of <var>A</var>, and <var>A</var>'s <a id=security-nav:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set-2>active sandboxing
flag set</a> has its <a href=#sandboxed-top-level-navigation-browsing-context-flag id=security-nav:sandboxed-top-level-navigation-browsing-context-flag>sandboxed top-level navigation browsing context flag</a> set,
then abort these steps negatively.<li><p>Otherwise, if <var>B</var> is a <a href=#top-level-browsing-context id=security-nav:top-level-browsing-context-6>top-level browsing context</a>, and is
neither <var>A</var> nor one of the <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-4>ancestor
browsing contexts</a> of <var>A</var>, and <var>A</var>'s
- <code id=security-nav:document-2><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set-3>active sandboxing flag set</a> has its <a href=#sandboxed-navigation-browsing-context-flag id=security-nav:sandboxed-navigation-browsing-context-flag-2>sandboxed
+ <code id=security-nav:document><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set-3>active sandboxing flag set</a> has its <a href=#sandboxed-navigation-browsing-context-flag id=security-nav:sandboxed-navigation-browsing-context-flag-2>sandboxed
navigation browsing context flag</a> set, and <var>A</var> is not the <a href=#one-permitted-sandboxed-navigator id=security-nav:one-permitted-sandboxed-navigator>one
permitted sandboxed navigator</a> of <var>B</var>, then abort these steps
negatively.<li><p>Otherwise, terminate positively!</ol>
<hr>
- <p>An element has a <dfn id=browsing-context-scope-origin>browsing context scope origin</dfn> if its <code id=security-nav:document-3><a href=#document>Document</a></code>'s
+ <p>An element has a <dfn id=browsing-context-scope-origin>browsing context scope origin</dfn> if its <code id=security-nav:document-2><a href=#document>Document</a></code>'s
<a href=#browsing-context id=security-nav:browsing-context-6>browsing context</a> is a <a href=#top-level-browsing-context id=security-nav:top-level-browsing-context-7>top-level browsing context</a> or if all of its
- <code id=security-nav:document-4><a href=#document>Document</a></code>'s <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-5>ancestor browsing contexts</a>
+ <code id=security-nav:document-3><a href=#document>Document</a></code>'s <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-5>ancestor browsing contexts</a>
all have <a href=#active-document id=security-nav:active-document-6>active documents</a> whose <a href=#origin-2 id=security-nav:origin-2-4>origin</a> are the
- <a href=#same-origin id=security-nav:same-origin-3>same origin</a> as the element's <code id=security-nav:document-5><a href=#document>Document</a></code>'s <a href=#origin-2 id=security-nav:origin-2-5>origin</a>. If an
+ <a href=#same-origin id=security-nav:same-origin-3>same origin</a> as the element's <a id=security-nav:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#origin-2 id=security-nav:origin-2-5>origin</a>. If an
element has a <a href=#browsing-context-scope-origin id=security-nav:browsing-context-scope-origin>browsing context scope origin</a>, then its value is the
- <a href=#origin-2 id=security-nav:origin-2-6>origin</a> of the element's <code id=security-nav:document-6><a href=#document>Document</a></code>.</p>
+ <a href=#origin-2 id=security-nav:origin-2-6>origin</a> of the element's <a id=security-nav:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
@@ -57820,50 +57812,50 @@
<p>The <a href=#origin-2 id=origin:origin-2-11>origin</a> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-4>alias</a> to the
<a href=#origin-2 id=origin:origin-2-12>origin</a> specified by the <a href=#incumbent-settings-object id=origin:incumbent-settings-object>incumbent settings object</a> when the <a href=#navigate id=origin:navigate>navigate</a>
algorithm was invoked, or, if no <a href=#concept-script id=origin:concept-script>script</a> was involved, of
- the <code id=origin:document-9><a href=#document>Document</a></code> of the element that initiated the <a href=#navigate id=origin:navigate-2>navigation</a> to that <a href=#url id=origin:url-2>URL</a>.</p>
+ the <a id=origin:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the element that initiated the <a href=#navigate id=origin:navigate-2>navigation</a> to that <a href=#url id=origin:url-2>URL</a>.</p>
<p>The <a href=#effective-script-origin id=origin:effective-script-origin-8>effective script origin</a> is initially an <a href=#concept-origin-alias id=origin:concept-origin-alias-5>alias</a> to the <a href=#effective-script-origin id=origin:effective-script-origin-9>effective script origin</a> of that
- same <a href=#script-settings-object id=origin:script-settings-object>script settings object</a> or <code id=origin:document-10><a href=#document>Document</a></code>.</p>
+ same <a href=#script-settings-object id=origin:script-settings-object>script settings object</a> or <code id=origin:document-9><a href=#document>Document</a></code>.</p>
- <dt>If a <code id=origin:document-11><a href=#document>Document</a></code> is the initial "<code id=origin:about:blank><a href=#about:blank>about:blank</a></code>" document<dd>
+ <dt>If a <code id=origin:document-10><a href=#document>Document</a></code> is the initial "<code id=origin:about:blank><a href=#about:blank>about:blank</a></code>" document<dd>
<p>The <a href=#origin-2 id=origin:origin-2-13>origin</a> and <a href=#effective-script-origin id=origin:effective-script-origin-10>effective script origin</a> of the
- <code id=origin:document-12><a href=#document>Document</a></code> are <a href=#about-blank-origin>those it was assigned when its
+ <code id=origin:document-11><a href=#document>Document</a></code> are <a href=#about-blank-origin>those it was assigned when its
browsing context was created</a>.</p>
- <dt>If a <code id=origin:document-13><a href=#document>Document</a></code> was created as part of the processing for <a href=#javascript-protocol id=origin:javascript-protocol><code>javascript:</code> URLs</a><dd>
+ <dt>If a <code id=origin:document-12><a href=#document>Document</a></code> was created as part of the processing for <a href=#javascript-protocol id=origin:javascript-protocol><code>javascript:</code> URLs</a><dd>
<p>The <a href=#origin-2 id=origin:origin-2-14>origin</a> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-6>alias</a> to the
<a href=#origin-2 id=origin:origin-2-15>origin</a> of the <a href=#active-document id=origin:active-document>active document</a> of the <a href=#browsing-context id=origin:browsing-context>browsing context</a>
being navigated when the <a href=#navigate id=origin:navigate-3>navigate</a> algorithm was invoked.</p>
<p>The <a href=#effective-script-origin id=origin:effective-script-origin-11>effective script origin</a> is initially an <a href=#concept-origin-alias id=origin:concept-origin-alias-7>alias</a> to the <a href=#effective-script-origin id=origin:effective-script-origin-12>effective script origin</a> of that
- same <code id=origin:document-14><a href=#document>Document</a></code>.</p>
+ same <code id=origin:document-13><a href=#document>Document</a></code>.</p>
- <dt>If a <code id=origin:document-15><a href=#document>Document</a></code> is <a href=#an-iframe-srcdoc-document id=origin:an-iframe-srcdoc-document>an <code>iframe</code> <code>srcdoc</code> document</a><dd>
+ <dt>If a <code id=origin:document-14><a href=#document>Document</a></code> is <a href=#an-iframe-srcdoc-document id=origin:an-iframe-srcdoc-document>an <code>iframe</code> <code>srcdoc</code> document</a><dd>
- <p>The <a href=#origin-2 id=origin:origin-2-16>origin</a> of the <code id=origin:document-16><a href=#document>Document</a></code> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-8>alias</a> to the <a href=#origin-2 id=origin:origin-2-17>origin</a> of the
- <code id=origin:document-17><a href=#document>Document</a></code>'s <a href=#browsing-context id=origin:browsing-context-2>browsing context</a>'s <a href=#browsing-context-container id=origin:browsing-context-container>browsing context
- container</a>'s <code id=origin:document-18><a href=#document>Document</a></code>.</p>
+ <p>The <a href=#origin-2 id=origin:origin-2-16>origin</a> of the <code id=origin:document-15><a href=#document>Document</a></code> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-8>alias</a> to the <a href=#origin-2 id=origin:origin-2-17>origin</a> of the
+ <code id=origin:document-16><a href=#document>Document</a></code>'s <a href=#browsing-context id=origin:browsing-context-2>browsing context</a>'s <a href=#browsing-context-container id=origin:browsing-context-container>browsing context
+ container</a>'s <a id=origin:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
<p>The <a href=#effective-script-origin id=origin:effective-script-origin-13>effective script origin</a> is initially an <a href=#concept-origin-alias id=origin:concept-origin-alias-9>alias</a> to the <a href=#effective-script-origin id=origin:effective-script-origin-14>effective script origin</a> of the
- <code id=origin:document-19><a href=#document>Document</a></code>'s <a href=#browsing-context id=origin:browsing-context-3>browsing context</a>'s <a href=#browsing-context-container id=origin:browsing-context-container-2>browsing context
- container</a>'s <code id=origin:document-20><a href=#document>Document</a></code>.</p>
+ <code id=origin:document-17><a href=#document>Document</a></code>'s <a href=#browsing-context id=origin:browsing-context-3>browsing context</a>'s <a href=#browsing-context-container id=origin:browsing-context-container-2>browsing context
+ container</a>'s <a id=origin:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
- <dt>If a <code id=origin:document-21><a href=#document>Document</a></code> was obtained in some other manner (e.g. a <a href=http://tools.ietf.org/html/rfc2397#section-2 id=origin:data-protocol-2 data-x-internal=data-protocol><code>data:</code> URL</a> typed in by the user or that was returned as the
+ <dt>If a <code id=origin:document-18><a href=#document>Document</a></code> was obtained in some other manner (e.g. a <a href=http://tools.ietf.org/html/rfc2397#section-2 id=origin:data-protocol-2 data-x-internal=data-protocol><code>data:</code> URL</a> typed in by the user or that was returned as the
location of an HTTP redirect (<a href=#concept-http-equivalent-codes id=origin:concept-http-equivalent-codes>or equivalent</a>
- in other protocols), a <code id=origin:document-22><a href=#document>Document</a></code> created using the <code id=origin:dom-domimplementation-createdocument><a href=#dom-domimplementation-createdocument>createDocument()</a></code> API, etc)<dd>
+ in other protocols), a <code id=origin:document-19><a href=#document>Document</a></code> created using the <code id=origin:dom-domimplementation-createdocument><a href=#dom-domimplementation-createdocument>createDocument()</a></code> API, etc)<dd>
<p>The default behavior as defined in the DOM standard applies. <a href=#refsDOM>[DOM]</a>.</p>
<p class=note>The <a href=#origin-2 id=origin:origin-2-18>origin</a> is a globally unique identifier assigned when the
- <code id=origin:document-23><a href=#document>Document</a></code> is created, and the <a href=#effective-script-origin id=origin:effective-script-origin-15>effective script origin</a> is initially an
+ <code id=origin:document-20><a href=#document>Document</a></code> is created, and the <a href=#effective-script-origin id=origin:effective-script-origin-15>effective script origin</a> is initially an
<a href=#concept-origin-alias id=origin:concept-origin-alias-10>alias</a> to the <a href=#origin-2 id=origin:origin-2-19>origin</a> of the
- <code id=origin:document-24><a href=#document>Document</a></code>.</p>
+ <code id=origin:document-21><a href=#document>Document</a></code>.</p>
</dl>
- <p class=note>The <a href=#effective-script-origin id=origin:effective-script-origin-16>effective script origin</a> of a <code id=origin:document-25><a href=#document>Document</a></code> can be
+ <p class=note>The <a href=#effective-script-origin id=origin:effective-script-origin-16>effective script origin</a> of a <code id=origin:document-22><a href=#document>Document</a></code> can be
manipulated using the <code id=origin:dom-document-domain><a href=#dom-document-domain>document.domain</a></code> IDL
attribute.</p>
@@ -57871,7 +57863,7 @@
<dl class=switch><dt>If the image data is <a href=#cors-cross-origin id=origin:cors-cross-origin>CORS-cross-origin</a><dd>The <a href=#origin-2 id=origin:origin-2-20>origin</a> is a globally unique identifier assigned when the image is
created.<dt>If the image data is <a href=#cors-same-origin id=origin:cors-same-origin>CORS-same-origin</a><dd>The <a href=#origin-2 id=origin:origin-2-21>origin</a> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-11>alias</a> to the
- <a href=#origin-2 id=origin:origin-2-22>origin</a> of the <code id=origin:the-img-element-2><a href=#the-img-element>img</a></code> element's <code id=origin:document-26><a href=#document>Document</a></code>.</dl>
+ <a href=#origin-2 id=origin:origin-2-22>origin</a> of the <code id=origin:the-img-element-2><a href=#the-img-element>img</a></code> element's <a id=origin:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</dl>
<p>Images do not have an <a href=#effective-script-origin id=origin:effective-script-origin-17>effective script origin</a>.</p>
@@ -57879,7 +57871,7 @@
<dl class=switch><dt>If the <a href=#media-data id=origin:media-data>media data</a> is <a href=#cors-cross-origin id=origin:cors-cross-origin-2>CORS-cross-origin</a><dd>The <a href=#origin-2 id=origin:origin-2-23>origin</a> is a globally unique identifier assigned when the <a href=#media-data id=origin:media-data-2>media
data</a> is <a href=#fetch id=origin:fetch>fetched</a>.<dt>If the <a href=#media-data id=origin:media-data-3>media data</a> is <a href=#cors-same-origin id=origin:cors-same-origin-2>CORS-same-origin</a><dd>The <a href=#origin-2 id=origin:origin-2-24>origin</a> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-12>alias</a> to the
- <a href=#origin-2 id=origin:origin-2-25>origin</a> of the <a href=#media-element id=origin:media-element>media element</a>'s <code id=origin:document-27><a href=#document>Document</a></code>.</dl>
+ <a href=#origin-2 id=origin:origin-2-25>origin</a> of the <a href=#media-element id=origin:media-element>media element</a>'s <a id=origin:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</dl>
<p><a href=#media-element id=origin:media-element-2>Media elements</a> do not have an <a href=#effective-script-origin id=origin:effective-script-origin-18>effective script
origin</a>.</p>
@@ -57891,14 +57883,14 @@
<a href=#refsCSSFONTLOAD>[CSSFONTLOAD]</a></p>
<p>The <a href=#origin-2 id=origin:origin-2-28>origin</a> of a locally installed system font is an <a href=#concept-origin-alias id=origin:concept-origin-alias-14>alias</a> to the <a href=#origin-2 id=origin:origin-2-29>origin</a> of the
- <code id=origin:document-28><a href=#document>Document</a></code> in which that font is being used.</p>
+ <code id=origin:document-23><a href=#document>Document</a></code> in which that font is being used.</p>
<p>Fonts do not have an <a href=#effective-script-origin id=origin:effective-script-origin-19>effective script origin</a>.</p>
</dl>
<p>Other specifications can override the above definitions by themselves specifying the origin of
- a particular <a href=#url id=origin:url-3>URL</a>, <code id=origin:document-29><a href=#document>Document</a></code>, image, <a href=#media-element id=origin:media-element-3>media element</a>, or
+ a particular <a href=#url id=origin:url-3>URL</a>, <code id=origin:document-24><a href=#document>Document</a></code>, image, <a href=#media-element id=origin:media-element-3>media element</a>, or
font.</p>
@@ -59168,7 +59160,7 @@
would only be evaluated when the link was <a href=#following-hyperlinks-2 id=navigating-across-documents:following-hyperlinks-2-2>followed</a>, while such a URL in the <code id=navigating-across-documents:attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute of an <code id=navigating-across-documents:the-iframe-element><a href=#the-iframe-element>iframe</a></code> element would be
evaluated in the context of the <code id=navigating-across-documents:the-iframe-element-2><a href=#the-iframe-element>iframe</a></code>'s own <a href=#nested-browsing-context id=navigating-across-documents:nested-browsing-context-3>nested browsing
context</a> when the <code id=navigating-across-documents:the-iframe-element-3><a href=#the-iframe-element>iframe</a></code> is being set up; once evaluated, its return value
- (if it was not void) would replace that <a href=#browsing-context id=navigating-across-documents:browsing-context-19>browsing context</a>'s document, thus also
+ (if it was not void) would replace that <a href=#browsing-context id=navigating-across-documents:browsing-context-19>browsing context</a>'s <code id=navigating-across-documents:document-3><a href=#document>Document</a></code>, thus also
changing the <code id=navigating-across-documents:window-2><a href=#window>Window</a></code> object of that <a href=#browsing-context id=navigating-across-documents:browsing-context-20>browsing context</a>.</p>
</div>
@@ -59352,13 +59344,13 @@
which the user agent has a dedicated handler (e.g. one registered using <code id=navigating-across-documents:dom-navigator-registercontenthandler><a href=#dom-navigator-registercontenthandler>registerContentHandler()</a></code>).</p>
<p><dfn id="set-the-document's-address">Setting the document's address</dfn>: If there is no
- <dfn id=override-url>override URL</dfn>, then any <code id=navigating-across-documents:document-3><a href=#document>Document</a></code> created by these steps must have its
+ <dfn id=override-url>override URL</dfn>, then any <code id=navigating-across-documents:document-4><a href=#document>Document</a></code> created by these steps must have its
<a href=http://dom.spec.whatwg.org/#concept-document-url id="navigating-across-documents:the-document's-address-4" data-x-internal="the-document's-address">address</a> set to the <a href=#url id=navigating-across-documents:url-10>URL</a> that was
originally to be <a href=#fetch id=navigating-across-documents:fetch-9>fetched</a>, ignoring any other data that was used to
obtain the resource (e.g. the entity body in the case of a POST submission is not part of
<a id="navigating-across-documents:the-document's-address-5" href=http://dom.spec.whatwg.org/#concept-document-url data-x-internal="the-document's-address">the document's address</a>, nor is the URL of the fallback resource in the case of the
original load having failed and that URL having been found to match a <a href=#concept-appcache-fallback-ns id=navigating-across-documents:concept-appcache-fallback-ns-2>fallback namespace</a>). However, if there <em>is</em>
- an <a href=#override-url id=navigating-across-documents:override-url-2>override URL</a>, then any <code id=navigating-across-documents:document-4><a href=#document>Document</a></code> created by these steps must have
+ an <a href=#override-url id=navigating-across-documents:override-url-2>override URL</a>, then any <code id=navigating-across-documents:document-5><a href=#document>Document</a></code> created by these steps must have
its <a href=http://dom.spec.whatwg.org/#concept-document-url id="navigating-across-documents:the-document's-address-6" data-x-internal="the-document's-address">address</a> set to that <a href=#url id=navigating-across-documents:url-11>URL</a>
instead.</p>
@@ -59366,35 +59358,35 @@
performing <a href=#an-overridden-reload id=navigating-across-documents:an-overridden-reload>an overridden reload</a>.</p>
<p><dfn id=initialise-the-document-object>Initializing a new <code>Document</code>
- object</dfn>: when a <code id=navigating-across-documents:document-5><a href=#document>Document</a></code> is created as part of the above steps, the user agent
+ object</dfn>: when a <code id=navigating-across-documents:document-6><a href=#document>Document</a></code> is created as part of the above steps, the user agent
will be required to additionally run the following algorithm after creating the new object:</p>
<ol><li><p>Create a new <code id=navigating-across-documents:window-3><a href=#window>Window</a></code> object, and associate it with the
- <code id=navigating-across-documents:document-6><a href=#document>Document</a></code>, with one exception: if the <a href=#browsing-context id=navigating-across-documents:browsing-context-26>browsing context</a>'s only entry in
- its <a href=#session-history id=navigating-across-documents:session-history>session history</a> is the <code id=navigating-across-documents:about:blank><a href=#about:blank>about:blank</a></code> <code id=navigating-across-documents:document-7><a href=#document>Document</a></code> that was
+ <code id=navigating-across-documents:document-7><a href=#document>Document</a></code>, with one exception: if the <a href=#browsing-context id=navigating-across-documents:browsing-context-26>browsing context</a>'s only entry in
+ its <a href=#session-history id=navigating-across-documents:session-history>session history</a> is the <code id=navigating-across-documents:about:blank><a href=#about:blank>about:blank</a></code> <code id=navigating-across-documents:document-8><a href=#document>Document</a></code> that was
added when the <a href=#browsing-context id=navigating-across-documents:browsing-context-27>browsing context</a> was created, and navigation is occurring with
- <a href=#replacement-enabled id=navigating-across-documents:replacement-enabled>replacement enabled</a>, and that <code id=navigating-across-documents:document-8><a href=#document>Document</a></code> has the <a href=#same-origin id=navigating-across-documents:same-origin-8>same
- origin</a> as the new <code id=navigating-across-documents:document-9><a href=#document>Document</a></code>, then use the <code id=navigating-across-documents:window-4><a href=#window>Window</a></code> object of that
- <code id=navigating-across-documents:document-10><a href=#document>Document</a></code> instead, and change the <code id=navigating-across-documents:dom-document-2><a href=#dom-document-2>document</a></code>
- attribute of the <code id=navigating-across-documents:window-5><a href=#window>Window</a></code> object to point to the new <code id=navigating-across-documents:document-11><a href=#document>Document</a></code>.</p>
+ <a href=#replacement-enabled id=navigating-across-documents:replacement-enabled>replacement enabled</a>, and that <code id=navigating-across-documents:document-9><a href=#document>Document</a></code> has the <a href=#same-origin id=navigating-across-documents:same-origin-8>same
+ origin</a> as the new <code id=navigating-across-documents:document-10><a href=#document>Document</a></code>, then use the <code id=navigating-across-documents:window-4><a href=#window>Window</a></code> object of that
+ <code id=navigating-across-documents:document-11><a href=#document>Document</a></code> instead, and change the <code id=navigating-across-documents:dom-document-2><a href=#dom-document-2>document</a></code>
+ attribute of the <code id=navigating-across-documents:window-5><a href=#window>Window</a></code> object to point to the new <code id=navigating-across-documents:document-12><a href=#document>Document</a></code>.</p>
<li><p>Set <a href="#the-document's-referrer" id="navigating-across-documents:the-document's-referrer-3">the document's referrer</a> to the <i>address of the resource from which
Request-URIs are obtained</i> as determined when the <a href=#fetch id=navigating-across-documents:fetch-10>fetch</a> algorithm obtained the
resource, if that algorithm was used and determined such a value; otherwise, set it to the
- empty string.<li><p><a href=#implement-the-sandboxing id=navigating-across-documents:implement-the-sandboxing>Implement the sandboxing</a> for the <code id=navigating-across-documents:document-12><a href=#document>Document</a></code>.<li id=fullscreen-logic>
+ empty string.<li><p><a href=#implement-the-sandboxing id=navigating-across-documents:implement-the-sandboxing>Implement the sandboxing</a> for the <code id=navigating-across-documents:document-13><a href=#document>Document</a></code>.<li id=fullscreen-logic>
- <p>If the <a href=#active-sandboxing-flag-set id=navigating-across-documents:active-sandboxing-flag-set>active sandboxing flag set</a> of the <code id=navigating-across-documents:document-13><a href=#document>Document</a></code>'s
+ <p>If the <a href=#active-sandboxing-flag-set id=navigating-across-documents:active-sandboxing-flag-set>active sandboxing flag set</a> of the <code id=navigating-across-documents:document-14><a href=#document>Document</a></code>'s
<a href=#browsing-context id=navigating-across-documents:browsing-context-28>browsing context</a> or any of its <a href=#ancestor-browsing-context id=navigating-across-documents:ancestor-browsing-context-2>ancestor
browsing contexts</a> (if any) have the <a href=#sandboxed-fullscreen-browsing-context-flag id=navigating-across-documents:sandboxed-fullscreen-browsing-context-flag>sandboxed fullscreen browsing context
flag</a> set, then skip this step.</p>
- <p>If the <code id=navigating-across-documents:document-14><a href=#document>Document</a></code>'s <a href=#browsing-context id=navigating-across-documents:browsing-context-29>browsing context</a> has a <a href=#browsing-context-container id=navigating-across-documents:browsing-context-container-2>browsing context
+ <p>If the <code id=navigating-across-documents:document-15><a href=#document>Document</a></code>'s <a href=#browsing-context id=navigating-across-documents:browsing-context-29>browsing context</a> has a <a href=#browsing-context-container id=navigating-across-documents:browsing-context-container-2>browsing context
container</a> and either it is not an <code id=navigating-across-documents:the-iframe-element-4><a href=#the-iframe-element>iframe</a></code> element, or it does not have the
<code id=navigating-across-documents:attr-iframe-allowfullscreen><a href=#attr-iframe-allowfullscreen>allowfullscreen</a></code> attribute specified, or its
- <code id=navigating-across-documents:document-15><a href=#document>Document</a></code> does not have the <a href=#fullscreen-enabled-flag id=navigating-across-documents:fullscreen-enabled-flag>fullscreen enabled flag</a> set, then also
+ <code id=navigating-across-documents:document-16><a href=#document>Document</a></code> does not have the <a href=#fullscreen-enabled-flag id=navigating-across-documents:fullscreen-enabled-flag>fullscreen enabled flag</a> set, then also
skip this step.</p>
- <p>Otherwise, set the <code id=navigating-across-documents:document-16><a href=#document>Document</a></code>'s <a href=#fullscreen-enabled-flag id=navigating-across-documents:fullscreen-enabled-flag-2>fullscreen enabled flag</a>.</p>
+ <p>Otherwise, set the <code id=navigating-across-documents:document-17><a href=#document>Document</a></code>'s <a href=#fullscreen-enabled-flag id=navigating-across-documents:fullscreen-enabled-flag-2>fullscreen enabled flag</a>.</p>
</ol>
@@ -59432,12 +59424,12 @@
<p>Some of the sections below, to which the above algorithm defers in certain cases, require the
user agent to <dfn id=update-the-session-history-with-the-new-page>update the session history with the new page</dfn>. When a user agent is
- required to do this, it must <a href=#queue-a-task id=navigating-across-documents:queue-a-task-2>queue a task</a> (associated with the <code id=navigating-across-documents:document-17><a href=#document>Document</a></code>
+ required to do this, it must <a href=#queue-a-task id=navigating-across-documents:queue-a-task-2>queue a task</a> (associated with the <code id=navigating-across-documents:document-18><a href=#document>Document</a></code>
object of the <a href=#current-entry id=navigating-across-documents:current-entry>current entry</a>, not the new one) to run the following steps:</p>
<ol><li>
- <p><a href=#unload-a-document id=navigating-across-documents:unload-a-document-4>Unload</a> the <code id=navigating-across-documents:document-18><a href=#document>Document</a></code> object of the
+ <p><a href=#unload-a-document id=navigating-across-documents:unload-a-document-4>Unload</a> the <code id=navigating-across-documents:document-19><a href=#document>Document</a></code> object of the
<a href=#current-entry id=navigating-across-documents:current-entry-2>current entry</a>, with the <var>recycle</var> parameter set to false.</p>
<p>If this instance of the <a href=#navigate id=navigating-across-documents:navigate-16>navigation</a> algorithm is canceled while
@@ -59450,12 +59442,12 @@
<dl><dt>If the navigation was initiated for <dfn id=entry-update>entry update</dfn> of an entry<dd>
- <ol><li><p>Replace the <code id=navigating-across-documents:document-19><a href=#document>Document</a></code> of the entry being updated, and any other entries
- that referenced the same document as that entry, with the new <code id=navigating-across-documents:document-20><a href=#document>Document</a></code>.<li><p><a href=#traverse-the-history id=navigating-across-documents:traverse-the-history>Traverse the history</a> to the new entry.</ol>
+ <ol><li><p>Replace the <code id=navigating-across-documents:document-20><a href=#document>Document</a></code> of the entry being updated, and any other entries
+ that referenced the same document as that entry, with the new <code id=navigating-across-documents:document-21><a href=#document>Document</a></code>.<li><p><a href=#traverse-the-history id=navigating-across-documents:traverse-the-history>Traverse the history</a> to the new entry.</ol>
<p class=note>This can only happen if the entry being updated is not the <a href=#current-entry id=navigating-across-documents:current-entry-3>current
entry</a>, and can never happen with <a href=#replacement-enabled id=navigating-across-documents:replacement-enabled-2>replacement enabled</a>. (It happens when the
- user tried to traverse to a session history entry that no longer had a <code id=navigating-across-documents:document-21><a href=#document>Document</a></code>
+ user tried to traverse to a session history entry that no longer had a <code id=navigating-across-documents:document-22><a href=#document>Document</a></code>
object.)</p>
<dt>Otherwise<dd>
@@ -59470,7 +59462,7 @@
user agent's user interface.</p>
<li><p>Append a new entry at the end of the <code id=navigating-across-documents:history-3><a href=#history-3>History</a></code> object representing the new
- resource and its <code id=navigating-across-documents:document-22><a href=#document>Document</a></code> object and related state.<li><p><a href=#traverse-the-history id=navigating-across-documents:traverse-the-history-2>Traverse the history</a> to the new entry. If the navigation was initiated
+ resource and its <code id=navigating-across-documents:document-23><a href=#document>Document</a></code> object and related state.<li><p><a href=#traverse-the-history id=navigating-across-documents:traverse-the-history-2>Traverse the history</a> to the new entry. If the navigation was initiated
with <a href=#replacement-enabled id=navigating-across-documents:replacement-enabled-3>replacement enabled</a>, then the traversal must itself be initiated with
<a href=#replacement-enabled id=navigating-across-documents:replacement-enabled-4>replacement enabled</a>.</p>
@@ -59480,7 +59472,7 @@
<li><p>The <a href=#navigate id=navigating-across-documents:navigate-18>navigation algorithm</a> has now <dfn id=concept-navigate-mature>matured</dfn>.<li><p><i>Fragment identifier loop</i>: <a href=#spin-the-event-loop id=navigating-across-documents:spin-the-event-loop>Spin the event loop</a> for a user-agent-defined
amount of time, as desired by the user agent implementor. (This is intended to allow the user
- agent to optimise the user experience in the face of performance concerns.)<li><p>If the <code id=navigating-across-documents:document-23><a href=#document>Document</a></code> object has no parser, or its parser has <a href=#stop-parsing id=navigating-across-documents:stop-parsing>stopped parsing</a>, or the user agent has reason to believe the user is no longer
+ agent to optimise the user experience in the face of performance concerns.)<li><p>If the <code id=navigating-across-documents:document-24><a href=#document>Document</a></code> object has no parser, or its parser has <a href=#stop-parsing id=navigating-across-documents:stop-parsing>stopped parsing</a>, or the user agent has reason to believe the user is no longer
interested in scrolling to the fragment identifier, then abort these steps.<li><p><a href=#scroll-to-the-fragment-identifier id=navigating-across-documents:scroll-to-the-fragment-identifier>Scroll to the fragment identifier</a> given in <a id="navigating-across-documents:the-document's-address-7" href=http://dom.spec.whatwg.org/#concept-document-url data-x-internal="the-document's-address">the document's
address</a>. If this fails to find <a href=#the-indicated-part-of-the-document id=navigating-across-documents:the-indicated-part-of-the-document>an
indicated part of the document</a>, then return to the <i>fragment identifier loop</i>
@@ -61506,8 +61498,8 @@
target <code id=downloading-or-updating-an-application-cache:applicationcache-18><a href=#applicationcache>ApplicationCache</a></code> object <var>target</var>, the user agent must run
the appropriate steps from the following list:</p>
- <dl><dt>If <var>target</var>'s <code id=downloading-or-updating-an-application-cache:document-13><a href=#document>Document</a></code> is
- <a href=#ready-for-post-load-tasks id=downloading-or-updating-an-application-cache:ready-for-post-load-tasks>ready for post-load tasks</a><dd><p><a href=#queue-a-task id=downloading-or-updating-an-application-cache:queue-a-task>Queue</a> the task <var>task</var>.<dt>Otherwise<dd><p>Add <var>task</var> to <var>target</var>'s <code id=downloading-or-updating-an-application-cache:document-14><a href=#document>Document</a></code>'s list
+ <dl><dt>If <var>target</var>'s <a id=downloading-or-updating-an-application-cache:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
+ <a href=#ready-for-post-load-tasks id=downloading-or-updating-an-application-cache:ready-for-post-load-tasks>ready for post-load tasks</a><dd><p><a href=#queue-a-task id=downloading-or-updating-an-application-cache:queue-a-task>Queue</a> the task <var>task</var>.<dt>Otherwise<dd><p>Add <var>task</var> to <var>target</var>'s <a id=downloading-or-updating-an-application-cache:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s list
of <a href=#pending-application-cache-download-process-tasks id=downloading-or-updating-an-application-cache:pending-application-cache-download-process-tasks>pending application cache download process tasks</a>.</dl>
<p>The <a href=#task-source id=downloading-or-updating-an-application-cache:task-source>task source</a> for these <a href=#concept-task id=downloading-or-updating-an-application-cache:concept-task-19>tasks</a> is the
@@ -62463,22 +62455,22 @@
<p>Each <a href=#concept-task id=definitions-3:concept-task>task</a> in a <a href=#browsing-context id=definitions-3:browsing-context-8>browsing context</a> <a href=#event-loop id=definitions-3:event-loop-10>event
loop</a> is associated with a <code id=definitions-3:document><a href=#document>Document</a></code>; if the task was queued in the context of
- an element, then it is the element's <code id=definitions-3:document-2><a href=#document>Document</a></code>; if the task was queued in the context
+ an element, then it is the element's <a id=definitions-3:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>; if the task was queued in the context
of a <a href=#browsing-context id=definitions-3:browsing-context-9>browsing context</a>, then it is the <a href=#browsing-context id=definitions-3:browsing-context-10>browsing context</a>'s <a href=#active-document id=definitions-3:active-document>active
document</a> at the time the task was queued; if the task was queued by or for a <a href=#concept-script id=definitions-3:concept-script>script</a> then the document is the <a href=#responsible-document id=definitions-3:responsible-document>responsible document</a>
specified by the script's <a href=#settings-object id=definitions-3:settings-object>settings object</a>.</p>
<p>A <a href=#concept-task id=definitions-3:concept-task-2>task</a> is intended for a specific <a href=#event-loop id=definitions-3:event-loop-11>event loop</a>:
the <a href=#event-loop id=definitions-3:event-loop-12>event loop</a> that is handling <a href=#concept-task id=definitions-3:concept-task-3>tasks</a> for the
- <a href=#concept-task id=definitions-3:concept-task-4>task</a>'s associated <code id=definitions-3:document-3><a href=#document>Document</a></code> or <a href=#workers>worker</a>.</p>
+ <a href=#concept-task id=definitions-3:concept-task-4>task</a>'s associated <code id=definitions-3:document-2><a href=#document>Document</a></code> or <a href=#workers>worker</a>.</p>
<p>When a user agent is to <dfn id=queue-a-task>queue a task</dfn>, it must add the given task to one of the <a href=#task-queue id=definitions-3:task-queue-3>task queues</a> of the relevant <a href=#event-loop id=definitions-3:event-loop-13>event loop</a>.</p>
<p>Each <a href=#concept-task id=definitions-3:concept-task-5>task</a> is defined as coming from a specific <dfn id=task-source>task
source</dfn>. All the tasks from one particular <a href=#task-source id=definitions-3:task-source>task source</a> and destined to a
particular <a href=#event-loop id=definitions-3:event-loop-14>event loop</a> (e.g. the callbacks generated by timers of a
- <code id=definitions-3:document-4><a href=#document>Document</a></code>, the events fired for mouse movements over that <code id=definitions-3:document-5><a href=#document>Document</a></code>, the
- tasks queued for the parser of that <code id=definitions-3:document-6><a href=#document>Document</a></code>) must always be added to the same
+ <code id=definitions-3:document-3><a href=#document>Document</a></code>, the events fired for mouse movements over that <code id=definitions-3:document-4><a href=#document>Document</a></code>, the
+ tasks queued for the parser of that <code id=definitions-3:document-5><a href=#document>Document</a></code>) must always be added to the same
<a href=#task-queue id=definitions-3:task-queue-4>task queue</a>, but <a href=#concept-task id=definitions-3:concept-task-6>tasks</a> from different <a href=#task-source id=definitions-3:task-source-2>task sources</a> may be placed in different <a href=#task-queue id=definitions-3:task-queue-5>task
queues</a>.</p>
@@ -62939,9 +62931,9 @@
<ol><li>
<p>If <var>H</var> is an element's <a href=#event-handlers id=event-handler-attributes:event-handlers-18>event
- handler</a>, then let <var>element</var> be the element, and <var>document</var> be the element's <code id=event-handler-attributes:document><a href=#document>Document</a></code>.</p>
+ handler</a>, then let <var>element</var> be the element, and <var>document</var> be the element's <a id=event-handler-attributes:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
- <p>Otherwise, <var>H</var> is a <code id=event-handler-attributes:window-3><a href=#window>Window</a></code> object's <a href=#event-handlers id=event-handler-attributes:event-handlers-19>event handler</a>: let <var>element</var> be null, and let <var>document</var> be the <code id=event-handler-attributes:document-2><a href=#document>Document</a></code> most recently associated with that
+ <p>Otherwise, <var>H</var> is a <code id=event-handler-attributes:window-3><a href=#window>Window</a></code> object's <a href=#event-handlers id=event-handler-attributes:event-handlers-19>event handler</a>: let <var>element</var> be null, and let <var>document</var> be the <code id=event-handler-attributes:document><a href=#document>Document</a></code> most recently associated with that
<code id=event-handler-attributes:window-4><a href=#window>Window</a></code> object.</p>
<li><p>If <var>document</var> is
@@ -70021,7 +70013,7 @@
<dl><dt>Blocking third-party storage<dd>
<p>User agents may restrict access to the <code id=user-tracking:dom-localstorage><a href=#dom-localstorage>localStorage</a></code>
- objects to scripts originating at the domain of the top-level document of the <a href=#browsing-context id=user-tracking:browsing-context>browsing
+ objects to scripts originating at the domain of the <a href=#active-document id=user-tracking:active-document>active document</a> of the <a href=#top-level-browsing-context id=user-tracking:top-level-browsing-context>top-level browsing
context</a>, for instance denying access to the API for pages from other domains running in
<code id=user-tracking:the-iframe-element><a href=#the-iframe-element>iframe</a></code>s.</p>
@@ -70031,7 +70023,7 @@
data after a period of time.</p>
<p>For example, a user agent could be configured to treat third-party local storage areas as
- session-only storage, deleting the data once the user had closed all the <a href=#browsing-context id=user-tracking:browsing-context-2>browsing contexts</a> that could access it.</p>
+ session-only storage, deleting the data once the user had closed all the <a href=#browsing-context id=user-tracking:browsing-context>browsing contexts</a> that could access it.</p>
<p>This can restrict the ability of a site to track a user, as the site would then only be able
to track the user across multiple sessions when he authenticates with the site itself (e.g. by
@@ -73354,8 +73346,8 @@
<code id=creating-and-inserting-nodes:htmlunknownelement><a href=#htmlunknownelement>HTMLUnknownElement</a></code>. Elements in other namespaces whose interface is not defined by
that namespace's specification must use the interface <code id=creating-and-inserting-nodes:element><a href=#element>Element</a></code>.</p>
- <p>The <code id=creating-and-inserting-nodes:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code> of the newly created element
- must be the same as that of the <var>intended parent</var>.</p>
+ <p>The <a id=creating-and-inserting-nodes:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the newly created element
+ must be the <a id=creating-and-inserting-nodes:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <var>intended parent</var>.</p>
<li><p>If the newly created element has an <code>xmlns</code> attribute <em>in the
<a href=#xmlns-namespace id=creating-and-inserting-nodes:xmlns-namespace>XMLNS namespace</a></em> whose value is not exactly the same as the element's namespace,
@@ -73515,7 +73507,7 @@
location</var>, then append <var>data</var> to that <code id=creating-and-inserting-nodes:text-3><a href=#text>Text</a></code> node's data.</p>
<p>Otherwise, create a new <code id=creating-and-inserting-nodes:text-4><a href=#text>Text</a></code> node whose data is <var>data</var> and
- whose <code id=creating-and-inserting-nodes:dom-node-ownerdocument-2><a href=#dom-node-ownerdocument>ownerDocument</a></code> is the same as that of the
+ whose <a id=creating-and-inserting-nodes:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is the same as that of the
element in which the <var>adjusted insertion location</var> finds itself, and insert
the newly created node at the <var>adjusted insertion location</var>.</p>
@@ -73563,7 +73555,7 @@
processed.<li><p>If <var>position</var> was specified, then let the <var>adjusted
insertion location</var> be <var>position</var>. Otherwise, let <var>adjusted
insertion location</var> be the <a href=#appropriate-place-for-inserting-a-node id=creating-and-inserting-nodes:appropriate-place-for-inserting-a-node-3>appropriate place for inserting a node</a>.<li><p>Create a <code id=creating-and-inserting-nodes:comment-2><a href=#comment-2>Comment</a></code> node whose <code>data</code> attribute is set to
- <var>data</var> and whose <code id=creating-and-inserting-nodes:dom-node-ownerdocument-3><a href=#dom-node-ownerdocument>ownerDocument</a></code> is
+ <var>data</var> and whose <a id=creating-and-inserting-nodes:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
the same as that of the node in which the <var>adjusted insertion location</var> finds
itself.</p>
@@ -73732,7 +73724,7 @@
<p><a href=#parse-error id=the-before-html-insertion-mode:parse-error-2>Parse error</a>. Ignore the token.</p>
<dt>Anything else<dd>
- <p>Create an <code id=the-before-html-insertion-mode:the-html-element><a href=#the-html-element>html</a></code> element whose <code id=the-before-html-insertion-mode:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code> is the <code id=the-before-html-insertion-mode:document-6><a href=#document>Document</a></code> object. Append
+ <p>Create an <code id=the-before-html-insertion-mode:the-html-element><a href=#the-html-element>html</a></code> element whose <a id=the-before-html-insertion-mode:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is the <code id=the-before-html-insertion-mode:document-6><a href=#document>Document</a></code> object. Append
it to the <code id=the-before-html-insertion-mode:document-7><a href=#document>Document</a></code> object. Put this element in the <a href=#stack-of-open-elements id=the-before-html-insertion-mode:stack-of-open-elements-2>stack of open
elements</a>.</p>
@@ -76697,17 +76689,17 @@
<li>
<p>If there is a <var id=parsing-html-fragments:concept-frag-parse-context-2><a href=#concept-frag-parse-context>context</a></var> element, and the
- <code id=parsing-html-fragments:document-2><a href=#document>Document</a></code> of the <var id=parsing-html-fragments:concept-frag-parse-context-3><a href=#concept-frag-parse-context>context</a></var> element is in
- <a href=#quirks-mode id=parsing-html-fragments:quirks-mode>quirks mode</a>, then let the <code id=parsing-html-fragments:document-3><a href=#document>Document</a></code> be in <a href=#quirks-mode id=parsing-html-fragments:quirks-mode-2>quirks mode</a>.
+ <a id=parsing-html-fragments:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <var id=parsing-html-fragments:concept-frag-parse-context-3><a href=#concept-frag-parse-context>context</a></var> element is in
+ <a href=#quirks-mode id=parsing-html-fragments:quirks-mode>quirks mode</a>, then let the <code id=parsing-html-fragments:document-2><a href=#document>Document</a></code> be in <a href=#quirks-mode id=parsing-html-fragments:quirks-mode-2>quirks mode</a>.
Otherwise, if there is a <var id=parsing-html-fragments:concept-frag-parse-context-4><a href=#concept-frag-parse-context>context</a></var> element, and the
- <code id=parsing-html-fragments:document-4><a href=#document>Document</a></code> of the <var id=parsing-html-fragments:concept-frag-parse-context-5><a href=#concept-frag-parse-context>context</a></var> element is in
- <a href=#limited-quirks-mode id=parsing-html-fragments:limited-quirks-mode>limited-quirks mode</a>, then let the <code id=parsing-html-fragments:document-5><a href=#document>Document</a></code> be in <a href=#limited-quirks-mode id=parsing-html-fragments:limited-quirks-mode-2>limited-quirks
- mode</a>. Otherwise, leave the <code id=parsing-html-fragments:document-6><a href=#document>Document</a></code> in <a href=#no-quirks-mode id=parsing-html-fragments:no-quirks-mode>no-quirks mode</a>.</p>
+ <a id=parsing-html-fragments:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <var id=parsing-html-fragments:concept-frag-parse-context-5><a href=#concept-frag-parse-context>context</a></var> element is in
+ <a href=#limited-quirks-mode id=parsing-html-fragments:limited-quirks-mode>limited-quirks mode</a>, then let the <code id=parsing-html-fragments:document-3><a href=#document>Document</a></code> be in <a href=#limited-quirks-mode id=parsing-html-fragments:limited-quirks-mode-2>limited-quirks
+ mode</a>. Otherwise, leave the <code id=parsing-html-fragments:document-4><a href=#document>Document</a></code> in <a href=#no-quirks-mode id=parsing-html-fragments:no-quirks-mode>no-quirks mode</a>.</p>
<li>
<p>Create a new <a href=#html-parser id=parsing-html-fragments:html-parser>HTML parser</a>, and associate it with the just created
- <code id=parsing-html-fragments:document-7><a href=#document>Document</a></code> node.</p>
+ <code id=parsing-html-fragments:document-5><a href=#document>Document</a></code> node.</p>
<li>
@@ -76736,7 +76728,7 @@
<li>
- <p>Append the element <var>root</var> to the <code id=parsing-html-fragments:document-8><a href=#document>Document</a></code> node created
+ <p>Append the element <var>root</var> to the <code id=parsing-html-fragments:document-6><a href=#document>Document</a></code> node created
above.</p>
<li>
@@ -76783,7 +76775,7 @@
<p>If there is a <var id=parsing-html-fragments:concept-frag-parse-context-10><a href=#concept-frag-parse-context>context</a></var> element, return the child
nodes of <var>root</var>, in <a href=#tree-order id=parsing-html-fragments:tree-order>tree order</a>.</p>
- <p>Otherwise, return the children of the <code id=parsing-html-fragments:document-9><a href=#document>Document</a></code> object, in <a href=#tree-order id=parsing-html-fragments:tree-order-2>tree
+ <p>Otherwise, return the children of the <code id=parsing-html-fragments:document-7><a href=#document>Document</a></code> object, in <a href=#tree-order id=parsing-html-fragments:tree-order-2>tree
order</a>.</p>
</ol>
@@ -76921,7 +76913,8 @@
XML is not formally extensible in the manner that is needed for <code id=parsing-xhtml-documents:the-template-element-3><a href=#the-template-element>template</a></code> processing.
<a href=#refsXML>[XML]</a></p>
- <p>When an <a href=#xml-parser id=parsing-xhtml-documents:xml-parser-9>XML parser</a> creates a <code id=parsing-xhtml-documents:node><a href=#node>Node</a></code> object, its <code id=parsing-xhtml-documents:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code> must be set to the <code id=parsing-xhtml-documents:document-6><a href=#document>Document</a></code> of
+ <p>When an <a href=#xml-parser id=parsing-xhtml-documents:xml-parser-9>XML parser</a> creates a <code id=parsing-xhtml-documents:node><a href=#node>Node</a></code> object, its <a id=parsing-xhtml-documents:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>
+ must be set to the <a id=parsing-xhtml-documents:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of
the node into which the newly created node is to be inserted.</p>
<p>Certain algorithms in this specification <dfn id=feed-the-parser>spoon-feed the
@@ -77187,7 +77180,7 @@
<p>For each property in the table below, given a <code id=the-page:the-body-element><a href=#the-body-element>body</a></code> element, the first attribute
that exists <a href=#maps-to-the-pixel-length-property id=the-page:maps-to-the-pixel-length-property>maps to the pixel length property</a> on the <code id=the-page:the-body-element-2><a href=#the-body-element>body</a></code> element. If
none of the attributes for a property are found, or if the value of the attribute that was found
- cannot be parsed successfully, then, if the <code id=the-page:the-body-element-3><a href=#the-body-element>body</a></code> element's <code id=the-page:document><a href=#document>Document</a></code>'s
+ cannot be parsed successfully, then, if the <code id=the-page:the-body-element-3><a href=#the-body-element>body</a></code> element's <a id=the-page:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s
<a href=#browsing-context id=the-page:browsing-context>browsing context</a> does not have its <a href=#seamless-browsing-context-flag id=the-page:seamless-browsing-context-flag>seamless browsing context flag</a> set, a
default value of 8px is expected to be used for that property instead.</p>
@@ -77211,7 +77204,7 @@
<tr><td><code id=the-page:the-body-element-15><a href=#the-body-element>body</a></code> element's <code id=the-page:attr-body-leftmargin><a href=#attr-body-leftmargin>leftmargin</a></code> attribute
</table>
- <p>If the <code id=the-page:the-body-element-16><a href=#the-body-element>body</a></code> element's <code id=the-page:document-2><a href=#document>Document</a></code>'s <a href=#browsing-context id=the-page:browsing-context-2>browsing context</a> is a
+ <p>If the <code id=the-page:the-body-element-16><a href=#the-body-element>body</a></code> element's <a id=the-page:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#browsing-context id=the-page:browsing-context-2>browsing context</a> is a
<a href=#nested-browsing-context id=the-page:nested-browsing-context>nested browsing context</a>, and the <a href=#browsing-context-container id=the-page:browsing-context-container>browsing context container</a> of that
<a href=#nested-browsing-context id=the-page:nested-browsing-context-2>nested browsing context</a> is a <code id=the-page:frame><a href=#frame>frame</a></code> or <code id=the-page:the-iframe-element><a href=#the-iframe-element>iframe</a></code> element, then
the <dfn id=container-frame-element>container frame element</dfn> of the <code id=the-page:the-body-element-17><a href=#the-body-element>body</a></code> element is that <code id=the-page:frame-2><a href=#frame>frame</a></code>
@@ -77225,12 +77218,12 @@
<hr>
- <p>If a <code id=the-page:document-3><a href=#document>Document</a></code> is in a <a href=#nested-browsing-context id=the-page:nested-browsing-context-3>nested browsing context</a>, it is expected to be
+ <p>If a <code id=the-page:document><a href=#document>Document</a></code> is in a <a href=#nested-browsing-context id=the-page:nested-browsing-context-3>nested browsing context</a>, it is expected to be
positioned and sized to fit inside the content box of its <a href=#browsing-context-container id=the-page:browsing-context-container-2>browsing context container</a>.
If a <a href=#browsing-context id=the-page:browsing-context-3>browsing context</a> is not <a href=#being-rendered id=the-page:being-rendered>being rendered</a>, it is expected to have a
viewport with zero width and zero height.</p>
- <p>If the <code id=the-page:document-4><a href=#document>Document</a></code> is in a <a href=#nested-browsing-context id=the-page:nested-browsing-context-4>nested browsing context</a>, and the
+ <p>If the <code id=the-page:document-2><a href=#document>Document</a></code> is in a <a href=#nested-browsing-context id=the-page:nested-browsing-context-4>nested browsing context</a>, and the
<a href=#browsing-context-container id=the-page:browsing-context-container-3>browsing context container</a> of that <a href=#nested-browsing-context id=the-page:nested-browsing-context-5>nested browsing context</a> is a
<code id=the-page:frame-3><a href=#frame>frame</a></code> or <code id=the-page:the-iframe-element-4><a href=#the-iframe-element>iframe</a></code> element, and that element has a <code>scrolling</code> attribute, and that attribute's value is an <a href=#ascii-case-insensitive id=the-page:ascii-case-insensitive>ASCII
case-insensitive</a> match for the string "<code>off</code>", "<code>noscroll</code>", or "<code>no</code>", then the user agent is expected to
@@ -77258,18 +77251,18 @@
<p>When a <code id=the-page:the-body-element-21><a href=#the-body-element>body</a></code> element has a <code id=the-page:attr-body-link><a href=#attr-body-link>link</a></code> attribute, its
value is expected to be parsed using the <a href=#rules-for-parsing-a-legacy-colour-value id=the-page:rules-for-parsing-a-legacy-colour-value-3>rules for parsing a legacy colour value</a>, and
if that does not return an error, the user agent is expected to treat the attribute as a <a href=#presentational-hints id=the-page:presentational-hints-4>presentational hint</a> setting the 'color' property of any
- element in the <code id=the-page:document-5><a href=#document>Document</a></code> matching the ':link' pseudo-class to the resulting colour.</p>
+ element in the <code id=the-page:document-3><a href=#document>Document</a></code> matching the ':link' pseudo-class to the resulting colour.</p>
<p>When a <code id=the-page:the-body-element-22><a href=#the-body-element>body</a></code> element has a <code id=the-page:attr-body-vlink><a href=#attr-body-vlink>vlink</a></code> attribute,
its value is expected to be parsed using the <a href=#rules-for-parsing-a-legacy-colour-value id=the-page:rules-for-parsing-a-legacy-colour-value-4>rules for parsing a legacy colour value</a>,
and if that does not return an error, the user agent is expected to treat the attribute as a <a href=#presentational-hints id=the-page:presentational-hints-5>presentational hint</a> setting the 'color' property of any
- element in the <code id=the-page:document-6><a href=#document>Document</a></code> matching the ':visited' pseudo-class to the resulting
+ element in the <code id=the-page:document-4><a href=#document>Document</a></code> matching the ':visited' pseudo-class to the resulting
colour.</p>
<p>When a <code id=the-page:the-body-element-23><a href=#the-body-element>body</a></code> element has an <code id=the-page:attr-body-alink><a href=#attr-body-alink>alink</a></code> attribute,
its value is expected to be parsed using the <a href=#rules-for-parsing-a-legacy-colour-value id=the-page:rules-for-parsing-a-legacy-colour-value-5>rules for parsing a legacy colour value</a>,
and if that does not return an error, the user agent is expected to treat the attribute as a <a href=#presentational-hints id=the-page:presentational-hints-6>presentational hint</a> setting the 'color' property of any
- element in the <code id=the-page:document-7><a href=#document>Document</a></code> matching the ':active' pseudo-class and either the ':link'
+ element in the <code id=the-page:document-5><a href=#document>Document</a></code> matching the ':active' pseudo-class and either the ':link'
pseudo-class or the ':visited' pseudo-class to the resulting colour.</p>
@@ -78445,12 +78438,12 @@
<p>When a user agent is to <dfn id=restart-the-animation>restart the animation</dfn> for an <code id=images-2:the-img-element-4><a href=#the-img-element>img</a></code> element
showing an animated image, all animated images with the same <a href=#absolute-url id=images-2:absolute-url-3>absolute URL</a> and the
- same image data in that <code id=images-2:the-img-element-5><a href=#the-img-element>img</a></code> element's <code id=images-2:document-2><a href=#document>Document</a></code> are expected to restart
+ same image data in that <code id=images-2:the-img-element-5><a href=#the-img-element>img</a></code> element's <a id=images-2:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> are expected to restart
their animation from the beginning.</p>
<hr>
- <p>The following CSS rules are expected to apply when the <code id=images-2:document-3><a href=#document>Document</a></code> is in <a href=#quirks-mode id=images-2:quirks-mode-2>quirks
+ <p>The following CSS rules are expected to apply when the <code id=images-2:document-2><a href=#document>Document</a></code> is in <a href=#quirks-mode id=images-2:quirks-mode-2>quirks
mode</a>:</p>
<pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
@@ -79757,7 +79750,7 @@
contents:</p>
<ul class=brief><li>The element is still in the <a href=#stack-of-open-elements id=the-applet-element:stack-of-open-elements>stack of open elements</a> of an <a href=#html-parser id=the-applet-element:html-parser>HTML
- parser</a> or <a href=#xml-parser id=the-applet-element:xml-parser>XML parser</a>.<li>The element is not <a href=#in-a-document id=the-applet-element:in-a-document>in a <code>Document</code></a>.<li>The element's <code id=the-applet-element:document><a href=#document>Document</a></code> is not <a href=#fully-active id=the-applet-element:fully-active>fully active</a>.<li id=sandboxPluginApplet>The element's <code id=the-applet-element:document-2><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-applet-element:active-sandboxing-flag-set>active sandboxing flag
+ parser</a> or <a href=#xml-parser id=the-applet-element:xml-parser>XML parser</a>.<li>The element is not <a href=#in-a-document id=the-applet-element:in-a-document>in a <code>Document</code></a>.<li>The element's <a id=the-applet-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-applet-element:fully-active>fully active</a>.<li id=sandboxPluginApplet>The element's <a id=the-applet-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=the-applet-element:active-sandboxing-flag-set>active sandboxing flag
set</a> has its <a href=#sandboxed-plugins-browsing-context-flag id=the-applet-element:sandboxed-plugins-browsing-context-flag>sandboxed plugins browsing context flag</a> set.<li>The element has an ancestor <a href=#media-element id=the-applet-element:media-element>media element</a>.<li>The element has an ancestor <code id=the-applet-element:the-object-element><a href=#the-object-element>object</a></code> element that is <em>not</em> showing its
<a href=#fallback-content id=the-applet-element:fallback-content>fallback content</a>.<li>No Java Language runtime <a href=#plugin id=the-applet-element:plugin>plugin</a> is available.<li>A Java runtime <a href=#plugin id=the-applet-element:plugin-2>plugin</a> is available but it is disabled.</ul>
@@ -80064,7 +80057,7 @@
<p>Any <a href=#navigate id=frames:navigate-2>navigation</a> required of the user agent in the <a href=#process-the-frame-attributes id=frames:process-the-frame-attributes-3>process
the <code>frame</code> attributes</a> algorithm must be completed as an <a href=#explicit-self-navigation-override id=frames:explicit-self-navigation-override>explicit
- self-navigation override</a> and with the <code id=frames:frame-8><a href=#frame>frame</a></code> element's document's
+ self-navigation override</a> and with the <code id=frames:frame-8><a href=#frame>frame</a></code> element's <a id=frames:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s
<a href=#browsing-context id=frames:browsing-context>browsing context</a> as the <a href=#source-browsing-context id=frames:source-browsing-context>source browsing context</a>.</p>
<p>Furthermore, if the <a href=#active-document id=frames:active-document>active document</a> of the element's <a href=#child-browsing-context id=frames:child-browsing-context-2>child browsing
Modified: index
===================================================================
--- index 2014-09-03 23:43:15 UTC (rev 8741)
+++ index 2014-09-04 21:16:25 UTC (rev 8742)
@@ -291,7 +291,7 @@
</style><link rel=stylesheet href=status.css><body onload=init()>
<header id=head class="head with-buttons">
<p><a href=//www.whatwg.org/ class=logo><img src=/images/logo width=101 alt=WHATWG height=101></a></p>
- <hgroup><h1 class=allcaps>HTML</h1><h2 id=living-standard-—-last-updated-[date:-01-jan-1901] class="no-num no-toc">Living Standard — Last Updated <span class=pubdate>3 September 2014</span></h2></hgroup>
+ <hgroup><h1 class=allcaps>HTML</h1><h2 id=living-standard-—-last-updated-[date:-01-jan-1901] class="no-num no-toc">Living Standard — Last Updated <span class=pubdate>4 September 2014</span></h2></hgroup>
<nav>
<div>
@@ -1703,15 +1703,6 @@
element</a>. When a node is <a href=#in-a-document id=dom-trees:in-a-document>in a <code>Document</code></a>, its <a href=#home-subtree id=dom-trees:home-subtree>home
subtree</a> is that <code id=dom-trees:document-4><a href=#document>Document</a></code>'s tree.</p>
- <p>The <code id=dom-trees:document-5><a href=#document>Document</a></code> of a <code id=dom-trees:node><a href=#node>Node</a></code> (such as an element) is the
- <code id=dom-trees:document-6><a href=#document>Document</a></code> that the <code id=dom-trees:node-2><a href=#node>Node</a></code>'s <code id=dom-trees:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code> IDL attribute returns. When a
- <code id=dom-trees:node-3><a href=#node>Node</a></code> is <a href=#in-a-document id=dom-trees:in-a-document-2>in a <code>Document</code></a> then that <code id=dom-trees:document-7><a href=#document>Document</a></code> is
- always the <code id=dom-trees:node-4><a href=#node>Node</a></code>'s <code id=dom-trees:document-8><a href=#document>Document</a></code>, and the <code id=dom-trees:node-5><a href=#node>Node</a></code>'s <code id=dom-trees:dom-node-ownerdocument-2><a href=#dom-node-ownerdocument>ownerDocument</a></code> IDL attribute thus always returns that
- <code id=dom-trees:document-9><a href=#document>Document</a></code>.</p>
-
- <p>The <code id=dom-trees:document-10><a href=#document>Document</a></code> of a content attribute is the <code id=dom-trees:document-11><a href=#document>Document</a></code> of the
- attribute's element.</p>
-
<p>The term <dfn id=tree-order>tree order</dfn> means a pre-order, depth-first traversal of DOM nodes involved
(through the <code id=dom-trees:dom-node-parentnode><a href=#dom-node-parentnode>parentNode</a></code>/<code id=dom-trees:dom-node-childnodes><a href=#dom-node-childnodes>childNodes</a></code> relationship).</p>
@@ -2358,7 +2349,7 @@
<p>In particular, the following features are defined in the DOM specification: <a href=#refsDOM>[DOM]</a></p>
- <ul class=brief><li><dfn id=attr><code>Attr</code></dfn> interface<li><dfn id=comment-2><code>Comment</code></dfn> interface<li><dfn id=domimplementation><code>DOMImplementation</code></dfn> interface<li><dfn id=dom-document><code>Document</code></dfn> interface<li><dfn id=xmldocument><code>XMLDocument</code></dfn> interface<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface<li><dfn id=documenttype><code>DocumentType</code></dfn> interface<li><dfn id=domexception><code>DOMException</code></dfn> interface<li><dfn id=childnode><code>ChildNode</code></dfn> interface<li><dfn id=element><code>Element</code></dfn> interface<li><dfn id=node><code>Node</code></dfn> interface<li><dfn id=nodelist><code>NodeList</code></dfn> interface<li><dfn id=processinginstruction><code>ProcessingInstruction</code></dfn> interface<li><dfn id=text><code>Text</code></dfn> interface<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface<li><dfn id=dom-htmlcolle
ction-length><code>HTMLCollection.length</code></dfn> attribute<li><dfn id=dom-htmlcollection-item><code>HTMLCollection.item()</code></dfn> method<li><dfn id=dom-htmlcollection-nameditem><code>HTMLCollection.namedItem()</code></dfn> method<li>The terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn><li><dfn id=domtokenlist><code>DOMTokenList</code></dfn> interface<li><dfn id=domsettabletokenlist><code>DOMSettableTokenList</code></dfn> interface<li><dfn id=dom-domsettabletokenlist-value><code>DOMSettableTokenList.value</code></dfn> attribute<li><dfn id=dom-domimplementation-createdocument><code>createDocument()</code></dfn> method<li><dfn id=dom-domimplementation-createhtmldocument><code>createHTMLDocument()</code></dfn> method<li><dfn id=dom-document-createelement><code>createElement()</code></dfn> method<li><dfn id=dom-document-createelementns><code>createElementNS()</code></dfn> method<li><dfn id=dom-docum
ent-getelementbyid><code>getElementById()</code></dfn> method<li><dfn id=dom-document-getelementsbyclassname><code>getElementsByClassName()</code></dfn> method<li><dfn id=dom-node-insertbefore><code>insertBefore()</code></dfn> method<li><dfn id=dom-node-ownerdocument><code>ownerDocument</code></dfn> attribute<li><dfn id=dom-node-childnodes><code>childNodes</code></dfn> attribute<li><dfn id=dom-node-localname><code>localName</code></dfn> attribute<li><dfn id=dom-node-parentnode><code>parentNode</code></dfn> attribute<li><dfn id=dom-node-namespaceuri><code>namespaceURI</code></dfn> attribute<li><dfn id=dom-element-tagname><code>tagName</code></dfn> attribute<li><dfn id=dom-element-id><code>id</code></dfn> attribute<li><dfn id=textcontent><code>textContent</code></dfn> attribute<li>The <dfn id=concept-node-insert>insert</dfn>, <dfn id=concept-node-append>append</dfn>, <dfn id=concept-node-remove>remove</dfn>, <dfn id=concept-node-replace>replace</dfn>, and <dfn id=concept-node-
adopt>adopt</dfn> algorithms for nodes<li>The <dfn id=nodes-are-inserted>nodes are inserted</dfn> and <dfn id=nodes-are-removed>nodes are removed</dfn> concepts<li>An element's <dfn id=concept-node-adopt-ext>adopting steps</dfn><li>The <dfn id=attribute-list>attribute list</dfn> concept.<li>The <dfn id=concept-cd-data>data</dfn> of a text node.<li><dfn id=event><code>Event</code></dfn> interface<li><dfn id=eventtarget><code>EventTarget</code></dfn> interface<li><dfn id=eventinit><code>EventInit</code></dfn> dictionary type<li><dfn id=dom-event-target><code>target</code></dfn> attribute<li><dfn id=dom-event-currenttarget><code>currentTarget</code></dfn> attribute<li><dfn id=dom-event-istrusted><code>isTrusted</code></dfn> attribute<li><dfn id=dom-event-initevent><code>initEvent()</code></dfn> method<li><dfn id=dom-eventtarget-addeventlistener><code>addEventListener()</code></dfn> method<li>The <dfn id=concept-event-type>type</dfn> of an event<li>The concept of an <dfn id=conc
ept-event-listener>event listener</dfn> and the <a href=#concept-event-listener id=dependencies:concept-event-listener>event listeners</a> associated with an <code id=dependencies:eventtarget><a href=#eventtarget>EventTarget</a></code><li>The concept of a <dfn id=concept-event-target-override>target override</dfn><li>The concept of a regular <dfn id=event-parent>event parent</dfn> and a <dfn id=cross-boundary-event-parent>cross-boundary event parent</dfn><li>The <dfn id="document's-character-encoding">encoding</dfn> (herein the <i>character encoding</i>) and <dfn id=concept-document-content-type>content type</dfn> of a <code id=dependencies:document><a href=#document>Document</a></code><li>The distinction between <dfn id=xml-documents>XML documents</dfn> and <dfn id=html-documents>HTML documents</dfn><li>The terms <dfn id=quirks-mode>quirks mode</dfn>, <dfn id=limited-quirks-mode>limited-quirks mode</dfn>, and <dfn id=no-quirks-mode>no-quirks mode</dfn><li>The algorithm to <
dfn id=concept-node-clone>clone</dfn> a <code id=dependencies:node><a href=#node>Node</a></code>, and the concept of <dfn id=concept-node-clone-ext>cloning steps</dfn> used by that algorithm<li>The concept of <dfn id=base-url-change-steps>base URL change steps</dfn> and the definition of what happens when an element is <dfn id=affected-by-a-base-url-change>affected by a base URL change</dfn><li>The concept of an element's <dfn id=concept-id>unique identifier (ID)</dfn><li>The concept of a DOM <dfn id=concept-range>range</dfn>, and the terms <dfn id=concept-range-start>start</dfn>, <dfn id=concept-range-end>end</dfn>, and <dfn id=concept-range-bp>boundary point</dfn> as applied to ranges.<li><dfn id=mutationobserver><code>MutationObserver</code></dfn> interface<li><dfn id=promise>Promise</dfn> interface<li>The <dfn id=concept-resolver>resolver</dfn> concept<li>The <dfn id=concept-resolver-fulfill>fulfill</dfn> and <dfn id=concept-resolver-reject>reject</dfn> algorithms</ul>
+ <ul class=brief><li><dfn id=attr><code>Attr</code></dfn> interface<li><dfn id=comment-2><code>Comment</code></dfn> interface<li><dfn id=domimplementation><code>DOMImplementation</code></dfn> interface<li><dfn id=dom-document><code>Document</code></dfn> interface<li><dfn id=xmldocument><code>XMLDocument</code></dfn> interface<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface<li><dfn id=documenttype><code>DocumentType</code></dfn> interface<li><dfn id=domexception><code>DOMException</code></dfn> interface<li><dfn id=childnode><code>ChildNode</code></dfn> interface<li><dfn id=element><code>Element</code></dfn> interface<li><dfn id=node><code>Node</code></dfn> interface<li><dfn id=nodelist><code>NodeList</code></dfn> interface<li><dfn id=processinginstruction><code>ProcessingInstruction</code></dfn> interface<li><dfn id=text><code>Text</code></dfn> interface<li><dfn id=node-document><a href=http://dom.spec.whatwg.org/#concept-node-document>node docume
nt</a></dfn> concept<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface<li><dfn id=dom-htmlcollection-length><code>HTMLCollection.length</code></dfn> attribute<li><dfn id=dom-htmlcollection-item><code>HTMLCollection.item()</code></dfn> method<li><dfn id=dom-htmlcollection-nameditem><code>HTMLCollection.namedItem()</code></dfn> method<li>The terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn><li><dfn id=domtokenlist><code>DOMTokenList</code></dfn> interface<li><dfn id=domsettabletokenlist><code>DOMSettableTokenList</code></dfn> interface<li><dfn id=dom-domsettabletokenlist-value><code>DOMSettableTokenList.value</code></dfn> attribute<li><dfn id=dom-domimplementation-createdocument><code>createDocument()</code></dfn> method<li><dfn id=dom-domimplementation-createhtmldocument><code>createHTMLDocument()</code></dfn> method<li><dfn id=dom-document-createelement><code>createElement()</code></d
fn> method<li><dfn id=dom-document-createelementns><code>createElementNS()</code></dfn> method<li><dfn id=dom-document-getelementbyid><code>getElementById()</code></dfn> method<li><dfn id=dom-document-getelementsbyclassname><code>getElementsByClassName()</code></dfn> method<li><dfn id=dom-node-insertbefore><code>insertBefore()</code></dfn> method<li><dfn id=dom-node-childnodes><code>childNodes</code></dfn> attribute<li><dfn id=dom-node-localname><code>localName</code></dfn> attribute<li><dfn id=dom-node-parentnode><code>parentNode</code></dfn> attribute<li><dfn id=dom-node-namespaceuri><code>namespaceURI</code></dfn> attribute<li><dfn id=dom-element-tagname><code>tagName</code></dfn> attribute<li><dfn id=dom-element-id><code>id</code></dfn> attribute<li><dfn id=textcontent><code>textContent</code></dfn> attribute<li>The <dfn id=concept-node-insert>insert</dfn>, <dfn id=concept-node-append>append</dfn>, <dfn id=concept-node-remove>remove</dfn>, <dfn id=concept-node-replace>re
place</dfn>, and <dfn id=concept-node-adopt>adopt</dfn> algorithms for nodes<li>The <dfn id=nodes-are-inserted>nodes are inserted</dfn> and <dfn id=nodes-are-removed>nodes are removed</dfn> concepts<li>An element's <dfn id=concept-node-adopt-ext>adopting steps</dfn><li>The <dfn id=attribute-list>attribute list</dfn> concept.<li>The <dfn id=concept-cd-data>data</dfn> of a text node.<li><dfn id=event><code>Event</code></dfn> interface<li><dfn id=eventtarget><code>EventTarget</code></dfn> interface<li><dfn id=eventinit><code>EventInit</code></dfn> dictionary type<li><dfn id=dom-event-target><code>target</code></dfn> attribute<li><dfn id=dom-event-currenttarget><code>currentTarget</code></dfn> attribute<li><dfn id=dom-event-istrusted><code>isTrusted</code></dfn> attribute<li><dfn id=dom-event-initevent><code>initEvent()</code></dfn> method<li><dfn id=dom-eventtarget-addeventlistener><code>addEventListener()</code></dfn> method<li>The <dfn id=concept-event-type>type</dfn> of an e
vent<li>The concept of an <dfn id=concept-event-listener>event listener</dfn> and the <a href=#concept-event-listener id=dependencies:concept-event-listener>event listeners</a> associated with an <code id=dependencies:eventtarget><a href=#eventtarget>EventTarget</a></code><li>The concept of a <dfn id=concept-event-target-override>target override</dfn><li>The concept of a regular <dfn id=event-parent>event parent</dfn> and a <dfn id=cross-boundary-event-parent>cross-boundary event parent</dfn><li>The <dfn id="document's-character-encoding">encoding</dfn> (herein the <i>character encoding</i>) and <dfn id=concept-document-content-type>content type</dfn> of a <code id=dependencies:document><a href=#document>Document</a></code><li>The distinction between <dfn id=xml-documents>XML documents</dfn> and <dfn id=html-documents>HTML documents</dfn><li>The terms <dfn id=quirks-mode>quirks mode</dfn>, <dfn id=limited-quirks-mode>limited-quirks mode</dfn>, and <dfn id=no-quirks-mode>no-q
uirks mode</dfn><li>The algorithm to <dfn id=concept-node-clone>clone</dfn> a <code id=dependencies:node><a href=#node>Node</a></code>, and the concept of <dfn id=concept-node-clone-ext>cloning steps</dfn> used by that algorithm<li>The concept of <dfn id=base-url-change-steps>base URL change steps</dfn> and the definition of what happens when an element is <dfn id=affected-by-a-base-url-change>affected by a base URL change</dfn><li>The concept of an element's <dfn id=concept-id>unique identifier (ID)</dfn><li>The concept of a DOM <dfn id=concept-range>range</dfn>, and the terms <dfn id=concept-range-start>start</dfn>, <dfn id=concept-range-end>end</dfn>, and <dfn id=concept-range-bp>boundary point</dfn> as applied to ranges.<li><dfn id=mutationobserver><code>MutationObserver</code></dfn> interface<li><dfn id=promise>Promise</dfn> interface<li>The <dfn id=concept-resolver>resolver</dfn> concept<li>The <dfn id=concept-resolver-fulfill>fulfill</dfn> and <dfn id=concept-resolver
-reject>reject</dfn> algorithms</ul>
<p>The term <dfn id=throw>throw</dfn> in this specification is used as defined in the DOM specification.
The following <code id=dependencies:domexception><a href=#domexception>DOMException</a></code> types are defined in the DOM specification: <a href=#refsDOM>[DOM]</a></p>
@@ -4315,26 +4306,26 @@
<ol><li><p>If the <code id=terminology-2:document-2><a href=#document>Document</a></code> is <a href=#an-iframe-srcdoc-document id=terminology-2:an-iframe-srcdoc-document-2>an <code>iframe</code> <code>srcdoc</code> document</a>, then return the <a href=#document-base-url id=terminology-2:document-base-url>document base
URL</a> of the <code id=terminology-2:document-3><a href=#document>Document</a></code>'s <a href=#browsing-context id=terminology-2:browsing-context>browsing context</a>'s <a href=#browsing-context-container id=terminology-2:browsing-context-container>browsing context
- container</a>'s <code id=terminology-2:document-4><a href=#document>Document</a></code> and abort these steps.<li>
+ container</a>'s <a id=terminology-2:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> and abort these steps.<li>
<p>If <a id="terminology-2:the-document's-address-2" href=http://dom.spec.whatwg.org/#concept-document-url data-x-internal="the-document's-address">the document's address</a> is <code id=terminology-2:about:blank><a href=#about:blank>about:blank</a></code>, and the
- <code id=terminology-2:document-5><a href=#document>Document</a></code>'s <a href=#browsing-context id=terminology-2:browsing-context-2>browsing context</a> has a <a href=#creator-browsing-context id=terminology-2:creator-browsing-context>creator browsing
+ <code id=terminology-2:document-4><a href=#document>Document</a></code>'s <a href=#browsing-context id=terminology-2:browsing-context-2>browsing context</a> has a <a href=#creator-browsing-context id=terminology-2:creator-browsing-context>creator browsing
context</a>, then return the <a href=#document-base-url id=terminology-2:document-base-url-2>document base URL</a> of the <a href=#creator-document id=terminology-2:creator-document>creator
<code>Document</code></a>, and abort these steps.</p>
<li><p>Return <a id="terminology-2:the-document's-address-3" href=http://dom.spec.whatwg.org/#concept-document-url data-x-internal="the-document's-address">the document's address</a>.</ol>
- <p>The <dfn id=document-base-url>document base URL</dfn> of a <code id=terminology-2:document-6><a href=#document>Document</a></code> object is the <a href=#absolute-url id=terminology-2:absolute-url-2>absolute
+ <p>The <dfn id=document-base-url>document base URL</dfn> of a <code id=terminology-2:document-5><a href=#document>Document</a></code> object is the <a href=#absolute-url id=terminology-2:absolute-url-2>absolute
URL</a> obtained by running these substeps:</p>
- <ol><li><p>If there is no <code id=terminology-2:the-base-element><a href=#the-base-element>base</a></code> element that has an <code id=terminology-2:attr-base-href><a href=#attr-base-href>href</a></code> attribute in the <code id=terminology-2:document-7><a href=#document>Document</a></code>, then the
- <a href=#document-base-url id=terminology-2:document-base-url-3>document base URL</a> is the <code id=terminology-2:document-8><a href=#document>Document</a></code>'s <a href=#fallback-base-url id=terminology-2:fallback-base-url>fallback base URL</a>;
+ <ol><li><p>If there is no <code id=terminology-2:the-base-element><a href=#the-base-element>base</a></code> element that has an <code id=terminology-2:attr-base-href><a href=#attr-base-href>href</a></code> attribute in the <code id=terminology-2:document-6><a href=#document>Document</a></code>, then the
+ <a href=#document-base-url id=terminology-2:document-base-url-3>document base URL</a> is the <code id=terminology-2:document-7><a href=#document>Document</a></code>'s <a href=#fallback-base-url id=terminology-2:fallback-base-url>fallback base URL</a>;
abort these steps.<li><p>Otherwise, the <a href=#document-base-url id=terminology-2:document-base-url-4>document base URL</a> is the <a href=#frozen-base-url id=terminology-2:frozen-base-url>frozen base URL</a> of the
- first <code id=terminology-2:the-base-element-2><a href=#the-base-element>base</a></code> element in the <code id=terminology-2:document-9><a href=#document>Document</a></code> that has an <code id=terminology-2:attr-base-href-2><a href=#attr-base-href>href</a></code> attribute, in <a href=#tree-order id=terminology-2:tree-order>tree order</a>.</ol>
+ first <code id=terminology-2:the-base-element-2><a href=#the-base-element>base</a></code> element in the <code id=terminology-2:document-8><a href=#document>Document</a></code> that has an <code id=terminology-2:attr-base-href-2><a href=#attr-base-href>href</a></code> attribute, in <a href=#tree-order id=terminology-2:tree-order>tree order</a>.</ol>
@@ -4477,13 +4468,13 @@
<p>Let <var>document</var> be the appropriate <code id=processing-model:document><a href=#document>Document</a></code> as given by the
following list:</p>
- <dl class=switch><dt>If there is a specific <i>override referrer source</i><dd>The <i>override referrer source</i>.<dt>When <a href=#navigate id=processing-model:navigate>navigating</a><dd>The <a href=#active-document id=processing-model:active-document>active document</a> of the <a href=#source-browsing-context id=processing-model:source-browsing-context>source browsing context</a>.<dt>When fetching resources for an element<dd>The element's <code id=processing-model:document-2><a href=#document>Document</a></code>.</dl>
+ <dl class=switch><dt>If there is a specific <i>override referrer source</i><dd>The <i>override referrer source</i>.<dt>When <a href=#navigate id=processing-model:navigate>navigating</a><dd>The <a href=#active-document id=processing-model:active-document>active document</a> of the <a href=#source-browsing-context id=processing-model:source-browsing-context>source browsing context</a>.<dt>When fetching resources for an element<dd>The element's <a id=processing-model:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</dl>
<li>
<p>While <var>document</var> is <a href=#an-iframe-srcdoc-document id=processing-model:an-iframe-srcdoc-document>an <code>iframe</code> <code>srcdoc</code> document</a>, let <var>document</var> be
<var>document</var>'s <a href=#browsing-context id=processing-model:browsing-context>browsing context</a>'s <a href=#browsing-context-container id=processing-model:browsing-context-container>browsing context
- container</a>'s <code id=processing-model:document-3><a href=#document>Document</a></code> instead.</p>
+ container</a>'s <a id=processing-model:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> instead.</p>
<li>
@@ -4515,7 +4506,7 @@
regardless of its value.</p>
<li><p>If the algorithm was not invoked with the <i>synchronous flag</i>, perform the remaining
- steps asynchronously.<li><p>If the <code id=processing-model:document-4><a href=#document>Document</a></code> with which any <a href=#concept-task id=processing-model:concept-task>tasks</a> <a href=#queue-a-task id=processing-model:queue-a-task>queued</a> by this algorithm would be associated doesn't have an
+ steps asynchronously.<li><p>If the <code id=processing-model:document-2><a href=#document>Document</a></code> with which any <a href=#concept-task id=processing-model:concept-task>tasks</a> <a href=#queue-a-task id=processing-model:queue-a-task>queued</a> by this algorithm would be associated doesn't have an
associated <a href=#browsing-context id=processing-model:browsing-context-2>browsing context</a>, then abort these steps.<li>
<p>This is the <i>main step</i>.</p>
@@ -4988,7 +4979,7 @@
<ol><li>If the corresponding content attribute is absent, then the IDL attribute must return
null.<li>Let <var>candidate</var> be the element that the <code id=reflecting-content-attributes-in-idl-attributes:dom-document-getelementbyid><a href=#dom-document-getelementbyid>document.getElementById()</a></code> method would find when
- called on the content attribute's document if it were passed as its argument the current value of
+ called on the content attribute's element's <a id=reflecting-content-attributes-in-idl-attributes:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> if it were passed as its argument the current value of
the corresponding content attribute.<li>If <var>candidate</var> is null, or if it is not type-compatible with the IDL
attribute, then the IDL attribute must return null.<li>Otherwise, it must return <var>candidate</var>.</ol>
@@ -9132,7 +9123,7 @@
<p>Do a <a href=#potentially-cors-enabled-fetch id=the-link-element:potentially-cors-enabled-fetch>potentially CORS-enabled fetch</a> of the resulting <a href=#absolute-url id=the-link-element:absolute-url>absolute
URL</a>, with the <i>mode</i> being the current state of the element's <code id=the-link-element:attr-link-crossorigin-2><a href=#attr-link-crossorigin>crossorigin</a></code> content attribute, the <i>origin</i>
- being the <a href=#origin-2 id=the-link-element:origin-2>origin</a> of the <code id=the-link-element:the-link-element-9><a href=#the-link-element>link</a></code> element's <code id=the-link-element:document><a href=#document>Document</a></code>, and the
+ being the <a href=#origin-2 id=the-link-element:origin-2>origin</a> of the <code id=the-link-element:the-link-element-9><a href=#the-link-element>link</a></code> element's <a id=the-link-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, and the
<i>default origin behaviour</i> set to <i>taint</i>.</p>
<p>The resource obtained in this fashion can be either <a href=#cors-same-origin id=the-link-element:cors-same-origin>CORS-same-origin</a> or
@@ -9162,7 +9153,7 @@
<p>The <a href=#task-source id=the-link-element:task-source>task source</a> for these <a href=#concept-task id=the-link-element:concept-task>tasks</a> is the <a href=#dom-manipulation-task-source id=the-link-element:dom-manipulation-task-source>DOM
manipulation task source</a>.</p>
- <p>The element must <a href=#delay-the-load-event id=the-link-element:delay-the-load-event>delay the load event</a> of the element's document until all the
+ <p>The element must <a href=#delay-the-load-event id=the-link-element:delay-the-load-event>delay the load event</a> of the element's <a id=the-link-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> until all the
attempts to obtain the resource and its <a href=#critical-subresources id=the-link-element:critical-subresources-3>critical subresources</a> are complete.
(Resources that the user agent has not yet attempted to obtain, e.g. because it is waiting for the
resource to be needed, do not <a href=#delay-the-load-event id=the-link-element:delay-the-load-event-2>delay the load event</a>.)</p>
@@ -9304,7 +9295,7 @@
<p>The <a href=#activation-behavior id=the-link-element:activation-behavior>activation behavior</a> of <code id=the-link-element:the-link-element-18><a href=#the-link-element>link</a></code> elements that create <a href=#hyperlink id=the-link-element:hyperlink-5>hyperlinks</a> is to run the following steps:</p>
- <ol><li><p>If the <code id=the-link-element:the-link-element-19><a href=#the-link-element>link</a></code> element's <code id=the-link-element:document-2><a href=#document>Document</a></code> is not <a href=#fully-active id=the-link-element:fully-active>fully active</a>,
+ <ol><li><p>If the <code id=the-link-element:the-link-element-19><a href=#the-link-element>link</a></code> element's <a id=the-link-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-link-element:fully-active>fully active</a>,
then abort these steps.<li><p><a href=#following-hyperlinks-2 id=the-link-element:following-hyperlinks-2-2>Follow the hyperlink</a> created by the
<code id=the-link-element:the-link-element-20><a href=#the-link-element>link</a></code> element.</ol>
@@ -9771,11 +9762,11 @@
<ul><li>
<p>After the refresh has come due (as defined below), if the user has not canceled the
- redirect and if the <code id=pragma-directives:the-meta-element-11><a href=#the-meta-element>meta</a></code> element's <code id=pragma-directives:document><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=pragma-directives:active-sandboxing-flag-set>active
+ redirect and if the <code id=pragma-directives:the-meta-element-11><a href=#the-meta-element>meta</a></code> element's <a id=pragma-directives:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=pragma-directives:active-sandboxing-flag-set>active
sandboxing flag set</a> does not have the <a href=#sandboxed-automatic-features-browsing-context-flag id=pragma-directives:sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing
context flag</a> set, <a href=#navigate id=pragma-directives:navigate>navigate</a> the
- <code id=pragma-directives:document-2><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context>browsing context</a> to <var>url</var>, with
- <a href=#replacement-enabled id=pragma-directives:replacement-enabled>replacement enabled</a>, and with the <code id=pragma-directives:document-3><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context-2>browsing
+ <code id=pragma-directives:document><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context>browsing context</a> to <var>url</var>, with
+ <a href=#replacement-enabled id=pragma-directives:replacement-enabled>replacement enabled</a>, and with the <code id=pragma-directives:document-2><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context-2>browsing
context</a> as the <a href=#source-browsing-context id=pragma-directives:source-browsing-context>source browsing context</a>.</p>
<p>For the purposes of the previous paragraph, a refresh is said to have come due as soon as
@@ -9789,7 +9780,7 @@
preferences.</ul>
<li><p>Provide the user with an interface that, when selected, <a href=#navigate id=pragma-directives:navigate-2>navigates</a> a <a href=#browsing-context id=pragma-directives:browsing-context-3>browsing context</a> to
- <var>url</var>, with the <code id=pragma-directives:document-4><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context-4>browsing context</a> as
+ <var>url</var>, with the <code id=pragma-directives:document-3><a href=#document>Document</a></code>'s <a href=#browsing-context id=pragma-directives:browsing-context-4>browsing context</a> as
the <a href=#source-browsing-context id=pragma-directives:source-browsing-context-2>source browsing context</a>.<li><p>Do nothing.</ul>
<p>In addition, the user agent may, as with anything, inform the user of any and all aspects
@@ -10157,7 +10148,7 @@
<p>The <a href=#task-source id=the-style-element:task-source>task source</a> for these <a href=#concept-task id=the-style-element:concept-task>tasks</a> is the <a href=#dom-manipulation-task-source id=the-style-element:dom-manipulation-task-source>DOM
manipulation task source</a>.</p>
- <p>The element must <a href=#delay-the-load-event id=the-style-element:delay-the-load-event>delay the load event</a> of the element's document until all the
+ <p>The element must <a href=#delay-the-load-event id=the-style-element:delay-the-load-event>delay the load event</a> of the element's <a id=the-style-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> until all the
attempts to obtain the style sheet's <a href=#critical-subresources id=the-style-element:critical-subresources-4>critical subresources</a>, if any, are complete.</p>
@@ -11267,11 +11258,11 @@
the nearest <code id=the-address-element:the-article-element-5><a href=#the-article-element>article</a></code> or <code id=the-address-element:the-body-element-6><a href=#the-body-element>body</a></code> element ancestor, whichever is
nearest.</p>
- <dt>If <var>node</var>'s <code id=the-address-element:document><a href=#document>Document</a></code> has <a href=#the-body-element-2 id=the-address-element:the-body-element-2-2>a body
+ <dt>If <var>node</var>'s <a id=the-address-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> has <a href=#the-body-element-2 id=the-address-element:the-body-element-2-2>a body
element</a><dd>
<p>The contact information of <var>node</var> is the same as the contact information of
- <a href=#the-body-element-2 id=the-address-element:the-body-element-2-3>the body element</a> of the <code id=the-address-element:document-2><a href=#document>Document</a></code>.</p>
+ <a href=#the-body-element-2 id=the-address-element:the-body-element-2-3>the body element</a> of the <code id=the-address-element:document><a href=#document>Document</a></code>.</p>
<dt>Otherwise<dd>
@@ -13512,7 +13503,7 @@
<p>The <a href=#activation-behavior id=the-a-element:activation-behavior>activation behavior</a> of <code id=the-a-element:the-a-element-6><a href=#the-a-element>a</a></code> elements that create <a href=#hyperlink id=the-a-element:hyperlink-4>hyperlinks</a> is to run the following steps:</p>
- <ol><li><p>If the <code id=the-a-element:the-a-element-7><a href=#the-a-element>a</a></code> element's <code id=the-a-element:document><a href=#document>Document</a></code> is not <a href=#fully-active id=the-a-element:fully-active>fully active</a>, then abort these steps.<li>
+ <ol><li><p>If the <code id=the-a-element:the-a-element-7><a href=#the-a-element>a</a></code> element's <a id=the-a-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-a-element:fully-active>fully active</a>, then abort these steps.<li>
<p>If either the <code id=the-a-element:the-a-element-8><a href=#the-a-element>a</a></code> element has a <code id=the-a-element:attr-hyperlink-download-4><a href=#attr-hyperlink-download>download</a></code> attribute and the algorithm is not <a href=#allowed-to-show-a-popup id=the-a-element:allowed-to-show-a-popup>allowed
to show a popup</a>, or the element's <code id=the-a-element:attr-hyperlink-target-4><a href=#attr-hyperlink-target>target</a></code>
@@ -15766,7 +15757,7 @@
whose <code id=introduction-2:attr-hyperlink-rel-4><a href=#attr-hyperlink-rel>rel</a></code> attribute has no keywords that are defined as
specifying <a href=#hyperlink id=introduction-2:hyperlink>hyperlinks</a>, must also create a <a href=#hyperlink id=introduction-2:hyperlink-2>hyperlink</a>.
This implied hyperlink has no special meaning (it has no <a href=#linkTypes>link type</a>)
- beyond linking the element's document to the resource given by the element's <code id=introduction-2:attr-hyperlink-href-3><a href=#attr-hyperlink-href>href</a></code> attribute.</p>
+ beyond linking the element's <a id=introduction-2:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> to the resource given by the element's <code id=introduction-2:attr-hyperlink-href-3><a href=#attr-hyperlink-href>href</a></code> attribute.</p>
<p>A <a href=#hyperlink id=introduction-2:hyperlink-3>hyperlink</a> can have one or more <dfn id=hyperlink-annotation>hyperlink
annotations</dfn> that modify the processing semantics of that hyperlink.</p>
@@ -19893,7 +19884,7 @@
<p>Any <a href=#navigate id=the-iframe-element:navigate-3>navigation</a> required of the user agent in the <a href=#process-the-iframe-attributes id=the-iframe-element:process-the-iframe-attributes-4>process
the <code>iframe</code> attributes</a> algorithm must be completed as an <a href=#explicit-self-navigation-override id=the-iframe-element:explicit-self-navigation-override>explicit
- self-navigation override</a> and with the <code id=the-iframe-element:the-iframe-element-13><a href=#the-iframe-element>iframe</a></code> element's document's
+ self-navigation override</a> and with the <code id=the-iframe-element:the-iframe-element-13><a href=#the-iframe-element>iframe</a></code> element's <a id=the-iframe-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s
<a href=#browsing-context id=the-iframe-element:browsing-context-2>browsing context</a> as the <a href=#source-browsing-context id=the-iframe-element:source-browsing-context>source browsing context</a>.</p>
<p>Furthermore, if the <a href=#active-document id=the-iframe-element:active-document-2>active document</a> of the element's <a href=#child-browsing-context id=the-iframe-element:child-browsing-context-3>child browsing
@@ -20136,10 +20127,10 @@
<li>Either:
<ul><li>The <a href=#browsing-context id=the-iframe-element:browsing-context-10>browsing context</a>'s <a href=#active-document id=the-iframe-element:active-document-6>active document</a> has the <a href=#same-origin id=the-iframe-element:same-origin-2>same
- origin</a> as the <code id=the-iframe-element:the-iframe-element-48><a href=#the-iframe-element>iframe</a></code> element's <code id=the-iframe-element:document-13><a href=#document>Document</a></code>, or
+ origin</a> as the <code id=the-iframe-element:the-iframe-element-48><a href=#the-iframe-element>iframe</a></code> element's <a id=the-iframe-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, or
<li>The <a href=#browsing-context id=the-iframe-element:browsing-context-11>browsing context</a>'s <a href=#active-document id=the-iframe-element:active-document-7>active document</a>'s <em><a href=http://dom.spec.whatwg.org/#concept-document-url id="the-iframe-element:the-document's-address-2" data-x-internal="the-document's-address">address</a></em> has the <a href=#same-origin id=the-iframe-element:same-origin-3>same origin</a> as the
- <code id=the-iframe-element:the-iframe-element-49><a href=#the-iframe-element>iframe</a></code> element's <code id=the-iframe-element:document-14><a href=#document>Document</a></code>, or
+ <code id=the-iframe-element:the-iframe-element-49><a href=#the-iframe-element>iframe</a></code> element's <a id=the-iframe-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, or
<li>The <a href=#browsing-context id=the-iframe-element:browsing-context-12>browsing context</a>'s <a href=#active-document id=the-iframe-element:active-document-8>active document</a> is <a href=#an-iframe-srcdoc-document id=the-iframe-element:an-iframe-srcdoc-document-4>an
<code>iframe</code> <code>srcdoc</code> document</a>.
@@ -20156,7 +20147,7 @@
parent browsing context</a> unless an <a href=#explicit-self-navigation-override id=the-iframe-element:explicit-self-navigation-override-2>explicit self-navigation override</a> is used
(<code>target="_self"</code>).<li><p>Media queries in the context of the <code id=the-iframe-element:the-iframe-element-51><a href=#the-iframe-element>iframe</a></code>'s <a href=#browsing-context id=the-iframe-element:browsing-context-14>browsing context</a>
(e.g. on <code id=the-iframe-element:attr-style-media><a href=#attr-style-media>media</a></code> attributes of <code id=the-iframe-element:the-style-element><a href=#the-style-element>style</a></code> elements in
- <code id=the-iframe-element:document-15><a href=#document>Document</a></code>s in that <code id=the-iframe-element:the-iframe-element-52><a href=#the-iframe-element>iframe</a></code>) must be evaluated with respect to the nearest
+ <code id=the-iframe-element:document-13><a href=#document>Document</a></code>s in that <code id=the-iframe-element:the-iframe-element-52><a href=#the-iframe-element>iframe</a></code>) must be evaluated with respect to the nearest
<a href=#ancestor-browsing-context id=the-iframe-element:ancestor-browsing-context-2>ancestor browsing context</a> that is not itself being <a href=#browsing-context-nested-through id=the-iframe-element:browsing-context-nested-through>nested through</a> an <code id=the-iframe-element:the-iframe-element-53><a href=#the-iframe-element>iframe</a></code> that is <a href=#in-seamless-mode id=the-iframe-element:in-seamless-mode-2>in seamless
mode</a>. <a href=#refsMQ>[MQ]</a><li><p>In a CSS-supporting user agent: the user agent must add all the style sheets that apply to
the <code id=the-iframe-element:the-iframe-element-54><a href=#the-iframe-element>iframe</a></code> element to the cascade of the <a href=#active-document id=the-iframe-element:active-document-9>active document</a> of the
@@ -20224,7 +20215,7 @@
<hr>
<p>The <dfn id=attr-iframe-allowfullscreen><code>allowfullscreen</code></dfn> attribute is a
- <a href=#boolean-attribute id=the-iframe-element:boolean-attribute-2>boolean attribute</a>. When specified, it indicates that <code id=the-iframe-element:document-16><a href=#document>Document</a></code> objects in
+ <a href=#boolean-attribute id=the-iframe-element:boolean-attribute-2>boolean attribute</a>. When specified, it indicates that <code id=the-iframe-element:document-14><a href=#document>Document</a></code> objects in
the <code id=the-iframe-element:the-iframe-element-70><a href=#the-iframe-element>iframe</a></code> element's <a href=#browsing-context id=the-iframe-element:browsing-context-17>browsing context</a> are to be allowed to use <code id=the-iframe-element:dom-element-requestfullscreen-2><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code> (if it's not blocked for other
reasons, e.g. there is another ancestor <code id=the-iframe-element:the-iframe-element-71><a href=#the-iframe-element>iframe</a></code> without this attribute set).</p>
@@ -20288,7 +20279,7 @@
content attribute.</p>
<p>The <dfn id=dom-iframe-contentdocument><code>contentDocument</code></dfn> IDL attribute
- must return the <code id=the-iframe-element:document-17><a href=#document>Document</a></code> object of the <a href=#active-document id=the-iframe-element:active-document-14>active document</a> of the
+ must return the <code id=the-iframe-element:document-15><a href=#document>Document</a></code> object of the <a href=#active-document id=the-iframe-element:active-document-14>active document</a> of the
<code id=the-iframe-element:the-iframe-element-81><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-28>nested browsing context</a>, if any and if its
<a href=#effective-script-origin id=the-iframe-element:effective-script-origin>effective script origin</a> is the <a href=#same-origin id=the-iframe-element:same-origin-4>same origin</a> as the <a href=#effective-script-origin id=the-iframe-element:effective-script-origin-2>effective script
origin</a> specified by the <a href=#incumbent-settings-object id=the-iframe-element:incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>
@@ -20363,7 +20354,7 @@
active</dfn> when the following conditions are all met simultaneously:</p>
<ul class=brief><li>The element is <a href=#in-a-document id=the-embed-element:in-a-document>in a <code>Document</code></a> or was <a href=#in-a-document id=the-embed-element:in-a-document-2>in a <code>Document</code></a> the last time the <a href=#event-loop id=the-embed-element:event-loop>event loop</a>
- reached step 1.<li>The element's <code id=the-embed-element:document-2><a href=#document>Document</a></code> is <a href=#fully-active id=the-embed-element:fully-active>fully active</a>.<li>The element has either a <code id=the-embed-element:attr-embed-src-6><a href=#attr-embed-src>src</a></code> attribute set or a <code id=the-embed-element:attr-embed-type-5><a href=#attr-embed-type>type</a></code> attribute set (or both).<li>The element's <code id=the-embed-element:attr-embed-src-7><a href=#attr-embed-src>src</a></code> attribute is either absent or its value
+ reached step 1.<li>The element's <a id=the-embed-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <a href=#fully-active id=the-embed-element:fully-active>fully active</a>.<li>The element has either a <code id=the-embed-element:attr-embed-src-6><a href=#attr-embed-src>src</a></code> attribute set or a <code id=the-embed-element:attr-embed-type-5><a href=#attr-embed-type>type</a></code> attribute set (or both).<li>The element's <code id=the-embed-element:attr-embed-src-7><a href=#attr-embed-src>src</a></code> attribute is either absent or its value
is not the empty string.<li>The element is not a descendant of a <a href=#media-element id=the-embed-element:media-element-2>media element</a>.<li>The element is not a descendant of an <code id=the-embed-element:the-object-element-2><a href=#the-object-element>object</a></code> element that is not showing its
<a href=#fallback-content id=the-embed-element:fallback-content-2>fallback content</a>.<li>The element is <a href=#being-rendered id=the-embed-element:being-rendered>being rendered</a>, or was <a href=#being-rendered id=the-embed-element:being-rendered-2>being rendered</a> the last time
the <a href=#event-loop id=the-embed-element:event-loop-2>event loop</a> reached step 1.</ul>
@@ -20432,7 +20423,7 @@
<li><p><a href=#navigate id=the-embed-element:navigate>Navigate</a> the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-4>nested browsing context</a> to
the fetched resource, with <a href=#replacement-enabled id=the-embed-element:replacement-enabled>replacement enabled</a>, and with the
- <code id=the-embed-element:the-embed-element-9><a href=#the-embed-element>embed</a></code> element's document's <a href=#browsing-context id=the-embed-element:browsing-context>browsing context</a> as the <a href=#source-browsing-context id=the-embed-element:source-browsing-context>source
+ <code id=the-embed-element:the-embed-element-9><a href=#the-embed-element>embed</a></code> element's <a id=the-embed-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#browsing-context id=the-embed-element:browsing-context>browsing context</a> as the <a href=#source-browsing-context id=the-embed-element:source-browsing-context>source
browsing context</a>. (The <code id=the-embed-element:attr-embed-src-10><a href=#attr-embed-src>src</a></code> attribute of the
<code id=the-embed-element:the-embed-element-10><a href=#the-embed-element>embed</a></code> element doesn't get updated if the browsing context gets further
navigated to other locations.)<li><p>The <code id=the-embed-element:the-embed-element-11><a href=#the-embed-element>embed</a></code> element now <a href=#represents id=the-embed-element:represents-2>represents</a> its associated
@@ -20456,7 +20447,7 @@
<p class=note>This allows servers to return data for plugins even with error responses (e.g.
HTTP 500 Internal Server Error codes can still contain plugin data).</p>
- <p>Fetching the resource must <a href=#delay-the-load-event id=the-embed-element:delay-the-load-event>delay the load event</a> of the element's document.</p>
+ <p>Fetching the resource must <a href=#delay-the-load-event id=the-embed-element:delay-the-load-event>delay the load event</a> of the element's <a id=the-embed-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
@@ -20484,7 +20475,7 @@
<a href=#plugin id=the-embed-element:plugin-10>plugin</a> that had been instantiated for that element must be unloaded.</p>
<p id=sandboxPluginEmbed>When a <a href=#plugin id=the-embed-element:plugin-11>plugin</a> is to be instantiated but it cannot be <a href=#concept-plugin-secure id=the-embed-element:concept-plugin-secure>secured</a> and the <a href=#sandboxed-plugins-browsing-context-flag id=the-embed-element:sandboxed-plugins-browsing-context-flag>sandboxed plugins browsing context
- flag</a> is set on the <code id=the-embed-element:the-embed-element-16><a href=#the-embed-element>embed</a></code> element's <code id=the-embed-element:document-3><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-embed-element:active-sandboxing-flag-set>active
+ flag</a> is set on the <code id=the-embed-element:the-embed-element-16><a href=#the-embed-element>embed</a></code> element's <a id=the-embed-element:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=the-embed-element:active-sandboxing-flag-set>active
sandboxing flag set</a>, then the user agent must not instantiate the <a href=#plugin id=the-embed-element:plugin-12>plugin</a>, and
must instead render the <code id=the-embed-element:the-embed-element-17><a href=#the-embed-element>embed</a></code> element in a manner that conveys that the
<a href=#plugin id=the-embed-element:plugin-13>plugin</a> was disabled. The user agent may offer the user the option to override the
@@ -20540,7 +20531,7 @@
<dl class=domintro><dt><var>doc</var> = <var>embed</var> . <code id=the-embed-element:dom-embed-getsvgdocument-2><a href=#dom-embed-getsvgdocument>getSVGDocument</a></code>()<dd>
- <p>Returns the <code id=the-embed-element:document-4><a href=#document>Document</a></code> object, in the case of <code id=the-embed-element:the-embed-element-27><a href=#the-embed-element>embed</a></code> being used to embed SVG images.</p>
+ <p>Returns the <code id=the-embed-element:document-2><a href=#document>Document</a></code> object, in the case of <code id=the-embed-element:the-embed-element-27><a href=#the-embed-element>embed</a></code> being used to embed SVG images.</p>
</dl>
@@ -20552,11 +20543,11 @@
<ol><li><p>If the element has no <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-8>nested browsing context</a>, then return null and abort
these steps.<li><p>If the <a href=#active-document id=the-embed-element:active-document-3>active document</a> of the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-9>nested browsing context</a> does not
have the <a href=#same-origin id=the-embed-element:same-origin>same</a> <a href=#effective-script-origin id=the-embed-element:effective-script-origin>effective script origin</a> as the
- <code id=the-embed-element:the-embed-element-28><a href=#the-embed-element>embed</a></code> element's <code id=the-embed-element:document-5><a href=#document>Document</a></code>, then return null and abort these
+ <code id=the-embed-element:the-embed-element-28><a href=#the-embed-element>embed</a></code> element's <a id=the-embed-element:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, then return null and abort these
steps.<li><p>If the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-10>nested browsing context</a>'s <a href=#active-document id=the-embed-element:active-document-4>active document</a> was created by
the <a href=#read-xml id=the-embed-element:read-xml>page load processing model for XML files</a> section because
<span>the sniffed type of the resource</span> in the <a href=#navigate id=the-embed-element:navigate-2>navigate</a> algorithm was
- <code id=the-embed-element:image/svg+xml><a href=#image/svg+xml>image/svg+xml</a></code>, then return that <code id=the-embed-element:document-6><a href=#document>Document</a></code> object and abort these
+ <code id=the-embed-element:image/svg+xml><a href=#image/svg+xml>image/svg+xml</a></code>, then return that <code id=the-embed-element:document-3><a href=#document>Document</a></code> object and abort these
steps.<li><p>Otherwise, return null.</ol>
<p>The IDL attributes <dfn id=dom-embed-src><code>src</code></dfn> and <dfn id=dom-embed-type><code>type</code></dfn> each must <a href=#reflect id=the-embed-element:reflect>reflect</a> the respective
@@ -20670,7 +20661,7 @@
<li>the element is not on the <a href=#stack-of-open-elements id=the-object-element:stack-of-open-elements-2>stack of open elements</a> of an <a href=#html-parser id=the-object-element:html-parser-2>HTML parser</a>
or <a href=#xml-parser id=the-object-element:xml-parser-2>XML parser</a>, and it is either <a href=#insert-an-element-into-a-document id=the-object-element:insert-an-element-into-a-document>inserted into a document</a> or <a href=#remove-an-element-from-a-document id=the-object-element:remove-an-element-from-a-document>removed from a document</a>,
- <li>the element's <code id=the-object-element:document-2><a href=#document>Document</a></code> changes whether it is <a href=#fully-active id=the-object-element:fully-active>fully active</a>,
+ <li>the element's <a id=the-object-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> changes whether it is <a href=#fully-active id=the-object-element:fully-active>fully active</a>,
<li>one of the element's ancestor <code id=the-object-element:the-object-element-4><a href=#the-object-element>object</a></code> elements changes to or from showing its
<a href=#fallback-content id=the-object-element:fallback-content>fallback content</a>,
@@ -20691,7 +20682,7 @@
<p>...the user agent must <a href=#queue-a-task id=the-object-element:queue-a-task>queue a task</a> to run the following steps to (re)determine
what the <code id=the-object-element:the-object-element-5><a href=#the-object-element>object</a></code> element represents. This <a href=#concept-task id=the-object-element:concept-task>task</a>
being <a href=#queue-a-task id=the-object-element:queue-a-task-2>queued</a> or actively running must <a href=#delay-the-load-event id=the-object-element:delay-the-load-event>delay the load
- event</a> of the element's document. </p>
+ event</a> of the element's <a id=the-object-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>. </p>
<ol><li>
@@ -20707,7 +20698,7 @@
<p>If the element has an ancestor <a href=#media-element id=the-object-element:media-element>media element</a>, or has an ancestor
<code id=the-object-element:the-object-element-7><a href=#the-object-element>object</a></code> element that is <em>not</em> showing its <a href=#fallback-content id=the-object-element:fallback-content-4>fallback content</a>, or
if the element is not <a href=#in-a-document id=the-object-element:in-a-document>in a <code>Document</code></a> with a
- <a href=#browsing-context id=the-object-element:browsing-context>browsing context</a>, or if the element's <code id=the-object-element:document-3><a href=#document>Document</a></code> is not <a href=#fully-active id=the-object-element:fully-active-2>fully
+ <a href=#browsing-context id=the-object-element:browsing-context>browsing context</a>, or if the element's <a id=the-object-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-object-element:fully-active-2>fully
active</a>, or if the element is still in the <a href=#stack-of-open-elements id=the-object-element:stack-of-open-elements-3>stack of open elements</a> of an
<a href=#html-parser id=the-object-element:html-parser-3>HTML parser</a> or <a href=#xml-parser id=the-object-element:xml-parser-3>XML parser</a>, or if the element is not <a href=#being-rendered id=the-object-element:being-rendered-2>being
rendered</a>, then jump to the step below labeled <i>fallback</i>.</p>
@@ -20740,7 +20731,7 @@
<a href=#browsing-context-scope-origin id=the-object-element:browsing-context-scope-origin>browsing context scope origin</a> if it has one.</p>
- <p>Fetching the resource must <a href=#delay-the-load-event id=the-object-element:delay-the-load-event-2>delay the load event</a> of the element's document
+ <p>Fetching the resource must <a href=#delay-the-load-event id=the-object-element:delay-the-load-event-2>delay the load event</a> of the element's <a id=the-object-element:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>
until the <a href=#concept-task id=the-object-element:concept-task-2>task</a> that is <a href=#queue-a-task id=the-object-element:queue-a-task-3>queued</a> by the <a href=#networking-task-source id=the-object-element:networking-task-source>networking task source</a> once the resource has been
<a href=#fetch id=the-object-element:fetch-2>fetched</a> (defined next) has been run.</p>
@@ -20919,7 +20910,7 @@
<p>If the <a href=#url id=the-object-element:url-3>URL</a> of the given resource is not <code id=the-object-element:about:blank><a href=#about:blank>about:blank</a></code>, the
element's <a href=#nested-browsing-context id=the-object-element:nested-browsing-context-5>nested browsing context</a> must then be <a href=#navigate id=the-object-element:navigate>navigated</a> to that resource, with
- <a href=#replacement-enabled id=the-object-element:replacement-enabled>replacement enabled</a>, and with the <code id=the-object-element:the-object-element-14><a href=#the-object-element>object</a></code> element's document's
+ <a href=#replacement-enabled id=the-object-element:replacement-enabled>replacement enabled</a>, and with the <code id=the-object-element:the-object-element-14><a href=#the-object-element>object</a></code> element's <a id=the-object-element:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s
<a href=#browsing-context id=the-object-element:browsing-context-2>browsing context</a> as the <a href=#source-browsing-context id=the-object-element:source-browsing-context>source browsing context</a>. (The <code id=the-object-element:attr-object-data-11><a href=#attr-object-data>data</a></code> attribute of the <code id=the-object-element:the-object-element-15><a href=#the-object-element>object</a></code> element doesn't
get updated if the browsing context gets further navigated to other locations.)</p>
@@ -21001,7 +20992,7 @@
<p id=sandboxPluginObject>Plugins are considered sandboxed for the purpose of an
<code id=the-object-element:the-object-element-24><a href=#the-object-element>object</a></code> element if the <a href=#sandboxed-plugins-browsing-context-flag id=the-object-element:sandboxed-plugins-browsing-context-flag>sandboxed plugins browsing context flag</a> is set on
- the <code id=the-object-element:the-object-element-25><a href=#the-object-element>object</a></code> element's <code id=the-object-element:document-4><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-object-element:active-sandboxing-flag-set>active sandboxing flag
+ the <code id=the-object-element:the-object-element-25><a href=#the-object-element>object</a></code> element's <a id=the-object-element:node-document-6 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=the-object-element:active-sandboxing-flag-set>active sandboxing flag
set</a>.</p>
<p>Due to the algorithm above, the contents of <code id=the-object-element:the-object-element-26><a href=#the-object-element>object</a></code> elements act as <a href=#fallback-content id=the-object-element:fallback-content-6>fallback
@@ -21054,7 +21045,7 @@
<a href=#reflect id=the-object-element:reflect-3>reflect</a> the <code id=the-object-element:attr-hyperlink-usemap-4><a href=#attr-hyperlink-usemap>usemap</a></code> content attribute.</p>
<p>The <dfn id=dom-object-contentdocument><code>contentDocument</code></dfn> IDL attribute
- must return the <code id=the-object-element:document-5><a href=#document>Document</a></code> object of the <a href=#active-document id=the-object-element:active-document-3>active document</a> of the
+ must return the <code id=the-object-element:document-2><a href=#document>Document</a></code> object of the <a href=#active-document id=the-object-element:active-document-3>active document</a> of the
<code id=the-object-element:the-object-element-40><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context id=the-object-element:nested-browsing-context-11>nested browsing context</a>, if any and if its
<a href=#effective-script-origin id=the-object-element:effective-script-origin>effective script origin</a> is the <a href=#same-origin id=the-object-element:same-origin>same origin</a> as the <a href=#effective-script-origin id=the-object-element:effective-script-origin-2>effective script
origin</a> specified by the <a href=#incumbent-settings-object id=the-object-element:incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>
@@ -21261,8 +21252,8 @@
or if the attribute is absent, then there is no <a href=#poster-frame id=the-video-element:poster-frame-2>poster frame</a>; abort these
steps.<li><p><a href=#resolve-a-url id=the-video-element:resolve-a-url>Resolve</a> the <code id=the-video-element:attr-video-poster-4><a href=#attr-video-poster>poster</a></code> attribute's value relative to the element. If this fails,
then there is no <a href=#poster-frame id=the-video-element:poster-frame-3>poster frame</a>; abort these steps.<li><p><a href=#fetch id=the-video-element:fetch>Fetch</a> the resulting <a href=#absolute-url id=the-video-element:absolute-url>absolute URL</a>, from the element's
- <code id=the-video-element:document><a href=#document>Document</a></code>'s <a href=#origin-2 id=the-video-element:origin-2>origin</a>. This must <a href=#delay-the-load-event id=the-video-element:delay-the-load-event>delay the load event</a> of the
- element's document.<li><p>If an image is thus obtained, the <a href=#poster-frame id=the-video-element:poster-frame-4>poster frame</a> is that image. Otherwise,
+ <a id=the-video-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#origin-2 id=the-video-element:origin-2>origin</a>. This must <a href=#delay-the-load-event id=the-video-element:delay-the-load-event>delay the load event</a> of the
+ element's <a id=the-video-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.<li><p>If an image is thus obtained, the <a href=#poster-frame id=the-video-element:poster-frame-4>poster frame</a> is that image. Otherwise,
there is no <a href=#poster-frame id=the-video-element:poster-frame-5>poster frame</a>.</ol>
@@ -21516,7 +21507,7 @@
attribute set to the literal value "<code id=the-audio-element:attr-media-preload-auto><a href=#attr-media-preload-auto>auto</a></code>". If the
<var>src</var> argument is present, the object created must be created with its <code id=the-audio-element:attr-media-src-6><a href=#attr-media-src>src</a></code> content attribute set to the provided value (this will <a href=#concept-media-load-algorithm-at-creation>cause the user agent to invoke</a> the object's
<a href=#concept-media-load-algorithm id=the-audio-element:concept-media-load-algorithm>resource selection algorithm</a> before returning).
- The element's document must be the <a href=#active-document id=the-audio-element:active-document>active document</a> of the <a href=#browsing-context id=the-audio-element:browsing-context>browsing
+ The element's <a id=the-audio-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> must be the <a href=#active-document id=the-audio-element:active-document>active document</a> of the <a href=#browsing-context id=the-audio-element:browsing-context>browsing
context</a> of the <code id=the-audio-element:window><a href=#window>Window</a></code> object on which the interface object of the invoked
constructor is found.</p>
@@ -22392,7 +22383,7 @@
resource</var>'s <a href=#absolute-url id=loading-the-media-resource:absolute-url-5>absolute URL</a>, with the <i>mode</i> being the state of the
<a href=#media-element id=loading-the-media-resource:media-element-26>media element</a>'s <code id=loading-the-media-resource:attr-media-crossorigin><a href=#attr-media-crossorigin>crossorigin</a></code> content
attribute, the <i>origin</i> being the <a href=#origin-2 id=loading-the-media-resource:origin-2>origin</a> of the <a href=#media-element id=loading-the-media-resource:media-element-27>media element</a>'s
- <code id=loading-the-media-resource:document><a href=#document>Document</a></code>, and the <i>default origin behaviour</i> set to <i>taint</i>.</p>
+ <a id=loading-the-media-resource:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, and the <i>default origin behaviour</i> set to <i>taint</i>.</p>
<p>The resource obtained in this fashion, if any, contains the <a href=#media-data id=loading-the-media-resource:media-data>media data</a>. It can
be <a href=#cors-same-origin id=loading-the-media-resource:cors-same-origin>CORS-same-origin</a> or <a href=#cors-cross-origin id=loading-the-media-resource:cors-cross-origin>CORS-cross-origin</a>; this affects whether
@@ -23178,7 +23169,7 @@
<p>If the <a href=#autoplaying-flag id=ready-states:autoplaying-flag>autoplaying flag</a> is true, and the <code id=ready-states:dom-media-paused-3><a href=#dom-media-paused>paused</a></code> attribute is true, and the <a href=#media-element id=ready-states:media-element-6>media element</a>
has an <code id=ready-states:attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute specified, and the
- <a href=#media-element id=ready-states:media-element-7>media element</a>'s <code id=ready-states:document><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=ready-states:active-sandboxing-flag-set>active sandboxing flag set</a>
+ <a href=#media-element id=ready-states:media-element-7>media element</a>'s <a id=ready-states:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=ready-states:active-sandboxing-flag-set>active sandboxing flag set</a>
does not have the <a href=#sandboxed-automatic-features-browsing-context-flag id=ready-states:sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing context flag</a> set, then
the user agent may also run the following substeps:</p>
@@ -23676,7 +23667,7 @@
of a <a href=#text-track id=playing-the-media-resource:text-track-17>text track</a> only if it is listed in the <a href=#text-track-list-of-cues id=playing-the-media-resource:text-track-list-of-cues-4>text track list of cues</a>, not
merely if it is associated with the <a href=#text-track id=playing-the-media-resource:text-track-18>text track</a>.</p>
- <p class=note>If the <a href=#media-element id=playing-the-media-resource:media-element-74>media element</a>'s <code id=playing-the-media-resource:document-3><a href=#document>Document</a></code> stops being a
+ <p class=note>If the <a href=#media-element id=playing-the-media-resource:media-element-74>media element</a>'s <a id=playing-the-media-resource:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> stops being a
<a href=#fully-active id=playing-the-media-resource:fully-active-2>fully active</a> document, then the playback will <a href=#media-playback>stop</a>
until the document is active again.</p>
@@ -23684,7 +23675,7 @@
from a <code>Document</code></a>, the user agent must run the following steps:</p>
<ol><li><p>Asynchronously <a href=#await-a-stable-state id=playing-the-media-resource:await-a-stable-state-2>await a stable state</a>, allowing the <a href=#concept-task id=playing-the-media-resource:concept-task-13>task</a> that removed the <a href=#media-element id=playing-the-media-resource:media-element-76>media element</a> from the
- <code id=playing-the-media-resource:document-4><a href=#document>Document</a></code> to continue. The <a href=#synchronous-section id=playing-the-media-resource:synchronous-section>synchronous section</a> consists of all the
+ <code id=playing-the-media-resource:document-3><a href=#document>Document</a></code> to continue. The <a href=#synchronous-section id=playing-the-media-resource:synchronous-section>synchronous section</a> consists of all the
remaining steps of this algorithm. (Steps in the <a href=#synchronous-section id=playing-the-media-resource:synchronous-section-2>synchronous section</a> are marked with
⌛.)<li><p>⌛ If the <a href=#media-element id=playing-the-media-resource:media-element-77>media element</a> is <a href=#in-a-document id=playing-the-media-resource:in-a-document-2>in a <code>Document</code></a>,
abort these steps.<li><p>⌛ Run the <a href=#internal-pause-steps id=playing-the-media-resource:internal-pause-steps-2>internal pause steps</a> for the <a href=#media-element id=playing-the-media-resource:media-element-78>media element</a>.</p>
@@ -24772,7 +24763,7 @@
is being removed, then jump to the <i>update controllers</i> step below.<li>
<p>If there is another <a href=#media-element id=assigning-a-media-controller-declaratively:media-element-7>media element</a> whose <code id=assigning-a-media-controller-declaratively:document><a href=#document>Document</a></code> is the same as
- <var>m</var>'s <code id=assigning-a-media-controller-declaratively:document-2><a href=#document>Document</a></code> (even if one or both of these elements are not
+ <var>m</var>'s <a id=assigning-a-media-controller-declaratively:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> (even if one or both of these elements are not
actually <a href=#in-a-document id=assigning-a-media-controller-declaratively:in-a-document><em>in</em> the <code>Document</code></a>), and which
also has a <code id=assigning-a-media-controller-declaratively:attr-media-mediagroup-4><a href=#attr-media-mediagroup>mediagroup</a></code> attribute, and whose <code id=assigning-a-media-controller-declaratively:attr-media-mediagroup-5><a href=#attr-media-mediagroup>mediagroup</a></code> attribute has the same value as the new value of
<var>m</var>'s <code id=assigning-a-media-controller-declaratively:attr-media-mediagroup-6><a href=#attr-media-mediagroup>mediagroup</a></code> attribute, then
@@ -25361,7 +25352,7 @@
<p>If <var>URL</var> is not the empty string, perform a <a href=#potentially-cors-enabled-fetch id=sourcing-out-of-band-text-tracks:potentially-cors-enabled-fetch>potentially CORS-enabled
fetch</a> of <var>URL</var>, with the <i>mode</i> being <var>CORS mode</var>, the <i>origin</i> being the <a href=#origin-2 id=sourcing-out-of-band-text-tracks:origin-2>origin</a> of the
- <code id=sourcing-out-of-band-text-tracks:the-track-element-18><a href=#the-track-element>track</a></code> element's <code id=sourcing-out-of-band-text-tracks:document><a href=#document>Document</a></code>, and the <i>default origin behaviour</i> set
+ <code id=sourcing-out-of-band-text-tracks:the-track-element-18><a href=#the-track-element>track</a></code> element's <a id=sourcing-out-of-band-text-tracks:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, and the <i>default origin behaviour</i> set
to <i>fail</i>.</p>
<p>The resource obtained in this fashion, if any, contains the text track data. If any data is
@@ -27120,7 +27111,7 @@
<p>The <a href=#activation-behavior id=the-area-element:activation-behavior>activation behavior</a> of <code id=the-area-element:the-area-element-13><a href=#the-area-element>area</a></code> elements is to run the following
steps:</p>
- <ol><li><p>If the <code id=the-area-element:the-area-element-14><a href=#the-area-element>area</a></code> element's <code id=the-area-element:document><a href=#document>Document</a></code> is not <a href=#fully-active id=the-area-element:fully-active>fully active</a>,
+ <ol><li><p>If the <code id=the-area-element:the-area-element-14><a href=#the-area-element>area</a></code> element's <a id=the-area-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-area-element:fully-active>fully active</a>,
then abort these steps.<li>
<p>If the <code id=the-area-element:the-area-element-15><a href=#the-area-element>area</a></code> element has a <code id=the-area-element:attr-hyperlink-download-4><a href=#attr-hyperlink-download>download</a></code>
@@ -29109,7 +29100,7 @@
<li>
<p>If <var>rowspan</var> is zero and the <code id=forming-a-table:the-table-element-13><a href=#the-table-element>table</a></code> element's
- <code id=forming-a-table:document><a href=#document>Document</a></code> is not set to <a href=#quirks-mode id=forming-a-table:quirks-mode>quirks mode</a>, then let <var>cell grows
+ <a id=forming-a-table:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not set to <a href=#quirks-mode id=forming-a-table:quirks-mode>quirks mode</a>, then let <var>cell grows
downward</var> be true, and set <var>rowspan</var> to 1. Otherwise, let <var>cell grows downward</var> be false.</p>
<li>
@@ -35638,7 +35629,7 @@
<p>If the element is <i id="submit-button-state-(type=submit):concept-fe-mutable"><a href=#concept-fe-mutable>mutable</a></i>, then the element's
<a href=#activation-behavior id="submit-button-state-(type=submit):activation-behavior">activation behavior</a> is as follows: if the element has a <a href=#form-owner id="submit-button-state-(type=submit):form-owner">form owner</a>,
- and the element's <code id="submit-button-state-(type=submit):document"><a href=#document>Document</a></code> is <a href=#fully-active id="submit-button-state-(type=submit):fully-active">fully active</a>,
+ and the element's <a id="submit-button-state-(type=submit):node-document" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <a href=#fully-active id="submit-button-state-(type=submit):fully-active">fully active</a>,
<a href=#concept-form-submit id="submit-button-state-(type=submit):concept-form-submit">submit</a> the <a href=#form-owner id="submit-button-state-(type=submit):form-owner-2">form owner</a> from the
<code id="submit-button-state-(type=submit):the-input-element-3"><a href=#the-input-element>input</a></code> element; otherwise, do nothing.</p>
@@ -35754,7 +35745,7 @@
the <a href="#image-button-state-(type=image)" id="image-button-state-(type=image):image-button-state-(type=image)-5">Image Button</a> state, and the <code id="image-button-state-(type=image):attr-input-src-6"><a href=#attr-input-src>src</a></code> attribute is set or changed.</ul>
- <p>Fetching the image must <a href=#delay-the-load-event id="image-button-state-(type=image):delay-the-load-event">delay the load event</a> of the element's document until the
+ <p>Fetching the image must <a href=#delay-the-load-event id="image-button-state-(type=image):delay-the-load-event">delay the load event</a> of the element's <a id="image-button-state-(type=image):node-document" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> until the
<a href=#concept-task id="image-button-state-(type=image):concept-task">task</a> that is <a href=#queue-a-task id="image-button-state-(type=image):queue-a-task">queued</a> by the
<a href=#networking-task-source id="image-button-state-(type=image):networking-task-source">networking task source</a> once the resource has been <a href=#fetch id="image-button-state-(type=image):fetch-2">fetched</a>
(defined below) has been run.</p>
@@ -35800,19 +35791,19 @@
then: The element <a href=#represents id="image-button-state-(type=image):represents-2">represents</a> a control for selecting a <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate">coordinate</a> from the image specified by the
<code id="image-button-state-(type=image):attr-input-src-8"><a href=#attr-input-src>src</a></code> attribute; if the element is <i id="image-button-state-(type=image):concept-fe-mutable"><a href=#concept-fe-mutable>mutable</a></i>, the user agent should allow the user to select this <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate-2">coordinate</a>, and the element's <a href=#activation-behavior id="image-button-state-(type=image):activation-behavior">activation
behavior</a> is as follows: if the element has a <a href=#form-owner id="image-button-state-(type=image):form-owner">form owner</a>, and the element's
- <code id="image-button-state-(type=image):document"><a href=#document>Document</a></code> is <a href=#fully-active id="image-button-state-(type=image):fully-active">fully active</a>, take the user's selected <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate-3">coordinate</a>, and <a href=#concept-form-submit id="image-button-state-(type=image):concept-form-submit">submit</a> the <code id="image-button-state-(type=image):the-input-element-10"><a href=#the-input-element>input</a></code> element's <a href=#form-owner id="image-button-state-(type=image):form-owner-2">form owner</a>
+ <a id="image-button-state-(type=image):node-document-2" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <a href=#fully-active id="image-button-state-(type=image):fully-active">fully active</a>, take the user's selected <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate-3">coordinate</a>, and <a href=#concept-form-submit id="image-button-state-(type=image):concept-form-submit">submit</a> the <code id="image-button-state-(type=image):the-input-element-10"><a href=#the-input-element>input</a></code> element's <a href=#form-owner id="image-button-state-(type=image):form-owner-2">form owner</a>
from the <code id="image-button-state-(type=image):the-input-element-11"><a href=#the-input-element>input</a></code> element. If the user activates the control without explicitly
selecting a coordinate, then the coordinate (0,0) must be assumed.</p>
<p>Otherwise, the element <a href=#represents id="image-button-state-(type=image):represents-3">represents</a> a submit button whose label is given by the
value of the <code id="image-button-state-(type=image):attr-input-alt-2"><a href=#attr-input-alt>alt</a></code> attribute; if the element is <i id="image-button-state-(type=image):concept-fe-mutable-2"><a href=#concept-fe-mutable>mutable</a></i>, then the element's <a href=#activation-behavior id="image-button-state-(type=image):activation-behavior-2">activation behavior</a> is as
- follows: if the element has a <a href=#form-owner id="image-button-state-(type=image):form-owner-3">form owner</a>, and the element's <code id="image-button-state-(type=image):document-2"><a href=#document>Document</a></code> is
+ follows: if the element has a <a href=#form-owner id="image-button-state-(type=image):form-owner-3">form owner</a>, and the element's <a id="image-button-state-(type=image):node-document-3" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
<a href=#fully-active id="image-button-state-(type=image):fully-active-2">fully active</a>, set the <a href=#concept-input-type-image-coordinate id="image-button-state-(type=image):concept-input-type-image-coordinate-4">selected
coordinate</a> to (0,0), and <a href=#concept-form-submit id="image-button-state-(type=image):concept-form-submit-2">submit</a> the
<code id="image-button-state-(type=image):the-input-element-12"><a href=#the-input-element>input</a></code> element's <a href=#form-owner id="image-button-state-(type=image):form-owner-4">form owner</a> from the <code id="image-button-state-(type=image):the-input-element-13"><a href=#the-input-element>input</a></code> element.</p>
<p>In either case, if the element is <i id="image-button-state-(type=image):concept-fe-mutable-3"><a href=#concept-fe-mutable>mutable</a></i> but has no
- <a href=#form-owner id="image-button-state-(type=image):form-owner-5">form owner</a> or the element's <code id="image-button-state-(type=image):document-3"><a href=#document>Document</a></code> is not <a href=#fully-active id="image-button-state-(type=image):fully-active-3">fully active</a>,
+ <a href=#form-owner id="image-button-state-(type=image):form-owner-5">form owner</a> or the element's <a id="image-button-state-(type=image):node-document-4" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id="image-button-state-(type=image):fully-active-3">fully active</a>,
then its <a href=#activation-behavior id="image-button-state-(type=image):activation-behavior-3">activation behavior</a> must be to do nothing. If the element is not <i id="image-button-state-(type=image):concept-fe-mutable-4"><a href=#concept-fe-mutable>mutable</a></i>, it has no <a href=#activation-behavior id="image-button-state-(type=image):activation-behavior-4">activation behavior</a>.</p>
<p>The <dfn id=concept-input-type-image-coordinate>selected coordinate</dfn> must consist of
@@ -35960,7 +35951,7 @@
<p>If the element is <i id="reset-button-state-(type=reset):concept-fe-mutable"><a href=#concept-fe-mutable>mutable</a></i>, then the element's
<a href=#activation-behavior id="reset-button-state-(type=reset):activation-behavior">activation behavior</a>, if the element has a <a href=#form-owner id="reset-button-state-(type=reset):form-owner">form owner</a> and the element's
- <code id="reset-button-state-(type=reset):document"><a href=#document>Document</a></code> is <a href=#fully-active id="reset-button-state-(type=reset):fully-active">fully active</a>, is to <a href=#concept-form-reset id="reset-button-state-(type=reset):concept-form-reset">reset</a> the <a href=#form-owner id="reset-button-state-(type=reset):form-owner-2">form owner</a>; otherwise, it is to do
+ <a id="reset-button-state-(type=reset):node-document" href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <a href=#fully-active id="reset-button-state-(type=reset):fully-active">fully active</a>, is to <a href=#concept-form-reset id="reset-button-state-(type=reset):concept-form-reset">reset</a> the <a href=#form-owner id="reset-button-state-(type=reset):form-owner-2">form owner</a>; otherwise, it is to do
nothing.</p>
<p>If the element is not <i id="reset-button-state-(type=reset):concept-fe-mutable-2"><a href=#concept-fe-mutable>mutable</a></i>, it has no <a href=#activation-behavior id="reset-button-state-(type=reset):activation-behavior-2">activation
@@ -37287,9 +37278,9 @@
its <a href=#activation-behavior id=the-button-element:activation-behavior>activation behavior</a> element is to run the steps defined in the following list for
the current state of the element's <code id=the-button-element:attr-button-type-4><a href=#attr-button-type>type</a></code> attribute:</p>
- <dl><dt> <dfn id=attr-button-type-submit-state>Submit Button</dfn> <dd><p>If the element has a <a href=#form-owner id=the-button-element:form-owner>form owner</a> and the element's <code id=the-button-element:document><a href=#document>Document</a></code> is
+ <dl><dt> <dfn id=attr-button-type-submit-state>Submit Button</dfn> <dd><p>If the element has a <a href=#form-owner id=the-button-element:form-owner>form owner</a> and the element's <a id=the-button-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
<a href=#fully-active id=the-button-element:fully-active>fully active</a>, the element must <a href=#concept-form-submit id=the-button-element:concept-form-submit>submit</a> the
- <a href=#form-owner id=the-button-element:form-owner-2>form owner</a> from the <code id=the-button-element:the-button-element-3><a href=#the-button-element>button</a></code> element.<dt> <dfn id=attr-button-type-reset-state>Reset Button</dfn> <dd><p>If the element has a <a href=#form-owner id=the-button-element:form-owner-3>form owner</a> and the element's <code id=the-button-element:document-2><a href=#document>Document</a></code> is
+ <a href=#form-owner id=the-button-element:form-owner-2>form owner</a> from the <code id=the-button-element:the-button-element-3><a href=#the-button-element>button</a></code> element.<dt> <dfn id=attr-button-type-reset-state>Reset Button</dfn> <dd><p>If the element has a <a href=#form-owner id=the-button-element:form-owner-3>form owner</a> and the element's <a id=the-button-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
<a href=#fully-active id=the-button-element:fully-active-2>fully active</a>, the element must <a href=#concept-form-reset id=the-button-element:concept-form-reset>reset</a> the
<a href=#form-owner id=the-button-element:form-owner-4>form owner</a>.<dt> <dfn id=attr-button-type-button-state>Button</dfn>
@@ -37300,7 +37291,7 @@
<p>The element must follow these steps:</p>
<ol><li><p>If the <code id=the-button-element:the-button-element-4><a href=#the-button-element>button</a></code> is not <a href=#being-rendered id=the-button-element:being-rendered>being rendered</a>, abort these
- steps.<li><p>If the <code id=the-button-element:the-button-element-5><a href=#the-button-element>button</a></code> element's <code id=the-button-element:document-3><a href=#document>Document</a></code> is not <a href=#fully-active id=the-button-element:fully-active-3>fully
+ steps.<li><p>If the <code id=the-button-element:the-button-element-5><a href=#the-button-element>button</a></code> element's <a id=the-button-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-button-element:fully-active-3>fully
active</a>, abort these steps.<li><p>Let <var>menu</var> be the element's <a href=#designated-pop-up-menu id=the-button-element:designated-pop-up-menu-2>designated pop-up menu</a>, if
any. If there isn't one, then abort these steps.<li><p><a href=#concept-event-fire id=the-button-element:concept-event-fire>Fire</a> a <a href=#concept-events-trusted id=the-button-element:concept-events-trusted>trusted</a> event with the name <code id=the-button-element:event-show><a href=#event-show>show</a></code> at <var>menu</var>, using the <code id=the-button-element:relatedevent><a href=#relatedevent>RelatedEvent</a></code>
interface, with the <code id=the-button-element:dom-relatedevent-relatedtarget><a href=#dom-relatedevent-relatedtarget>relatedTarget</a></code> attribute
@@ -38118,7 +38109,7 @@
no children. If the <var>value</var> argument is present, the new object must have a
<code id=the-option-element:attr-option-value-7><a href=#attr-option-value>value</a></code> attribute set with the value of the argument as its
value. If the <var>defaultSelected</var> argument is true, the new object must have a
- <code id=the-option-element:attr-option-selected-10><a href=#attr-option-selected>selected</a></code> attribute set with no value. If the <var>selected</var> argument is true, the new object must have its <a href=#concept-option-selectedness id=the-option-element:concept-option-selectedness-9>selectedness</a> set to true; otherwise the <a href=#concept-option-selectedness id=the-option-element:concept-option-selectedness-10>selectedness</a> must be set to false, even if the <var>defaultSelected</var> argument is true. The element's document must be the <a href=#active-document id=the-option-element:active-document>active
+ <code id=the-option-element:attr-option-selected-10><a href=#attr-option-selected>selected</a></code> attribute set with no value. If the <var>selected</var> argument is true, the new object must have its <a href=#concept-option-selectedness id=the-option-element:concept-option-selectedness-9>selectedness</a> set to true; otherwise the <a href=#concept-option-selectedness id=the-option-element:concept-option-selectedness-10>selectedness</a> must be set to false, even if the <var>defaultSelected</var> argument is true. The element's <a id=the-option-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> must be the <a href=#active-document id=the-option-element:active-document>active
document</a> of the <a href=#browsing-context id=the-option-element:browsing-context>browsing context</a> of the <code id=the-option-element:window><a href=#window>Window</a></code> object on which
the interface object of the invoked constructor is found.</p>
@@ -39992,15 +39983,15 @@
is <a href=#insert-an-element-into-a-document id=autofocusing-a-form-control:-the-autofocus-attribute:insert-an-element-into-a-document>inserted into a document</a>, user agents
should run the following steps:</p>
- <ol><li><p>Let <var>target</var> be the element's <code id=autofocusing-a-form-control:-the-autofocus-attribute:document><a href=#document>Document</a></code>.<li><p>If <var>target</var> has no <a href=#browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:browsing-context>browsing context</a>, abort these
+ <ol><li><p>Let <var>target</var> be the element's <a id=autofocusing-a-form-control:-the-autofocus-attribute:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.<li><p>If <var>target</var> has no <a href=#browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:browsing-context>browsing context</a>, abort these
steps.<li><p>If <var>target</var>'s <a href=#browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:browsing-context-2>browsing context</a> has no <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context>top-level
browsing context</a> (e.g. it is a <a href=#nested-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:nested-browsing-context>nested browsing context</a> with no <a href=#parent-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:parent-browsing-context>parent
browsing context</a>), abort these steps.<li><p>If <var>target</var>'s <a href=#active-sandboxing-flag-set id=autofocusing-a-form-control:-the-autofocus-attribute:active-sandboxing-flag-set>active sandboxing flag set</a> has the
- <a href=#sandboxed-automatic-features-browsing-context-flag id=autofocusing-a-form-control:-the-autofocus-attribute:sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing context flag</a>, abort these steps.<li><p>If <var>target</var>'s <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2>origin</a> is not the <a href=#same-origin id=autofocusing-a-form-control:-the-autofocus-attribute:same-origin>same</a> as the <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2-2>origin</a> of the <code id=autofocusing-a-form-control:-the-autofocus-attribute:document-2><a href=#document>Document</a></code> of the currently
+ <a href=#sandboxed-automatic-features-browsing-context-flag id=autofocusing-a-form-control:-the-autofocus-attribute:sandboxed-automatic-features-browsing-context-flag>sandboxed automatic features browsing context flag</a>, abort these steps.<li><p>If <var>target</var>'s <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2>origin</a> is not the <a href=#same-origin id=autofocusing-a-form-control:-the-autofocus-attribute:same-origin>same</a> as the <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2-2>origin</a> of the <a id=autofocusing-a-form-control:-the-autofocus-attribute:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the currently
focused element in <var>target</var>'s <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-2>top-level browsing context</a>, abort
these steps.<li><p>If <var>target</var>'s <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2-3>origin</a> is not the <a href=#same-origin id=autofocusing-a-form-control:-the-autofocus-attribute:same-origin-2>same</a> as the <a href=#origin-2 id=autofocusing-a-form-control:-the-autofocus-attribute:origin-2-4>origin</a> of the <a href=#active-document id=autofocusing-a-form-control:-the-autofocus-attribute:active-document>active document</a> of <var>target</var>'s <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-3>top-level browsing context</a>, abort these steps.<li><p>If the user agent has already reached the last step of this list of steps in response to
an element being <a href=#insert-an-element-into-a-document id=autofocusing-a-form-control:-the-autofocus-attribute:insert-an-element-into-a-document-2>inserted</a> into a
- <code id=autofocusing-a-form-control:-the-autofocus-attribute:document-3><a href=#document>Document</a></code> whose <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-4>top-level browsing context</a>'s <a href=#active-document id=autofocusing-a-form-control:-the-autofocus-attribute:active-document-2>active
+ <code id=autofocusing-a-form-control:-the-autofocus-attribute:document><a href=#document>Document</a></code> whose <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-4>top-level browsing context</a>'s <a href=#active-document id=autofocusing-a-form-control:-the-autofocus-attribute:active-document-2>active
document</a> is the same as <var>target</var>'s <a href=#top-level-browsing-context id=autofocusing-a-form-control:-the-autofocus-attribute:top-level-browsing-context-5>top-level browsing
context</a>'s <a href=#active-document id=autofocusing-a-form-control:-the-autofocus-attribute:active-document-3>active document</a>, abort these steps.<li><p>If the user has indicated (for example, by starting to type in a form control) that he
does not wish focus to be changed, then optionally abort these steps.<li><p><a href=#queue-a-task id=autofocusing-a-form-control:-the-autofocus-attribute:queue-a-task>Queue a task</a> that runs the <a href=#focusing-steps id=autofocusing-a-form-control:-the-autofocus-attribute:focusing-steps>focusing steps</a> for the element. User
@@ -41324,10 +41315,10 @@
<p>If any of the following conditions are met, then <a href=#queue-a-task id=user-interface-for-bulk-autofill:queue-a-task>queue a task</a> to <a href=#fail-the-autofill-request id=user-interface-for-bulk-autofill:fail-the-autofill-request>fail the
autofill request</a> on <var>form</var> with the reason "<code id=user-interface-for-bulk-autofill:dom-autocompleteerrorreason-disabled><a href=#dom-autocompleteerrorreason-disabled>disabled</a></code>", and abort these steps:</p>
- <ul><li><p>the algorithm is not <a href=#allowed-to-show-a-popup id=user-interface-for-bulk-autofill:allowed-to-show-a-popup>allowed to show a popup</a><li><p><var>form</var>'s <code id=user-interface-for-bulk-autofill:document><a href=#document>Document</a></code> is not <a href=#fully-active id=user-interface-for-bulk-autofill:fully-active>fully
+ <ul><li><p>the algorithm is not <a href=#allowed-to-show-a-popup id=user-interface-for-bulk-autofill:allowed-to-show-a-popup>allowed to show a popup</a><li><p><var>form</var>'s <a id=user-interface-for-bulk-autofill:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=user-interface-for-bulk-autofill:fully-active>fully
active</a><li><p><var>form</var>'s <code id=user-interface-for-bulk-autofill:attr-form-autocomplete><a href=#attr-form-autocomplete>autocomplete</a></code>
attribute is in the <a href=#attr-form-autocomplete-off-state id=user-interface-for-bulk-autofill:attr-form-autocomplete-off-state>off</a> state<li><p>the user has disabled this feature for this <var>form</var>'s
- <code id=user-interface-for-bulk-autofill:document-2><a href=#document>Document</a></code>'s <a href=#origin-2 id=user-interface-for-bulk-autofill:origin-2>origin</a><li><p>the user agent does not support this <var>form</var>'s fields (e.g. the form
+ <a id=user-interface-for-bulk-autofill:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#origin-2 id=user-interface-for-bulk-autofill:origin-2>origin</a><li><p>the user agent does not support this <var>form</var>'s fields (e.g. the form
has different fields whose <a href=#autofill-scope id=user-interface-for-bulk-autofill:autofill-scope>autofill scope</a> use different "<code>section-*</code>" tokens)<li><p>the <var>form</var> was obtained via unencrypted channels and the user agent
does not support autofill in such situations<li><p>another instance of this algorithm is already being run for <var>form</var></ul>
@@ -41358,7 +41349,7 @@
<p>If any of the following conditions are met, then <a href=#fail-the-autofill-request id=user-interface-for-bulk-autofill:fail-the-autofill-request-2>fail the autofill request</a> on
<var>form</var> with the reason "<code id=user-interface-for-bulk-autofill:dom-autocompleteerrorreason-disabled-2><a href=#dom-autocompleteerrorreason-disabled>disabled</a></code>", and abort these steps:</p>
- <ul><li><p><var>form</var> is no longer <a href=#in-a-document id=user-interface-for-bulk-autofill:in-a-document>in a <code>Document</code></a><li><p><var>form</var>'s <code id=user-interface-for-bulk-autofill:document-3><a href=#document>Document</a></code> is no longer <a href=#fully-active id=user-interface-for-bulk-autofill:fully-active-2>fully
+ <ul><li><p><var>form</var> is no longer <a href=#in-a-document id=user-interface-for-bulk-autofill:in-a-document>in a <code>Document</code></a><li><p><var>form</var>'s <a id=user-interface-for-bulk-autofill:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is no longer <a href=#fully-active id=user-interface-for-bulk-autofill:fully-active-2>fully
active</a><li><p><var>form</var>'s <code id=user-interface-for-bulk-autofill:attr-form-autocomplete-2><a href=#attr-form-autocomplete>autocomplete</a></code>
attribute is now in the <a href=#attr-form-autocomplete-off-state id=user-interface-for-bulk-autofill:attr-form-autocomplete-off-state-2>off</a>
state</ul>
@@ -42131,7 +42122,7 @@
following steps:</p>
<ol><li><p>Let <var>form document</var> be the <var>form</var>'s
- <code id=form-submission-algorithm:document><a href=#document>Document</a></code>.<li id=sandboxSubmitBlocked><p>If <var>form document</var> has no associated
+ <a id=form-submission-algorithm:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.<li id=sandboxSubmitBlocked><p>If <var>form document</var> has no associated
<a href=#browsing-context id=form-submission-algorithm:browsing-context>browsing context</a> or its <a href=#active-sandboxing-flag-set id=form-submission-algorithm:active-sandboxing-flag-set>active sandboxing flag set</a> has its
<a href=#sandboxed-forms-browsing-context-flag id=form-submission-algorithm:sandboxed-forms-browsing-context-flag>sandboxed forms browsing context flag</a> set, then abort these steps without doing
anything.<li><p>Let <var>form browsing context</var> be the <a href=#browsing-context id=form-submission-algorithm:browsing-context-2>browsing context</a> of <var>form document</var>.<li><p>If the <var>submitted from <code id=form-submission-algorithm:dom-form-submit-2><a href=#dom-form-submit>submit()</a></code>
@@ -43996,8 +43987,8 @@
an <code id=the-dialog-element:invalidstateerror-2><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these steps.<li><p>Add an <code id=the-dialog-element:attr-dialog-open-6><a href=#attr-dialog-open>open</a></code> attribute to <var>subject</var>, whose value is the empty string.<li><p>If the <code id=the-dialog-element:dom-dialog-showmodal-3><a href=#dom-dialog-showmodal>showModal()</a></code> method was invoked with an
argument, <a href=#set-up-the-position id=the-dialog-element:set-up-the-position-2>set up the position</a> of <var>subject</var>, using that argument
as the anchor. Otherwise, set the <code id=the-dialog-element:the-dialog-element-15><a href=#the-dialog-element>dialog</a></code> to the <a href=#centered-alignment id=the-dialog-element:centered-alignment>centered alignment</a>
- mode.<li><p>Let <var>subject</var>'s <code id=the-dialog-element:document-3><a href=#document>Document</a></code> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog>blocked by the modal dialog</a> <var>subject</var>.<li><p>Push <var>subject</var> onto <var>subject</var>'s
- <code id=the-dialog-element:document-4><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-3>pending dialog stack</a>.<li><p>Run the <a href=#dialog-focusing-steps id=the-dialog-element:dialog-focusing-steps-2>dialog focusing steps</a> for <var>subject</var>.</ol>
+ mode.<li><p>Let <var>subject</var>'s <a id=the-dialog-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog>blocked by the modal dialog</a> <var>subject</var>.<li><p>Push <var>subject</var> onto <var>subject</var>'s
+ <a id=the-dialog-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-3>pending dialog stack</a>.<li><p>Run the <a href=#dialog-focusing-steps id=the-dialog-element:dialog-focusing-steps-2>dialog focusing steps</a> for <var>subject</var>.</ol>
<p>The <dfn id=dialog-focusing-steps>dialog focusing steps</dfn> for a <code id=the-dialog-element:the-dialog-element-16><a href=#the-dialog-element>dialog</a></code> element <var>subject</var> are as follows:</p>
@@ -44015,9 +44006,9 @@
<li><p>Run the <a href=#focusing-steps id=the-dialog-element:focusing-steps>focusing steps</a> for <var>control</var>.</ol>
<p>If at any time a <code id=the-dialog-element:the-dialog-element-17><a href=#the-dialog-element>dialog</a></code> element is <a href=#remove-an-element-from-a-document id=the-dialog-element:remove-an-element-from-a-document>removed from a <code>Document</code></a>, then if that <code id=the-dialog-element:the-dialog-element-18><a href=#the-dialog-element>dialog</a></code> is in that
- <code id=the-dialog-element:document-5><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-4>pending dialog stack</a>, the following steps must be run:</p>
+ <code id=the-dialog-element:document-3><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-4>pending dialog stack</a>, the following steps must be run:</p>
- <ol><li><p>Let <var>subject</var> be that <code id=the-dialog-element:the-dialog-element-19><a href=#the-dialog-element>dialog</a></code> element and <var>document</var> be the <code id=the-dialog-element:document-6><a href=#document>Document</a></code> from which it is being removed.<li><p>Remove <var>subject</var> from <var>document</var>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-5>pending
+ <ol><li><p>Let <var>subject</var> be that <code id=the-dialog-element:the-dialog-element-19><a href=#the-dialog-element>dialog</a></code> element and <var>document</var> be the <code id=the-dialog-element:document-4><a href=#document>Document</a></code> from which it is being removed.<li><p>Remove <var>subject</var> from <var>document</var>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-5>pending
dialog stack</a>.<li><p>If <var>document</var>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-6>pending dialog stack</a> is not empty, then let
<var>document</var> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog-2>blocked by the modal
dialog</a> that is at the top of <var>document</var>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-7>pending dialog
@@ -44038,10 +44029,10 @@
attribute, then abort these steps.<li><p>Remove <var>subject</var>'s <code id=the-dialog-element:attr-dialog-open-8><a href=#attr-dialog-open>open</a></code>
attribute.<li><p>If the argument <var>result</var> was provided, then set the <code id=the-dialog-element:dom-dialog-returnvalue-3><a href=#dom-dialog-returnvalue>returnValue</a></code> attribute to the value of <var>result</var>.<li>
- <p>If <var>subject</var> is in its <code id=the-dialog-element:document-7><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-8>pending dialog
+ <p>If <var>subject</var> is in its <code id=the-dialog-element:document-5><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-8>pending dialog
stack</a>, then run these substeps:</p>
- <ol><li><p>Remove <var>subject</var> from that <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-9>pending dialog stack</a>.<li><p>If that <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-10>pending dialog stack</a> is not empty, then let <var>subject</var>'s <code id=the-dialog-element:document-8><a href=#document>Document</a></code> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog-4>blocked by the modal dialog</a> that is at the top of the <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-11>pending dialog
+ <ol><li><p>Remove <var>subject</var> from that <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-9>pending dialog stack</a>.<li><p>If that <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-10>pending dialog stack</a> is not empty, then let <var>subject</var>'s <a id=the-dialog-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> be <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog-4>blocked by the modal dialog</a> that is at the top of the <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-11>pending dialog
stack</a>. Otherwise, let <var>document</var> be no longer <a href=#blocked-by-a-modal-dialog id=the-dialog-element:blocked-by-a-modal-dialog-5>blocked by a modal
dialog</a> at all.</ol>
@@ -44055,9 +44046,9 @@
<hr>
- <p><strong>Canceling dialogs</strong>: When a <code id=the-dialog-element:document-9><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-12>pending dialog
+ <p><strong>Canceling dialogs</strong>: When a <code id=the-dialog-element:document-6><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-12>pending dialog
stack</a> is not empty, user agents may provide a user interface that, upon activation, <a href=#queue-a-task id=the-dialog-element:queue-a-task-2>queues a task</a> to <a href=#fire-a-simple-event id=the-dialog-element:fire-a-simple-event-2>fire a simple event</a> named <code id=the-dialog-element:event-cancel><a href=#event-cancel>cancel</a></code> that is cancelable at the top <code id=the-dialog-element:the-dialog-element-21><a href=#the-dialog-element>dialog</a></code> element on
- the <code id=the-dialog-element:document-10><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-13>pending dialog stack</a>. The default action of this event
+ the <code id=the-dialog-element:document-7><a href=#document>Document</a></code>'s <a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-13>pending dialog stack</a>. The default action of this event
must be to check if that element has an <code id=the-dialog-element:attr-dialog-open-9><a href=#attr-dialog-open>open</a></code> attribute, and
if it does, <a href=#close-the-dialog id=the-dialog-element:close-the-dialog-2>close the dialog</a> with no return value.</p>
@@ -44117,7 +44108,7 @@
<p>If at any time either <var>A</var> or <var>B</var> cease having rendered
boxes, <var>A</var> and <var>B</var> cease being in the same
- <code id=the-dialog-element:document-11><a href=#document>Document</a></code>, or <var>B</var> ceases being earlier than <var>A</var> in <a href=#tree-order id=the-dialog-element:tree-order>tree order</a>, then, if <var>subject</var> is in the
+ <code id=the-dialog-element:document-8><a href=#document>Document</a></code>, or <var>B</var> ceases being earlier than <var>A</var> in <a href=#tree-order id=the-dialog-element:tree-order>tree order</a>, then, if <var>subject</var> is in the
<a href=#pending-dialog-stack id=the-dialog-element:pending-dialog-stack-14>pending dialog stack</a>, let <var>subject</var>'s mode become <a href=#centered-alignment id=the-dialog-element:centered-alignment-7>centered
alignment</a>, otherwise, let <var>subject</var>'s mode become <a href=#normal-alignment id=the-dialog-element:normal-alignment-3>normal
alignment</a>.</p>
@@ -44454,8 +44445,8 @@
type</var></dfn>, <dfn id=concept-script-encoding><var>the script block's character
encoding</var></dfn>, and <dfn id=concept-script-fallback-encoding><var>the script block's
fallback character encoding</var></dfn>. They are determined when the script is prepared, based on
- the attributes on the element at that time, and the <code id=the-script-element:document><a href=#document>Document</a></code> of the
- <code id=the-script-element:the-script-element-14><a href=#the-script-element>script</a></code> element.</p>
+ the attributes on the element at that time, and the
+ <code id=the-script-element:the-script-element-14><a href=#the-script-element>script</a></code> element's <a id=the-script-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
<p>When a <code id=the-script-element:the-script-element-15><a href=#the-script-element>script</a></code> element that is not marked as being <a href=#parser-inserted id=the-script-element:parser-inserted-2>"parser-inserted"</a>
experiences one of the events listed in the following list, the user agent must synchronously
@@ -44464,7 +44455,7 @@
<ul><li>The <code id=the-script-element:the-script-element-17><a href=#the-script-element>script</a></code> element gets <a href=#insert-an-element-into-a-document id=the-script-element:insert-an-element-into-a-document>inserted
into a document</a>, at the time the <a href=#nodes-are-inserted id=the-script-element:nodes-are-inserted>node is inserted</a>
according to the DOM, after any other <code id=the-script-element:the-script-element-18><a href=#the-script-element>script</a></code> elements inserted at the same time that
- are earlier in the <code id=the-script-element:document-2><a href=#document>Document</a></code> in <a href=#tree-order id=the-script-element:tree-order>tree order</a>.<li>The <code id=the-script-element:the-script-element-19><a href=#the-script-element>script</a></code> element is <a href=#in-a-document id=the-script-element:in-a-document>in a <code>Document</code></a> and a node or
+ are earlier in the <code id=the-script-element:document><a href=#document>Document</a></code> in <a href=#tree-order id=the-script-element:tree-order>tree order</a>.<li>The <code id=the-script-element:the-script-element-19><a href=#the-script-element>script</a></code> element is <a href=#in-a-document id=the-script-element:in-a-document>in a <code>Document</code></a> and a node or
document fragment is <a href=#nodes-are-inserted id=the-script-element:nodes-are-inserted-2>inserted</a> into the
<code id=the-script-element:the-script-element-20><a href=#the-script-element>script</a></code> element, after any <code id=the-script-element:the-script-element-21><a href=#the-script-element>script</a></code> elements <a href=#nodes-are-inserted id=the-script-element:nodes-are-inserted-3>inserted</a> at that time.<li>The <code id=the-script-element:the-script-element-22><a href=#the-script-element>script</a></code> element is <a href=#in-a-document id=the-script-element:in-a-document-2>in a <code>Document</code></a> and has a <code id=the-script-element:attr-script-src-9><a href=#attr-script-src>src</a></code> attribute set where previously the element had no such
attribute.</ul>
@@ -44558,7 +44549,7 @@
<li>
<p>If the element is flagged as <a href=#parser-inserted id=the-script-element:parser-inserted-6>"parser-inserted"</a>, but the element's
- <code id=the-script-element:document-3><a href=#document>Document</a></code> is not the <code id=the-script-element:document-4><a href=#document>Document</a></code> of the parser that created the element,
+ <a id=the-script-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not the <code id=the-script-element:document-2><a href=#document>Document</a></code> of the parser that created the element,
then abort these steps.</p>
<li id=script-processing-noscript>
@@ -44572,7 +44563,7 @@
<code id=the-script-element:xmlhttprequest><a href=#xmlhttprequest>XMLHttpRequest</a></code>'s <code id=the-script-element:dom-xmlhttprequest-responsexml><a href=#dom-xmlhttprequest-responsexml>responseXML</a></code>
documents, scripts in <code id=the-script-element:domparser><a data-x-internal=domparser href=http://domparsing.spec.whatwg.org/#the-domparser-interface>DOMParser</a></code>-created documents, scripts in documents created by
<code id=the-script-element:xsltprocessor><a href=#xsltprocessor>XSLTProcessor</a></code>'s <code id=the-script-element:dom-xsltprocessor-transformtodocument><a href=#dom-xsltprocessor-transformtodocument>transformToDocument</a></code> feature, and scripts
- that are first inserted by a script into a <code id=the-script-element:document-5><a href=#document>Document</a></code> that was created using the
+ that are first inserted by a script into a <code id=the-script-element:document-3><a href=#document>Document</a></code> that was created using the
<code id=the-script-element:dom-domimplementation-createdocument><a href=#dom-domimplementation-createdocument>createDocument()</a></code> API. <a href=#refsXHR>[XHR]</a>
<a href=#refsDOMPARSING>[DOMPARSING]</a> <a href=#refsDOM>[DOM]</a></p>
@@ -44617,7 +44608,7 @@
<p>Do a <a href=#potentially-cors-enabled-fetch id=the-script-element:potentially-cors-enabled-fetch>potentially CORS-enabled fetch</a> of the resulting
<a href=#absolute-url id=the-script-element:absolute-url>absolute URL</a>, with the <i>mode</i> being the current state of the element's <code id=the-script-element:attr-script-crossorigin-3><a href=#attr-script-crossorigin>crossorigin</a></code> content attribute, the <i>origin</i> being
- the <a href=#origin-2 id=the-script-element:origin-2-2>origin</a> of the <code id=the-script-element:the-script-element-39><a href=#the-script-element>script</a></code> element's <code id=the-script-element:document-6><a href=#document>Document</a></code>, and the
+ the <a href=#origin-2 id=the-script-element:origin-2-2>origin</a> of the <code id=the-script-element:the-script-element-39><a href=#the-script-element>script</a></code> element's <a id=the-script-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, and the
<i>default origin behaviour</i> set to <i>taint</i>.</p>
<p>The resource obtained in this fashion can be either <a href=#cors-same-origin id=the-script-element:cors-same-origin>CORS-same-origin</a> or
@@ -44644,7 +44635,7 @@
an <code id=the-script-element:attr-script-async-11><a href=#attr-script-async>async</a></code> attribute<dd>
<p>The element must be added to the end of the <dfn id=list-of-scripts-that-will-execute-when-the-document-has-finished-parsing>list of scripts that will execute when the
- document has finished parsing</dfn> associated with the <code id=the-script-element:document-7><a href=#document>Document</a></code> of the parser
+ document has finished parsing</dfn> associated with the <code id=the-script-element:document-4><a href=#document>Document</a></code> of the parser
that created the element.</p>
<p>The <a href=#concept-task id=the-script-element:concept-task>task</a> that the <a href=#networking-task-source id=the-script-element:networking-task-source>networking task source</a>
@@ -44656,8 +44647,8 @@
<a href=#parser-inserted id=the-script-element:parser-inserted-8>"parser-inserted"</a>, and the element does not have an <code id=the-script-element:attr-script-async-12><a href=#attr-script-async>async</a></code> attribute<dd>
<p>The element is the <a href=#pending-parsing-blocking-script id=the-script-element:pending-parsing-blocking-script>pending parsing-blocking script</a> of the
- <code id=the-script-element:document-8><a href=#document>Document</a></code> of the parser that created the element. (There can only be one such
- script per <code id=the-script-element:document-9><a href=#document>Document</a></code> at a time.)</p>
+ <code id=the-script-element:document-5><a href=#document>Document</a></code> of the parser that created the element. (There can only be one such
+ script per <code id=the-script-element:document-6><a href=#document>Document</a></code> at a time.)</p>
<p>The <a href=#concept-task id=the-script-element:concept-task-2>task</a> that the <a href=#networking-task-source id=the-script-element:networking-task-source-2>networking task source</a>
places on the <a href=#task-queue id=the-script-element:task-queue-2>task queue</a> once the <a href=#fetch id=the-script-element:fetch-2>fetching algorithm</a>
@@ -44667,13 +44658,13 @@
<dt id=script-processing-style-delayed>If the element does not have a <code id=the-script-element:attr-script-src-17><a href=#attr-script-src>src</a></code> attribute, and the element has been flagged as
<a href=#parser-inserted id=the-script-element:parser-inserted-9>"parser-inserted"</a>, and either the parser that created the <code id=the-script-element:the-script-element-40><a href=#the-script-element>script</a></code> is
an <a href=#xml-parser id=the-script-element:xml-parser-3>XML parser</a> or it's an <a href=#html-parser id=the-script-element:html-parser-3>HTML parser</a> whose <a href=#script-nesting-level id=the-script-element:script-nesting-level>script nesting
- level</a> is not greater than one, and the <code id=the-script-element:document-10><a href=#document>Document</a></code> of the <a href=#html-parser id=the-script-element:html-parser-4>HTML
+ level</a> is not greater than one, and the <code id=the-script-element:document-7><a href=#document>Document</a></code> of the <a href=#html-parser id=the-script-element:html-parser-4>HTML
parser</a> or <a href=#xml-parser id=the-script-element:xml-parser-4>XML parser</a> that created the <code id=the-script-element:the-script-element-41><a href=#the-script-element>script</a></code> element <a href=#has-a-style-sheet-that-is-blocking-scripts id=the-script-element:has-a-style-sheet-that-is-blocking-scripts>has
a style sheet that is blocking scripts</a><dd>
<p>The element is the <a href=#pending-parsing-blocking-script id=the-script-element:pending-parsing-blocking-script-2>pending parsing-blocking script</a> of the
- <code id=the-script-element:document-11><a href=#document>Document</a></code> of the parser that created the element. (There can only be one such
- script per <code id=the-script-element:document-12><a href=#document>Document</a></code> at a time.)</p>
+ <code id=the-script-element:document-8><a href=#document>Document</a></code> of the parser that created the element. (There can only be one such
+ script per <code id=the-script-element:document-9><a href=#document>Document</a></code> at a time.)</p>
<p>Set the element's <a href=#ready-to-be-parser-executed id=the-script-element:ready-to-be-parser-executed-3>"ready to be parser-executed"</a> flag. The parser will handle
executing the script.</p>
@@ -44682,7 +44673,7 @@
<a href=#force-async id=the-script-element:force-async-5>"force-async"</a> flag set<dd>
<p>The element must be added to the end of the <dfn id=list-of-scripts-that-will-execute-in-order-as-soon-as-possible>list of scripts that will execute in order
- as soon as possible</dfn> associated with the <code id=the-script-element:document-13><a href=#document>Document</a></code> of the <code id=the-script-element:the-script-element-42><a href=#the-script-element>script</a></code>
+ as soon as possible</dfn> associated with the <a id=the-script-element:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <code id=the-script-element:the-script-element-42><a href=#the-script-element>script</a></code>
element at the time the <a href=#prepare-a-script id=the-script-element:prepare-a-script-2>prepare a script</a> algorithm started.</p>
<p>The <a href=#concept-task id=the-script-element:concept-task-3>task</a> that the <a href=#networking-task-source id=the-script-element:networking-task-source-3>networking task source</a>
@@ -44702,7 +44693,7 @@
attribute<dd>
<p>The element must be added to the <dfn id=set-of-scripts-that-will-execute-as-soon-as-possible>set of scripts that will execute as soon as
- possible</dfn> of the <code id=the-script-element:document-14><a href=#document>Document</a></code> of the <code id=the-script-element:the-script-element-43><a href=#the-script-element>script</a></code> element at the time the
+ possible</dfn> of the <a id=the-script-element:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <code id=the-script-element:the-script-element-43><a href=#the-script-element>script</a></code> element at the time the
<a href=#prepare-a-script id=the-script-element:prepare-a-script-3>prepare a script</a> algorithm started.</p>
<p>The <a href=#concept-task id=the-script-element:concept-task-4>task</a> that the <a href=#networking-task-source id=the-script-element:networking-task-source-4>networking task source</a>
@@ -44716,19 +44707,19 @@
</ol>
- <p>Fetching an external script must <a href=#delay-the-load-event id=the-script-element:delay-the-load-event>delay the load event</a> of the element's document
+ <p>Fetching an external script must <a href=#delay-the-load-event id=the-script-element:delay-the-load-event>delay the load event</a> of the element's <a id=the-script-element:node-document-6 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>
until the <a href=#concept-task id=the-script-element:concept-task-5>task</a> that is <a href=#queue-a-task id=the-script-element:queue-a-task-3>queued</a>
by the <a href=#networking-task-source id=the-script-element:networking-task-source-5>networking task source</a> once the resource has been <a href=#fetch id=the-script-element:fetch-5>fetched</a> (defined above) has been run.</p>
- <p>The <dfn id=pending-parsing-blocking-script>pending parsing-blocking script</dfn> of a <code id=the-script-element:document-15><a href=#document>Document</a></code> is used by the
- <code id=the-script-element:document-16><a href=#document>Document</a></code>'s parser(s).</p>
+ <p>The <dfn id=pending-parsing-blocking-script>pending parsing-blocking script</dfn> of a <code id=the-script-element:document-10><a href=#document>Document</a></code> is used by the
+ <code id=the-script-element:document-11><a href=#document>Document</a></code>'s parser(s).</p>
<p class=note>If a <code id=the-script-element:the-script-element-44><a href=#the-script-element>script</a></code> element that blocks a parser gets moved to another
- <code id=the-script-element:document-17><a href=#document>Document</a></code> before it would normally have stopped blocking that parser, it nonetheless
+ <code id=the-script-element:document-12><a href=#document>Document</a></code> before it would normally have stopped blocking that parser, it nonetheless
continues blocking that parser until the condition that causes it to be blocking the parser no
longer applies (e.g. if the script is a <a href=#pending-parsing-blocking-script id=the-script-element:pending-parsing-blocking-script-3>pending parsing-blocking script</a> because there
was <a href=#a-style-sheet-that-is-blocking-scripts id=the-script-element:a-style-sheet-that-is-blocking-scripts>a style sheet that is blocking scripts</a> when it was parsed, but then the script is
- moved to another <code id=the-script-element:document-18><a href=#document>Document</a></code> before the style sheet loads, the script still blocks the
+ moved to another <code id=the-script-element:document-13><a href=#document>Document</a></code> before the style sheet loads, the script still blocks the
parser until the style sheets are all loaded, at which time the script executes and the parser is
unblocked).</p>
@@ -44740,7 +44731,7 @@
<ol><li>
<p>If the element is flagged as <a href=#parser-inserted id=the-script-element:parser-inserted-10>"parser-inserted"</a>, but the element's
- <code id=the-script-element:document-19><a href=#document>Document</a></code> is not the <code id=the-script-element:document-20><a href=#document>Document</a></code> of the parser that created the element,
+ <a id=the-script-element:node-document-7 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not the <code id=the-script-element:document-14><a href=#document>Document</a></code> of the parser that created the element,
then abort these steps.</p>
<li>
@@ -44820,18 +44811,18 @@
<p>If the script is from an external file, then increment the
<a href=#ignore-destructive-writes-counter id=the-script-element:ignore-destructive-writes-counter>ignore-destructive-writes counter</a> of the <code id=the-script-element:the-script-element-48><a href=#the-script-element>script</a></code> element's
- <code id=the-script-element:document-21><a href=#document>Document</a></code>. Let <var>neutralised doc</var> be that
- <code id=the-script-element:document-22><a href=#document>Document</a></code>.</p>
+ <a id=the-script-element:node-document-8 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>. Let <var>neutralised doc</var> be that
+ <code id=the-script-element:document-15><a href=#document>Document</a></code>.</p>
<li>
<p>Let <var>old script element</var> be the value to which the <code id=the-script-element:the-script-element-49><a href=#the-script-element>script</a></code>
- element's <code id=the-script-element:document-23><a href=#document>Document</a></code>'s <code id=the-script-element:dom-document-currentscript><a href=#dom-document-currentscript>currentScript</a></code> object was most recently
+ element's <a id=the-script-element:node-document-9 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <code id=the-script-element:dom-document-currentscript><a href=#dom-document-currentscript>currentScript</a></code> object was most recently
initialized.</p>
<li>
- <p>Initialise the <code id=the-script-element:the-script-element-50><a href=#the-script-element>script</a></code> element's <code id=the-script-element:document-24><a href=#document>Document</a></code>'s <code id=the-script-element:dom-document-currentscript-2><a href=#dom-document-currentscript>currentScript</a></code> object to the <code id=the-script-element:the-script-element-51><a href=#the-script-element>script</a></code>
+ <p>Initialise the <code id=the-script-element:the-script-element-50><a href=#the-script-element>script</a></code> element's <a id=the-script-element:node-document-10 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <code id=the-script-element:dom-document-currentscript-2><a href=#dom-document-currentscript>currentScript</a></code> object to the <code id=the-script-element:the-script-element-51><a href=#the-script-element>script</a></code>
element.</p>
<li>
@@ -44839,7 +44830,7 @@
<p><a href=#create-a-script id=the-script-element:create-a-script>Create a script</a>, using <var id=the-script-element:concept-script-source><a href=#concept-script-source>the script
block's source</a></var>, the <a href=#url id=the-script-element:url>URL</a> from which the script was obtained, <var id=the-script-element:concept-script-type-11><a href=#concept-script-type>the script block's type</a></var> as the scripting language, and
the <a href=#script-settings-object id=the-script-element:script-settings-object>script settings object</a> of the <code id=the-script-element:the-script-element-52><a href=#the-script-element>script</a></code> element's
- <code id=the-script-element:document-25><a href=#document>Document</a></code>'s <code id=the-script-element:window><a href=#window>Window</a></code> object.</p>
+ <a id=the-script-element:node-document-11 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <code id=the-script-element:window><a href=#window>Window</a></code> object.</p>
<p>If the script came from a resource that was <a href=#fetch id=the-script-element:fetch-6>fetched</a> in the
steps above, and the resource was <a href=#cors-cross-origin id=the-script-element:cors-cross-origin-2>CORS-cross-origin</a>, then pass the <var>muted errors</var> flag to the <a href=#create-a-script id=the-script-element:create-a-script-2>create a script</a> algorithm as well.</p>
@@ -44848,7 +44839,7 @@
<li>
- <p>Initialise the <code id=the-script-element:the-script-element-53><a href=#the-script-element>script</a></code> element's <code id=the-script-element:document-26><a href=#document>Document</a></code>'s <code id=the-script-element:dom-document-currentscript-3><a href=#dom-document-currentscript>currentScript</a></code> object to <var>old script
+ <p>Initialise the <code id=the-script-element:the-script-element-53><a href=#the-script-element>script</a></code> element's <a id=the-script-element:node-document-12 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <code id=the-script-element:dom-document-currentscript-3><a href=#dom-document-currentscript>currentScript</a></code> object to <var>old script
element</var>.</p>
<li>
@@ -45380,8 +45371,8 @@
is its <dfn id=template-contents>template contents</dfn>. When a <code id=the-template-element:the-template-element-6><a href=#the-template-element>template</a></code> element is created, the user
agent must run the following steps to establish the <a href=#template-contents id=the-template-element:template-contents>template contents</a>:</p>
- <ol><li><p>Let <var>doc</var> be the <code id=the-template-element:the-template-element-7><a href=#the-template-element>template</a></code> element's <code id=the-template-element:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code>'s <a href=#appropriate-template-contents-owner-document id=the-template-element:appropriate-template-contents-owner-document>appropriate template contents owner
- document</a>.<li><p>Create a <code id=the-template-element:documentfragment-4><a href=#documentfragment>DocumentFragment</a></code> object whose <code id=the-template-element:dom-node-ownerdocument-2><a href=#dom-node-ownerdocument>ownerDocument</a></code> is <var>doc</var>.<li><p>Set the <code id=the-template-element:the-template-element-8><a href=#the-template-element>template</a></code> element's <a href=#template-contents id=the-template-element:template-contents-2>template contents</a> to the newly
+ <ol><li><p>Let <var>doc</var> be the <code id=the-template-element:the-template-element-7><a href=#the-template-element>template</a></code> element's <a id=the-template-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#appropriate-template-contents-owner-document id=the-template-element:appropriate-template-contents-owner-document>appropriate template contents owner
+ document</a>.<li><p>Create a <code id=the-template-element:documentfragment-4><a href=#documentfragment>DocumentFragment</a></code> object whose <a id=the-template-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is <var>doc</var>.<li><p>Set the <code id=the-template-element:the-template-element-8><a href=#the-template-element>template</a></code> element's <a href=#template-contents id=the-template-element:template-contents-2>template contents</a> to the newly
created <code id=the-template-element:documentfragment-5><a href=#documentfragment>DocumentFragment</a></code> object.</ol>
<p>A <code id=the-template-element:document-3><a href=#document>Document</a></code> <var>doc</var>'s <dfn id=appropriate-template-contents-owner-document>appropriate template contents owner
@@ -45415,10 +45406,10 @@
<li><p>Return <var>doc</var>.</ol>
- <p>When a <code id=the-template-element:the-template-element-11><a href=#the-template-element>template</a></code> element changes <code id=the-template-element:dom-node-ownerdocument-3><a href=#dom-node-ownerdocument>ownerDocument</a></code>, the user agent must run the following
+ <p>When a <code id=the-template-element:the-template-element-11><a href=#the-template-element>template</a></code> element's <a id=the-template-element:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> changes, the user agent must run the following
steps:</p>
- <ol><li><p>Let <var>doc</var> be the <code id=the-template-element:the-template-element-12><a href=#the-template-element>template</a></code> element's new <code id=the-template-element:dom-node-ownerdocument-4><a href=#dom-node-ownerdocument>ownerDocument</a></code>'s <a href=#appropriate-template-contents-owner-document id=the-template-element:appropriate-template-contents-owner-document-2>appropriate template contents owner
+ <ol><li><p>Let <var>doc</var> be the <code id=the-template-element:the-template-element-12><a href=#the-template-element>template</a></code> element's new <a id=the-template-element:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#appropriate-template-contents-owner-document id=the-template-element:appropriate-template-contents-owner-document-2>appropriate template contents owner
document</a>.<li><p><a href=#concept-node-adopt id=the-template-element:concept-node-adopt>Adopt</a> the <code id=the-template-element:the-template-element-13><a href=#the-template-element>template</a></code> element's
<a href=#template-contents id=the-template-element:template-contents-4>template contents</a> (a <code id=the-template-element:documentfragment-6><a href=#documentfragment>DocumentFragment</a></code> object) into <var>doc</var>.</ol>
@@ -45432,7 +45423,8 @@
following steps:</p>
<ol><li><p>If the <var>clone children flag</var> is not set in the calling <a href=#concept-node-clone id=the-template-element:concept-node-clone>clone</a> algorithm, abort these steps.<li><p>Let <var>copied contents</var> be the result of <a href=#concept-node-clone id=the-template-element:concept-node-clone-2>cloning</a> all the children of <var>node</var>'s
- <a href=#template-contents id=the-template-element:template-contents-6>template contents</a>, with <var>ownerDocument</var> set to <var>copy</var>'s <a href=#template-contents id=the-template-element:template-contents-7>template contents</a>'s <code id=the-template-element:dom-node-ownerdocument-5><a href=#dom-node-ownerdocument>ownerDocument</a></code>, and with the <var>clone children
+ <a href=#template-contents id=the-template-element:template-contents-6>template contents</a>, with <var>document</var> set to <var>copy</var>'s <a href=#template-contents id=the-template-element:template-contents-7>template contents</a>'s <a id=the-template-element:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node
+ document</a>, and with the <var>clone children
flag</var> set.<li><p>Append <var>copied contents</var> to <var>copy</var>'s <a href=#template-contents id=the-template-element:template-contents-8>template
contents</a>.</ol>
@@ -54529,7 +54521,7 @@
<a href=#browsing-context-container id=focus-management-apis:browsing-context-container>browsing context container</a> is <a href=#bc-focus-ergo-bcc-focus>focused</a> in the
<a href=#parent-browsing-context id=focus-management-apis:parent-browsing-context>parent browsing context</a>. For example, if the user moves the focus to a text field
in an <code id=focus-management-apis:the-iframe-element><a href=#the-iframe-element>iframe</a></code>, the <code id=focus-management-apis:the-iframe-element-2><a href=#the-iframe-element>iframe</a></code> is the element returned by the <code id=focus-management-apis:dom-document-activeelement-2><a href=#dom-document-activeelement>activeElement</a></code> API in the <code id=focus-management-apis:the-iframe-element-3><a href=#the-iframe-element>iframe</a></code>'s
- <code id=focus-management-apis:document><a href=#document>Document</a></code>.</p>
+ <a id=focus-management-apis:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
<dt><var>document</var> . <code id=focus-management-apis:dom-document-hasfocus><a href=#dom-document-hasfocus>hasFocus</a></code>()<dd>
@@ -54577,9 +54569,9 @@
<p>The <dfn id=dom-document-activeelement><code>activeElement</code></dfn> attribute on
- <code id=focus-management-apis:document-2><a href=#document>Document</a></code> objects must return the value returned by the following steps:</p>
+ <code id=focus-management-apis:document><a href=#document>Document</a></code> objects must return the value returned by the following steps:</p>
- <ol><li><p>Let <var>candidate</var> be the <code id=focus-management-apis:document-3><a href=#document>Document</a></code> on which the method was
+ <ol><li><p>Let <var>candidate</var> be the <code id=focus-management-apis:document-2><a href=#document>Document</a></code> on which the method was
invoked.<li><p>If <var>candidate</var> has a <a href=#dialog-group id=focus-management-apis:dialog-group>dialog group</a> with a designated
<a href=#focused-dialog-of-the-dialog-group id=focus-management-apis:focused-dialog-of-the-dialog-group>focused dialog of the dialog group</a>, then let <var>candidate</var> be the
designated <a href=#focused-dialog-of-the-dialog-group id=focus-management-apis:focused-dialog-of-the-dialog-group-2>focused dialog of the dialog group</a>, and redo this step.<li><p>If <var>candidate</var> has a non-empty <a href=#control-group id=focus-management-apis:control-group>control group</a>, let <var>candidate</var> be the designated <a href=#focused-area-of-the-control-group id=focus-management-apis:focused-area-of-the-control-group>focused area of the control
@@ -54587,22 +54579,22 @@
<li><p>If <var>candidate</var> is a <a href=#focusable-area id=focus-management-apis:focusable-area>focusable area</a>, let <var>candidate</var> be <var>candidate</var>'s <a href=#dom-anchor id=focus-management-apis:dom-anchor>DOM anchor</a>.<li>
- <p>If <var>candidate</var> is a <code id=focus-management-apis:document-4><a href=#document>Document</a></code> that has a <a href=#the-body-element-2 id=focus-management-apis:the-body-element-2-3>body element</a>, then let <var>candidate</var> be <a href=#the-body-element-2 id=focus-management-apis:the-body-element-2-4>the body
- element</a> of that <code id=focus-management-apis:document-5><a href=#document>Document</a></code>.</p>
+ <p>If <var>candidate</var> is a <code id=focus-management-apis:document-3><a href=#document>Document</a></code> that has a <a href=#the-body-element-2 id=focus-management-apis:the-body-element-2-3>body element</a>, then let <var>candidate</var> be <a href=#the-body-element-2 id=focus-management-apis:the-body-element-2-4>the body
+ element</a> of that <code id=focus-management-apis:document-4><a href=#document>Document</a></code>.</p>
- <p>Otherwise, if <var>candidate</var> is a <code id=focus-management-apis:document-6><a href=#document>Document</a></code> that has a <a href=#root-element id=focus-management-apis:root-element>root
+ <p>Otherwise, if <var>candidate</var> is a <code id=focus-management-apis:document-5><a href=#document>Document</a></code> that has a <a href=#root-element id=focus-management-apis:root-element>root
element</a>, then let <var>candidate</var> be the <a href=#root-element id=focus-management-apis:root-element-2>root element</a> of that
- <code id=focus-management-apis:document-7><a href=#document>Document</a></code>.</p>
+ <code id=focus-management-apis:document-6><a href=#document>Document</a></code>.</p>
- <p>Otherwise, if <var>candidate</var> is a <code id=focus-management-apis:document-8><a href=#document>Document</a></code>, then let <var>candidate</var> be null.</p>
+ <p>Otherwise, if <var>candidate</var> is a <code id=focus-management-apis:document-7><a href=#document>Document</a></code>, then let <var>candidate</var> be null.</p>
<li><p>Return <var>candidate</var>.</ol>
<p>The <dfn id=dom-document-hasfocus><code>hasFocus()</code></dfn> method on
- <code id=focus-management-apis:document-9><a href=#document>Document</a></code> objects must return the value returned by the following steps:</p>
+ <code id=focus-management-apis:document-8><a href=#document>Document</a></code> objects must return the value returned by the following steps:</p>
- <ol><li><p>Let <var>target</var> be the <code id=focus-management-apis:document-10><a href=#document>Document</a></code> on which the method was
- invoked.<li><p>Let <var>candidate</var> be the <code id=focus-management-apis:document-11><a href=#document>Document</a></code> of the <a href=#top-level-browsing-context id=focus-management-apis:top-level-browsing-context>top-level
+ <ol><li><p>Let <var>target</var> be the <code id=focus-management-apis:document-9><a href=#document>Document</a></code> on which the method was
+ invoked.<li><p>Let <var>candidate</var> be the <code id=focus-management-apis:document-10><a href=#document>Document</a></code> of the <a href=#top-level-browsing-context id=focus-management-apis:top-level-browsing-context>top-level
browsing context</a>.<li><p>If <var>candidate</var> is <var>target</var>, return true and abort
these steps.<li>
@@ -56720,7 +56712,7 @@
the following algorithm:</p>
<ol><li><p>If <var>d</var> is not a <code id=navigating-nested-browsing-contexts-in-the-dom:document-4><a href=#document>Document</a></code> in a <a href=#nested-browsing-context id=navigating-nested-browsing-contexts-in-the-dom:nested-browsing-context-3>nested browsing
- context</a>, return null and abort these steps.<li><p>If the <a href=#browsing-context-container id=navigating-nested-browsing-contexts-in-the-dom:browsing-context-container-2>browsing context container</a>'s <code id=navigating-nested-browsing-contexts-in-the-dom:document-5><a href=#document>Document</a></code> does not have the
+ context</a>, return null and abort these steps.<li><p>If the <a href=#browsing-context-container id=navigating-nested-browsing-contexts-in-the-dom:browsing-context-container-2>browsing context container</a>'s <a id=navigating-nested-browsing-contexts-in-the-dom:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> does not have the
<a href=#same-origin id=navigating-nested-browsing-contexts-in-the-dom:same-origin>same</a> <a href=#effective-script-origin id=navigating-nested-browsing-contexts-in-the-dom:effective-script-origin>effective script origin</a> as the
<a href=#effective-script-origin id=navigating-nested-browsing-contexts-in-the-dom:effective-script-origin-2>effective script origin</a> specified by the <a href=#entry-settings-object id=navigating-nested-browsing-contexts-in-the-dom:entry-settings-object>entry settings object</a>, then
throw a <code id=navigating-nested-browsing-contexts-in-the-dom:securityerror-2><a href=#securityerror>SecurityError</a></code> exception and abort these steps.<li><p>Return the <a href=#browsing-context-container id=navigating-nested-browsing-contexts-in-the-dom:browsing-context-container-3>browsing context container</a> for <var>b</var>.</ol>
@@ -56800,25 +56792,25 @@
is not a <a href=#top-level-browsing-context id=security-nav:top-level-browsing-context-4>top-level browsing context</a>, and <var>A</var>'s <a href=#active-document id=security-nav:active-document-5>active
document</a>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set>active sandboxing flag set</a> has its <a href=#sandboxed-navigation-browsing-context-flag id=security-nav:sandboxed-navigation-browsing-context-flag>sandboxed navigation
browsing context flag</a> set, then abort these steps negatively.<li><p>Otherwise, if <var>B</var> is a <a href=#top-level-browsing-context id=security-nav:top-level-browsing-context-5>top-level browsing context</a>, and is
- one of the <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-3>ancestor browsing contexts</a> of <var>A</var>, and <var>A</var>'s <code id=security-nav:document><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set-2>active sandboxing
+ one of the <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-3>ancestor browsing contexts</a> of <var>A</var>, and <var>A</var>'s <a id=security-nav:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set-2>active sandboxing
flag set</a> has its <a href=#sandboxed-top-level-navigation-browsing-context-flag id=security-nav:sandboxed-top-level-navigation-browsing-context-flag>sandboxed top-level navigation browsing context flag</a> set,
then abort these steps negatively.<li><p>Otherwise, if <var>B</var> is a <a href=#top-level-browsing-context id=security-nav:top-level-browsing-context-6>top-level browsing context</a>, and is
neither <var>A</var> nor one of the <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-4>ancestor
browsing contexts</a> of <var>A</var>, and <var>A</var>'s
- <code id=security-nav:document-2><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set-3>active sandboxing flag set</a> has its <a href=#sandboxed-navigation-browsing-context-flag id=security-nav:sandboxed-navigation-browsing-context-flag-2>sandboxed
+ <code id=security-nav:document><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=security-nav:active-sandboxing-flag-set-3>active sandboxing flag set</a> has its <a href=#sandboxed-navigation-browsing-context-flag id=security-nav:sandboxed-navigation-browsing-context-flag-2>sandboxed
navigation browsing context flag</a> set, and <var>A</var> is not the <a href=#one-permitted-sandboxed-navigator id=security-nav:one-permitted-sandboxed-navigator>one
permitted sandboxed navigator</a> of <var>B</var>, then abort these steps
negatively.<li><p>Otherwise, terminate positively!</ol>
<hr>
- <p>An element has a <dfn id=browsing-context-scope-origin>browsing context scope origin</dfn> if its <code id=security-nav:document-3><a href=#document>Document</a></code>'s
+ <p>An element has a <dfn id=browsing-context-scope-origin>browsing context scope origin</dfn> if its <code id=security-nav:document-2><a href=#document>Document</a></code>'s
<a href=#browsing-context id=security-nav:browsing-context-6>browsing context</a> is a <a href=#top-level-browsing-context id=security-nav:top-level-browsing-context-7>top-level browsing context</a> or if all of its
- <code id=security-nav:document-4><a href=#document>Document</a></code>'s <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-5>ancestor browsing contexts</a>
+ <code id=security-nav:document-3><a href=#document>Document</a></code>'s <a href=#ancestor-browsing-context id=security-nav:ancestor-browsing-context-5>ancestor browsing contexts</a>
all have <a href=#active-document id=security-nav:active-document-6>active documents</a> whose <a href=#origin-2 id=security-nav:origin-2-4>origin</a> are the
- <a href=#same-origin id=security-nav:same-origin-3>same origin</a> as the element's <code id=security-nav:document-5><a href=#document>Document</a></code>'s <a href=#origin-2 id=security-nav:origin-2-5>origin</a>. If an
+ <a href=#same-origin id=security-nav:same-origin-3>same origin</a> as the element's <a id=security-nav:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#origin-2 id=security-nav:origin-2-5>origin</a>. If an
element has a <a href=#browsing-context-scope-origin id=security-nav:browsing-context-scope-origin>browsing context scope origin</a>, then its value is the
- <a href=#origin-2 id=security-nav:origin-2-6>origin</a> of the element's <code id=security-nav:document-6><a href=#document>Document</a></code>.</p>
+ <a href=#origin-2 id=security-nav:origin-2-6>origin</a> of the element's <a id=security-nav:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
@@ -57820,50 +57812,50 @@
<p>The <a href=#origin-2 id=origin:origin-2-11>origin</a> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-4>alias</a> to the
<a href=#origin-2 id=origin:origin-2-12>origin</a> specified by the <a href=#incumbent-settings-object id=origin:incumbent-settings-object>incumbent settings object</a> when the <a href=#navigate id=origin:navigate>navigate</a>
algorithm was invoked, or, if no <a href=#concept-script id=origin:concept-script>script</a> was involved, of
- the <code id=origin:document-9><a href=#document>Document</a></code> of the element that initiated the <a href=#navigate id=origin:navigate-2>navigation</a> to that <a href=#url id=origin:url-2>URL</a>.</p>
+ the <a id=origin:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the element that initiated the <a href=#navigate id=origin:navigate-2>navigation</a> to that <a href=#url id=origin:url-2>URL</a>.</p>
<p>The <a href=#effective-script-origin id=origin:effective-script-origin-8>effective script origin</a> is initially an <a href=#concept-origin-alias id=origin:concept-origin-alias-5>alias</a> to the <a href=#effective-script-origin id=origin:effective-script-origin-9>effective script origin</a> of that
- same <a href=#script-settings-object id=origin:script-settings-object>script settings object</a> or <code id=origin:document-10><a href=#document>Document</a></code>.</p>
+ same <a href=#script-settings-object id=origin:script-settings-object>script settings object</a> or <code id=origin:document-9><a href=#document>Document</a></code>.</p>
- <dt>If a <code id=origin:document-11><a href=#document>Document</a></code> is the initial "<code id=origin:about:blank><a href=#about:blank>about:blank</a></code>" document<dd>
+ <dt>If a <code id=origin:document-10><a href=#document>Document</a></code> is the initial "<code id=origin:about:blank><a href=#about:blank>about:blank</a></code>" document<dd>
<p>The <a href=#origin-2 id=origin:origin-2-13>origin</a> and <a href=#effective-script-origin id=origin:effective-script-origin-10>effective script origin</a> of the
- <code id=origin:document-12><a href=#document>Document</a></code> are <a href=#about-blank-origin>those it was assigned when its
+ <code id=origin:document-11><a href=#document>Document</a></code> are <a href=#about-blank-origin>those it was assigned when its
browsing context was created</a>.</p>
- <dt>If a <code id=origin:document-13><a href=#document>Document</a></code> was created as part of the processing for <a href=#javascript-protocol id=origin:javascript-protocol><code>javascript:</code> URLs</a><dd>
+ <dt>If a <code id=origin:document-12><a href=#document>Document</a></code> was created as part of the processing for <a href=#javascript-protocol id=origin:javascript-protocol><code>javascript:</code> URLs</a><dd>
<p>The <a href=#origin-2 id=origin:origin-2-14>origin</a> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-6>alias</a> to the
<a href=#origin-2 id=origin:origin-2-15>origin</a> of the <a href=#active-document id=origin:active-document>active document</a> of the <a href=#browsing-context id=origin:browsing-context>browsing context</a>
being navigated when the <a href=#navigate id=origin:navigate-3>navigate</a> algorithm was invoked.</p>
<p>The <a href=#effective-script-origin id=origin:effective-script-origin-11>effective script origin</a> is initially an <a href=#concept-origin-alias id=origin:concept-origin-alias-7>alias</a> to the <a href=#effective-script-origin id=origin:effective-script-origin-12>effective script origin</a> of that
- same <code id=origin:document-14><a href=#document>Document</a></code>.</p>
+ same <code id=origin:document-13><a href=#document>Document</a></code>.</p>
- <dt>If a <code id=origin:document-15><a href=#document>Document</a></code> is <a href=#an-iframe-srcdoc-document id=origin:an-iframe-srcdoc-document>an <code>iframe</code> <code>srcdoc</code> document</a><dd>
+ <dt>If a <code id=origin:document-14><a href=#document>Document</a></code> is <a href=#an-iframe-srcdoc-document id=origin:an-iframe-srcdoc-document>an <code>iframe</code> <code>srcdoc</code> document</a><dd>
- <p>The <a href=#origin-2 id=origin:origin-2-16>origin</a> of the <code id=origin:document-16><a href=#document>Document</a></code> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-8>alias</a> to the <a href=#origin-2 id=origin:origin-2-17>origin</a> of the
- <code id=origin:document-17><a href=#document>Document</a></code>'s <a href=#browsing-context id=origin:browsing-context-2>browsing context</a>'s <a href=#browsing-context-container id=origin:browsing-context-container>browsing context
- container</a>'s <code id=origin:document-18><a href=#document>Document</a></code>.</p>
+ <p>The <a href=#origin-2 id=origin:origin-2-16>origin</a> of the <code id=origin:document-15><a href=#document>Document</a></code> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-8>alias</a> to the <a href=#origin-2 id=origin:origin-2-17>origin</a> of the
+ <code id=origin:document-16><a href=#document>Document</a></code>'s <a href=#browsing-context id=origin:browsing-context-2>browsing context</a>'s <a href=#browsing-context-container id=origin:browsing-context-container>browsing context
+ container</a>'s <a id=origin:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
<p>The <a href=#effective-script-origin id=origin:effective-script-origin-13>effective script origin</a> is initially an <a href=#concept-origin-alias id=origin:concept-origin-alias-9>alias</a> to the <a href=#effective-script-origin id=origin:effective-script-origin-14>effective script origin</a> of the
- <code id=origin:document-19><a href=#document>Document</a></code>'s <a href=#browsing-context id=origin:browsing-context-3>browsing context</a>'s <a href=#browsing-context-container id=origin:browsing-context-container-2>browsing context
- container</a>'s <code id=origin:document-20><a href=#document>Document</a></code>.</p>
+ <code id=origin:document-17><a href=#document>Document</a></code>'s <a href=#browsing-context id=origin:browsing-context-3>browsing context</a>'s <a href=#browsing-context-container id=origin:browsing-context-container-2>browsing context
+ container</a>'s <a id=origin:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
- <dt>If a <code id=origin:document-21><a href=#document>Document</a></code> was obtained in some other manner (e.g. a <a href=http://tools.ietf.org/html/rfc2397#section-2 id=origin:data-protocol-2 data-x-internal=data-protocol><code>data:</code> URL</a> typed in by the user or that was returned as the
+ <dt>If a <code id=origin:document-18><a href=#document>Document</a></code> was obtained in some other manner (e.g. a <a href=http://tools.ietf.org/html/rfc2397#section-2 id=origin:data-protocol-2 data-x-internal=data-protocol><code>data:</code> URL</a> typed in by the user or that was returned as the
location of an HTTP redirect (<a href=#concept-http-equivalent-codes id=origin:concept-http-equivalent-codes>or equivalent</a>
- in other protocols), a <code id=origin:document-22><a href=#document>Document</a></code> created using the <code id=origin:dom-domimplementation-createdocument><a href=#dom-domimplementation-createdocument>createDocument()</a></code> API, etc)<dd>
+ in other protocols), a <code id=origin:document-19><a href=#document>Document</a></code> created using the <code id=origin:dom-domimplementation-createdocument><a href=#dom-domimplementation-createdocument>createDocument()</a></code> API, etc)<dd>
<p>The default behavior as defined in the DOM standard applies. <a href=#refsDOM>[DOM]</a>.</p>
<p class=note>The <a href=#origin-2 id=origin:origin-2-18>origin</a> is a globally unique identifier assigned when the
- <code id=origin:document-23><a href=#document>Document</a></code> is created, and the <a href=#effective-script-origin id=origin:effective-script-origin-15>effective script origin</a> is initially an
+ <code id=origin:document-20><a href=#document>Document</a></code> is created, and the <a href=#effective-script-origin id=origin:effective-script-origin-15>effective script origin</a> is initially an
<a href=#concept-origin-alias id=origin:concept-origin-alias-10>alias</a> to the <a href=#origin-2 id=origin:origin-2-19>origin</a> of the
- <code id=origin:document-24><a href=#document>Document</a></code>.</p>
+ <code id=origin:document-21><a href=#document>Document</a></code>.</p>
</dl>
- <p class=note>The <a href=#effective-script-origin id=origin:effective-script-origin-16>effective script origin</a> of a <code id=origin:document-25><a href=#document>Document</a></code> can be
+ <p class=note>The <a href=#effective-script-origin id=origin:effective-script-origin-16>effective script origin</a> of a <code id=origin:document-22><a href=#document>Document</a></code> can be
manipulated using the <code id=origin:dom-document-domain><a href=#dom-document-domain>document.domain</a></code> IDL
attribute.</p>
@@ -57871,7 +57863,7 @@
<dl class=switch><dt>If the image data is <a href=#cors-cross-origin id=origin:cors-cross-origin>CORS-cross-origin</a><dd>The <a href=#origin-2 id=origin:origin-2-20>origin</a> is a globally unique identifier assigned when the image is
created.<dt>If the image data is <a href=#cors-same-origin id=origin:cors-same-origin>CORS-same-origin</a><dd>The <a href=#origin-2 id=origin:origin-2-21>origin</a> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-11>alias</a> to the
- <a href=#origin-2 id=origin:origin-2-22>origin</a> of the <code id=origin:the-img-element-2><a href=#the-img-element>img</a></code> element's <code id=origin:document-26><a href=#document>Document</a></code>.</dl>
+ <a href=#origin-2 id=origin:origin-2-22>origin</a> of the <code id=origin:the-img-element-2><a href=#the-img-element>img</a></code> element's <a id=origin:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</dl>
<p>Images do not have an <a href=#effective-script-origin id=origin:effective-script-origin-17>effective script origin</a>.</p>
@@ -57879,7 +57871,7 @@
<dl class=switch><dt>If the <a href=#media-data id=origin:media-data>media data</a> is <a href=#cors-cross-origin id=origin:cors-cross-origin-2>CORS-cross-origin</a><dd>The <a href=#origin-2 id=origin:origin-2-23>origin</a> is a globally unique identifier assigned when the <a href=#media-data id=origin:media-data-2>media
data</a> is <a href=#fetch id=origin:fetch>fetched</a>.<dt>If the <a href=#media-data id=origin:media-data-3>media data</a> is <a href=#cors-same-origin id=origin:cors-same-origin-2>CORS-same-origin</a><dd>The <a href=#origin-2 id=origin:origin-2-24>origin</a> is an <a href=#concept-origin-alias id=origin:concept-origin-alias-12>alias</a> to the
- <a href=#origin-2 id=origin:origin-2-25>origin</a> of the <a href=#media-element id=origin:media-element>media element</a>'s <code id=origin:document-27><a href=#document>Document</a></code>.</dl>
+ <a href=#origin-2 id=origin:origin-2-25>origin</a> of the <a href=#media-element id=origin:media-element>media element</a>'s <a id=origin:node-document-5 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</dl>
<p><a href=#media-element id=origin:media-element-2>Media elements</a> do not have an <a href=#effective-script-origin id=origin:effective-script-origin-18>effective script
origin</a>.</p>
@@ -57891,14 +57883,14 @@
<a href=#refsCSSFONTLOAD>[CSSFONTLOAD]</a></p>
<p>The <a href=#origin-2 id=origin:origin-2-28>origin</a> of a locally installed system font is an <a href=#concept-origin-alias id=origin:concept-origin-alias-14>alias</a> to the <a href=#origin-2 id=origin:origin-2-29>origin</a> of the
- <code id=origin:document-28><a href=#document>Document</a></code> in which that font is being used.</p>
+ <code id=origin:document-23><a href=#document>Document</a></code> in which that font is being used.</p>
<p>Fonts do not have an <a href=#effective-script-origin id=origin:effective-script-origin-19>effective script origin</a>.</p>
</dl>
<p>Other specifications can override the above definitions by themselves specifying the origin of
- a particular <a href=#url id=origin:url-3>URL</a>, <code id=origin:document-29><a href=#document>Document</a></code>, image, <a href=#media-element id=origin:media-element-3>media element</a>, or
+ a particular <a href=#url id=origin:url-3>URL</a>, <code id=origin:document-24><a href=#document>Document</a></code>, image, <a href=#media-element id=origin:media-element-3>media element</a>, or
font.</p>
@@ -59168,7 +59160,7 @@
would only be evaluated when the link was <a href=#following-hyperlinks-2 id=navigating-across-documents:following-hyperlinks-2-2>followed</a>, while such a URL in the <code id=navigating-across-documents:attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute of an <code id=navigating-across-documents:the-iframe-element><a href=#the-iframe-element>iframe</a></code> element would be
evaluated in the context of the <code id=navigating-across-documents:the-iframe-element-2><a href=#the-iframe-element>iframe</a></code>'s own <a href=#nested-browsing-context id=navigating-across-documents:nested-browsing-context-3>nested browsing
context</a> when the <code id=navigating-across-documents:the-iframe-element-3><a href=#the-iframe-element>iframe</a></code> is being set up; once evaluated, its return value
- (if it was not void) would replace that <a href=#browsing-context id=navigating-across-documents:browsing-context-19>browsing context</a>'s document, thus also
+ (if it was not void) would replace that <a href=#browsing-context id=navigating-across-documents:browsing-context-19>browsing context</a>'s <code id=navigating-across-documents:document-3><a href=#document>Document</a></code>, thus also
changing the <code id=navigating-across-documents:window-2><a href=#window>Window</a></code> object of that <a href=#browsing-context id=navigating-across-documents:browsing-context-20>browsing context</a>.</p>
</div>
@@ -59352,13 +59344,13 @@
which the user agent has a dedicated handler (e.g. one registered using <code id=navigating-across-documents:dom-navigator-registercontenthandler><a href=#dom-navigator-registercontenthandler>registerContentHandler()</a></code>).</p>
<p><dfn id="set-the-document's-address">Setting the document's address</dfn>: If there is no
- <dfn id=override-url>override URL</dfn>, then any <code id=navigating-across-documents:document-3><a href=#document>Document</a></code> created by these steps must have its
+ <dfn id=override-url>override URL</dfn>, then any <code id=navigating-across-documents:document-4><a href=#document>Document</a></code> created by these steps must have its
<a href=http://dom.spec.whatwg.org/#concept-document-url id="navigating-across-documents:the-document's-address-4" data-x-internal="the-document's-address">address</a> set to the <a href=#url id=navigating-across-documents:url-10>URL</a> that was
originally to be <a href=#fetch id=navigating-across-documents:fetch-9>fetched</a>, ignoring any other data that was used to
obtain the resource (e.g. the entity body in the case of a POST submission is not part of
<a id="navigating-across-documents:the-document's-address-5" href=http://dom.spec.whatwg.org/#concept-document-url data-x-internal="the-document's-address">the document's address</a>, nor is the URL of the fallback resource in the case of the
original load having failed and that URL having been found to match a <a href=#concept-appcache-fallback-ns id=navigating-across-documents:concept-appcache-fallback-ns-2>fallback namespace</a>). However, if there <em>is</em>
- an <a href=#override-url id=navigating-across-documents:override-url-2>override URL</a>, then any <code id=navigating-across-documents:document-4><a href=#document>Document</a></code> created by these steps must have
+ an <a href=#override-url id=navigating-across-documents:override-url-2>override URL</a>, then any <code id=navigating-across-documents:document-5><a href=#document>Document</a></code> created by these steps must have
its <a href=http://dom.spec.whatwg.org/#concept-document-url id="navigating-across-documents:the-document's-address-6" data-x-internal="the-document's-address">address</a> set to that <a href=#url id=navigating-across-documents:url-11>URL</a>
instead.</p>
@@ -59366,35 +59358,35 @@
performing <a href=#an-overridden-reload id=navigating-across-documents:an-overridden-reload>an overridden reload</a>.</p>
<p><dfn id=initialise-the-document-object>Initializing a new <code>Document</code>
- object</dfn>: when a <code id=navigating-across-documents:document-5><a href=#document>Document</a></code> is created as part of the above steps, the user agent
+ object</dfn>: when a <code id=navigating-across-documents:document-6><a href=#document>Document</a></code> is created as part of the above steps, the user agent
will be required to additionally run the following algorithm after creating the new object:</p>
<ol><li><p>Create a new <code id=navigating-across-documents:window-3><a href=#window>Window</a></code> object, and associate it with the
- <code id=navigating-across-documents:document-6><a href=#document>Document</a></code>, with one exception: if the <a href=#browsing-context id=navigating-across-documents:browsing-context-26>browsing context</a>'s only entry in
- its <a href=#session-history id=navigating-across-documents:session-history>session history</a> is the <code id=navigating-across-documents:about:blank><a href=#about:blank>about:blank</a></code> <code id=navigating-across-documents:document-7><a href=#document>Document</a></code> that was
+ <code id=navigating-across-documents:document-7><a href=#document>Document</a></code>, with one exception: if the <a href=#browsing-context id=navigating-across-documents:browsing-context-26>browsing context</a>'s only entry in
+ its <a href=#session-history id=navigating-across-documents:session-history>session history</a> is the <code id=navigating-across-documents:about:blank><a href=#about:blank>about:blank</a></code> <code id=navigating-across-documents:document-8><a href=#document>Document</a></code> that was
added when the <a href=#browsing-context id=navigating-across-documents:browsing-context-27>browsing context</a> was created, and navigation is occurring with
- <a href=#replacement-enabled id=navigating-across-documents:replacement-enabled>replacement enabled</a>, and that <code id=navigating-across-documents:document-8><a href=#document>Document</a></code> has the <a href=#same-origin id=navigating-across-documents:same-origin-8>same
- origin</a> as the new <code id=navigating-across-documents:document-9><a href=#document>Document</a></code>, then use the <code id=navigating-across-documents:window-4><a href=#window>Window</a></code> object of that
- <code id=navigating-across-documents:document-10><a href=#document>Document</a></code> instead, and change the <code id=navigating-across-documents:dom-document-2><a href=#dom-document-2>document</a></code>
- attribute of the <code id=navigating-across-documents:window-5><a href=#window>Window</a></code> object to point to the new <code id=navigating-across-documents:document-11><a href=#document>Document</a></code>.</p>
+ <a href=#replacement-enabled id=navigating-across-documents:replacement-enabled>replacement enabled</a>, and that <code id=navigating-across-documents:document-9><a href=#document>Document</a></code> has the <a href=#same-origin id=navigating-across-documents:same-origin-8>same
+ origin</a> as the new <code id=navigating-across-documents:document-10><a href=#document>Document</a></code>, then use the <code id=navigating-across-documents:window-4><a href=#window>Window</a></code> object of that
+ <code id=navigating-across-documents:document-11><a href=#document>Document</a></code> instead, and change the <code id=navigating-across-documents:dom-document-2><a href=#dom-document-2>document</a></code>
+ attribute of the <code id=navigating-across-documents:window-5><a href=#window>Window</a></code> object to point to the new <code id=navigating-across-documents:document-12><a href=#document>Document</a></code>.</p>
<li><p>Set <a href="#the-document's-referrer" id="navigating-across-documents:the-document's-referrer-3">the document's referrer</a> to the <i>address of the resource from which
Request-URIs are obtained</i> as determined when the <a href=#fetch id=navigating-across-documents:fetch-10>fetch</a> algorithm obtained the
resource, if that algorithm was used and determined such a value; otherwise, set it to the
- empty string.<li><p><a href=#implement-the-sandboxing id=navigating-across-documents:implement-the-sandboxing>Implement the sandboxing</a> for the <code id=navigating-across-documents:document-12><a href=#document>Document</a></code>.<li id=fullscreen-logic>
+ empty string.<li><p><a href=#implement-the-sandboxing id=navigating-across-documents:implement-the-sandboxing>Implement the sandboxing</a> for the <code id=navigating-across-documents:document-13><a href=#document>Document</a></code>.<li id=fullscreen-logic>
- <p>If the <a href=#active-sandboxing-flag-set id=navigating-across-documents:active-sandboxing-flag-set>active sandboxing flag set</a> of the <code id=navigating-across-documents:document-13><a href=#document>Document</a></code>'s
+ <p>If the <a href=#active-sandboxing-flag-set id=navigating-across-documents:active-sandboxing-flag-set>active sandboxing flag set</a> of the <code id=navigating-across-documents:document-14><a href=#document>Document</a></code>'s
<a href=#browsing-context id=navigating-across-documents:browsing-context-28>browsing context</a> or any of its <a href=#ancestor-browsing-context id=navigating-across-documents:ancestor-browsing-context-2>ancestor
browsing contexts</a> (if any) have the <a href=#sandboxed-fullscreen-browsing-context-flag id=navigating-across-documents:sandboxed-fullscreen-browsing-context-flag>sandboxed fullscreen browsing context
flag</a> set, then skip this step.</p>
- <p>If the <code id=navigating-across-documents:document-14><a href=#document>Document</a></code>'s <a href=#browsing-context id=navigating-across-documents:browsing-context-29>browsing context</a> has a <a href=#browsing-context-container id=navigating-across-documents:browsing-context-container-2>browsing context
+ <p>If the <code id=navigating-across-documents:document-15><a href=#document>Document</a></code>'s <a href=#browsing-context id=navigating-across-documents:browsing-context-29>browsing context</a> has a <a href=#browsing-context-container id=navigating-across-documents:browsing-context-container-2>browsing context
container</a> and either it is not an <code id=navigating-across-documents:the-iframe-element-4><a href=#the-iframe-element>iframe</a></code> element, or it does not have the
<code id=navigating-across-documents:attr-iframe-allowfullscreen><a href=#attr-iframe-allowfullscreen>allowfullscreen</a></code> attribute specified, or its
- <code id=navigating-across-documents:document-15><a href=#document>Document</a></code> does not have the <a href=#fullscreen-enabled-flag id=navigating-across-documents:fullscreen-enabled-flag>fullscreen enabled flag</a> set, then also
+ <code id=navigating-across-documents:document-16><a href=#document>Document</a></code> does not have the <a href=#fullscreen-enabled-flag id=navigating-across-documents:fullscreen-enabled-flag>fullscreen enabled flag</a> set, then also
skip this step.</p>
- <p>Otherwise, set the <code id=navigating-across-documents:document-16><a href=#document>Document</a></code>'s <a href=#fullscreen-enabled-flag id=navigating-across-documents:fullscreen-enabled-flag-2>fullscreen enabled flag</a>.</p>
+ <p>Otherwise, set the <code id=navigating-across-documents:document-17><a href=#document>Document</a></code>'s <a href=#fullscreen-enabled-flag id=navigating-across-documents:fullscreen-enabled-flag-2>fullscreen enabled flag</a>.</p>
</ol>
@@ -59432,12 +59424,12 @@
<p>Some of the sections below, to which the above algorithm defers in certain cases, require the
user agent to <dfn id=update-the-session-history-with-the-new-page>update the session history with the new page</dfn>. When a user agent is
- required to do this, it must <a href=#queue-a-task id=navigating-across-documents:queue-a-task-2>queue a task</a> (associated with the <code id=navigating-across-documents:document-17><a href=#document>Document</a></code>
+ required to do this, it must <a href=#queue-a-task id=navigating-across-documents:queue-a-task-2>queue a task</a> (associated with the <code id=navigating-across-documents:document-18><a href=#document>Document</a></code>
object of the <a href=#current-entry id=navigating-across-documents:current-entry>current entry</a>, not the new one) to run the following steps:</p>
<ol><li>
- <p><a href=#unload-a-document id=navigating-across-documents:unload-a-document-4>Unload</a> the <code id=navigating-across-documents:document-18><a href=#document>Document</a></code> object of the
+ <p><a href=#unload-a-document id=navigating-across-documents:unload-a-document-4>Unload</a> the <code id=navigating-across-documents:document-19><a href=#document>Document</a></code> object of the
<a href=#current-entry id=navigating-across-documents:current-entry-2>current entry</a>, with the <var>recycle</var> parameter set to false.</p>
<p>If this instance of the <a href=#navigate id=navigating-across-documents:navigate-16>navigation</a> algorithm is canceled while
@@ -59450,12 +59442,12 @@
<dl><dt>If the navigation was initiated for <dfn id=entry-update>entry update</dfn> of an entry<dd>
- <ol><li><p>Replace the <code id=navigating-across-documents:document-19><a href=#document>Document</a></code> of the entry being updated, and any other entries
- that referenced the same document as that entry, with the new <code id=navigating-across-documents:document-20><a href=#document>Document</a></code>.<li><p><a href=#traverse-the-history id=navigating-across-documents:traverse-the-history>Traverse the history</a> to the new entry.</ol>
+ <ol><li><p>Replace the <code id=navigating-across-documents:document-20><a href=#document>Document</a></code> of the entry being updated, and any other entries
+ that referenced the same document as that entry, with the new <code id=navigating-across-documents:document-21><a href=#document>Document</a></code>.<li><p><a href=#traverse-the-history id=navigating-across-documents:traverse-the-history>Traverse the history</a> to the new entry.</ol>
<p class=note>This can only happen if the entry being updated is not the <a href=#current-entry id=navigating-across-documents:current-entry-3>current
entry</a>, and can never happen with <a href=#replacement-enabled id=navigating-across-documents:replacement-enabled-2>replacement enabled</a>. (It happens when the
- user tried to traverse to a session history entry that no longer had a <code id=navigating-across-documents:document-21><a href=#document>Document</a></code>
+ user tried to traverse to a session history entry that no longer had a <code id=navigating-across-documents:document-22><a href=#document>Document</a></code>
object.)</p>
<dt>Otherwise<dd>
@@ -59470,7 +59462,7 @@
user agent's user interface.</p>
<li><p>Append a new entry at the end of the <code id=navigating-across-documents:history-3><a href=#history-3>History</a></code> object representing the new
- resource and its <code id=navigating-across-documents:document-22><a href=#document>Document</a></code> object and related state.<li><p><a href=#traverse-the-history id=navigating-across-documents:traverse-the-history-2>Traverse the history</a> to the new entry. If the navigation was initiated
+ resource and its <code id=navigating-across-documents:document-23><a href=#document>Document</a></code> object and related state.<li><p><a href=#traverse-the-history id=navigating-across-documents:traverse-the-history-2>Traverse the history</a> to the new entry. If the navigation was initiated
with <a href=#replacement-enabled id=navigating-across-documents:replacement-enabled-3>replacement enabled</a>, then the traversal must itself be initiated with
<a href=#replacement-enabled id=navigating-across-documents:replacement-enabled-4>replacement enabled</a>.</p>
@@ -59480,7 +59472,7 @@
<li><p>The <a href=#navigate id=navigating-across-documents:navigate-18>navigation algorithm</a> has now <dfn id=concept-navigate-mature>matured</dfn>.<li><p><i>Fragment identifier loop</i>: <a href=#spin-the-event-loop id=navigating-across-documents:spin-the-event-loop>Spin the event loop</a> for a user-agent-defined
amount of time, as desired by the user agent implementor. (This is intended to allow the user
- agent to optimise the user experience in the face of performance concerns.)<li><p>If the <code id=navigating-across-documents:document-23><a href=#document>Document</a></code> object has no parser, or its parser has <a href=#stop-parsing id=navigating-across-documents:stop-parsing>stopped parsing</a>, or the user agent has reason to believe the user is no longer
+ agent to optimise the user experience in the face of performance concerns.)<li><p>If the <code id=navigating-across-documents:document-24><a href=#document>Document</a></code> object has no parser, or its parser has <a href=#stop-parsing id=navigating-across-documents:stop-parsing>stopped parsing</a>, or the user agent has reason to believe the user is no longer
interested in scrolling to the fragment identifier, then abort these steps.<li><p><a href=#scroll-to-the-fragment-identifier id=navigating-across-documents:scroll-to-the-fragment-identifier>Scroll to the fragment identifier</a> given in <a id="navigating-across-documents:the-document's-address-7" href=http://dom.spec.whatwg.org/#concept-document-url data-x-internal="the-document's-address">the document's
address</a>. If this fails to find <a href=#the-indicated-part-of-the-document id=navigating-across-documents:the-indicated-part-of-the-document>an
indicated part of the document</a>, then return to the <i>fragment identifier loop</i>
@@ -61506,8 +61498,8 @@
target <code id=downloading-or-updating-an-application-cache:applicationcache-18><a href=#applicationcache>ApplicationCache</a></code> object <var>target</var>, the user agent must run
the appropriate steps from the following list:</p>
- <dl><dt>If <var>target</var>'s <code id=downloading-or-updating-an-application-cache:document-13><a href=#document>Document</a></code> is
- <a href=#ready-for-post-load-tasks id=downloading-or-updating-an-application-cache:ready-for-post-load-tasks>ready for post-load tasks</a><dd><p><a href=#queue-a-task id=downloading-or-updating-an-application-cache:queue-a-task>Queue</a> the task <var>task</var>.<dt>Otherwise<dd><p>Add <var>task</var> to <var>target</var>'s <code id=downloading-or-updating-an-application-cache:document-14><a href=#document>Document</a></code>'s list
+ <dl><dt>If <var>target</var>'s <a id=downloading-or-updating-an-application-cache:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
+ <a href=#ready-for-post-load-tasks id=downloading-or-updating-an-application-cache:ready-for-post-load-tasks>ready for post-load tasks</a><dd><p><a href=#queue-a-task id=downloading-or-updating-an-application-cache:queue-a-task>Queue</a> the task <var>task</var>.<dt>Otherwise<dd><p>Add <var>task</var> to <var>target</var>'s <a id=downloading-or-updating-an-application-cache:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s list
of <a href=#pending-application-cache-download-process-tasks id=downloading-or-updating-an-application-cache:pending-application-cache-download-process-tasks>pending application cache download process tasks</a>.</dl>
<p>The <a href=#task-source id=downloading-or-updating-an-application-cache:task-source>task source</a> for these <a href=#concept-task id=downloading-or-updating-an-application-cache:concept-task-19>tasks</a> is the
@@ -62463,22 +62455,22 @@
<p>Each <a href=#concept-task id=definitions-3:concept-task>task</a> in a <a href=#browsing-context id=definitions-3:browsing-context-8>browsing context</a> <a href=#event-loop id=definitions-3:event-loop-10>event
loop</a> is associated with a <code id=definitions-3:document><a href=#document>Document</a></code>; if the task was queued in the context of
- an element, then it is the element's <code id=definitions-3:document-2><a href=#document>Document</a></code>; if the task was queued in the context
+ an element, then it is the element's <a id=definitions-3:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>; if the task was queued in the context
of a <a href=#browsing-context id=definitions-3:browsing-context-9>browsing context</a>, then it is the <a href=#browsing-context id=definitions-3:browsing-context-10>browsing context</a>'s <a href=#active-document id=definitions-3:active-document>active
document</a> at the time the task was queued; if the task was queued by or for a <a href=#concept-script id=definitions-3:concept-script>script</a> then the document is the <a href=#responsible-document id=definitions-3:responsible-document>responsible document</a>
specified by the script's <a href=#settings-object id=definitions-3:settings-object>settings object</a>.</p>
<p>A <a href=#concept-task id=definitions-3:concept-task-2>task</a> is intended for a specific <a href=#event-loop id=definitions-3:event-loop-11>event loop</a>:
the <a href=#event-loop id=definitions-3:event-loop-12>event loop</a> that is handling <a href=#concept-task id=definitions-3:concept-task-3>tasks</a> for the
- <a href=#concept-task id=definitions-3:concept-task-4>task</a>'s associated <code id=definitions-3:document-3><a href=#document>Document</a></code> or <a href=#workers>worker</a>.</p>
+ <a href=#concept-task id=definitions-3:concept-task-4>task</a>'s associated <code id=definitions-3:document-2><a href=#document>Document</a></code> or <a href=#workers>worker</a>.</p>
<p>When a user agent is to <dfn id=queue-a-task>queue a task</dfn>, it must add the given task to one of the <a href=#task-queue id=definitions-3:task-queue-3>task queues</a> of the relevant <a href=#event-loop id=definitions-3:event-loop-13>event loop</a>.</p>
<p>Each <a href=#concept-task id=definitions-3:concept-task-5>task</a> is defined as coming from a specific <dfn id=task-source>task
source</dfn>. All the tasks from one particular <a href=#task-source id=definitions-3:task-source>task source</a> and destined to a
particular <a href=#event-loop id=definitions-3:event-loop-14>event loop</a> (e.g. the callbacks generated by timers of a
- <code id=definitions-3:document-4><a href=#document>Document</a></code>, the events fired for mouse movements over that <code id=definitions-3:document-5><a href=#document>Document</a></code>, the
- tasks queued for the parser of that <code id=definitions-3:document-6><a href=#document>Document</a></code>) must always be added to the same
+ <code id=definitions-3:document-3><a href=#document>Document</a></code>, the events fired for mouse movements over that <code id=definitions-3:document-4><a href=#document>Document</a></code>, the
+ tasks queued for the parser of that <code id=definitions-3:document-5><a href=#document>Document</a></code>) must always be added to the same
<a href=#task-queue id=definitions-3:task-queue-4>task queue</a>, but <a href=#concept-task id=definitions-3:concept-task-6>tasks</a> from different <a href=#task-source id=definitions-3:task-source-2>task sources</a> may be placed in different <a href=#task-queue id=definitions-3:task-queue-5>task
queues</a>.</p>
@@ -62939,9 +62931,9 @@
<ol><li>
<p>If <var>H</var> is an element's <a href=#event-handlers id=event-handler-attributes:event-handlers-18>event
- handler</a>, then let <var>element</var> be the element, and <var>document</var> be the element's <code id=event-handler-attributes:document><a href=#document>Document</a></code>.</p>
+ handler</a>, then let <var>element</var> be the element, and <var>document</var> be the element's <a id=event-handler-attributes:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>.</p>
- <p>Otherwise, <var>H</var> is a <code id=event-handler-attributes:window-3><a href=#window>Window</a></code> object's <a href=#event-handlers id=event-handler-attributes:event-handlers-19>event handler</a>: let <var>element</var> be null, and let <var>document</var> be the <code id=event-handler-attributes:document-2><a href=#document>Document</a></code> most recently associated with that
+ <p>Otherwise, <var>H</var> is a <code id=event-handler-attributes:window-3><a href=#window>Window</a></code> object's <a href=#event-handlers id=event-handler-attributes:event-handlers-19>event handler</a>: let <var>element</var> be null, and let <var>document</var> be the <code id=event-handler-attributes:document><a href=#document>Document</a></code> most recently associated with that
<code id=event-handler-attributes:window-4><a href=#window>Window</a></code> object.</p>
<li><p>If <var>document</var> is
@@ -70021,7 +70013,7 @@
<dl><dt>Blocking third-party storage<dd>
<p>User agents may restrict access to the <code id=user-tracking:dom-localstorage><a href=#dom-localstorage>localStorage</a></code>
- objects to scripts originating at the domain of the top-level document of the <a href=#browsing-context id=user-tracking:browsing-context>browsing
+ objects to scripts originating at the domain of the <a href=#active-document id=user-tracking:active-document>active document</a> of the <a href=#top-level-browsing-context id=user-tracking:top-level-browsing-context>top-level browsing
context</a>, for instance denying access to the API for pages from other domains running in
<code id=user-tracking:the-iframe-element><a href=#the-iframe-element>iframe</a></code>s.</p>
@@ -70031,7 +70023,7 @@
data after a period of time.</p>
<p>For example, a user agent could be configured to treat third-party local storage areas as
- session-only storage, deleting the data once the user had closed all the <a href=#browsing-context id=user-tracking:browsing-context-2>browsing contexts</a> that could access it.</p>
+ session-only storage, deleting the data once the user had closed all the <a href=#browsing-context id=user-tracking:browsing-context>browsing contexts</a> that could access it.</p>
<p>This can restrict the ability of a site to track a user, as the site would then only be able
to track the user across multiple sessions when he authenticates with the site itself (e.g. by
@@ -73354,8 +73346,8 @@
<code id=creating-and-inserting-nodes:htmlunknownelement><a href=#htmlunknownelement>HTMLUnknownElement</a></code>. Elements in other namespaces whose interface is not defined by
that namespace's specification must use the interface <code id=creating-and-inserting-nodes:element><a href=#element>Element</a></code>.</p>
- <p>The <code id=creating-and-inserting-nodes:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code> of the newly created element
- must be the same as that of the <var>intended parent</var>.</p>
+ <p>The <a id=creating-and-inserting-nodes:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the newly created element
+ must be the <a id=creating-and-inserting-nodes:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <var>intended parent</var>.</p>
<li><p>If the newly created element has an <code>xmlns</code> attribute <em>in the
<a href=#xmlns-namespace id=creating-and-inserting-nodes:xmlns-namespace>XMLNS namespace</a></em> whose value is not exactly the same as the element's namespace,
@@ -73515,7 +73507,7 @@
location</var>, then append <var>data</var> to that <code id=creating-and-inserting-nodes:text-3><a href=#text>Text</a></code> node's data.</p>
<p>Otherwise, create a new <code id=creating-and-inserting-nodes:text-4><a href=#text>Text</a></code> node whose data is <var>data</var> and
- whose <code id=creating-and-inserting-nodes:dom-node-ownerdocument-2><a href=#dom-node-ownerdocument>ownerDocument</a></code> is the same as that of the
+ whose <a id=creating-and-inserting-nodes:node-document-3 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is the same as that of the
element in which the <var>adjusted insertion location</var> finds itself, and insert
the newly created node at the <var>adjusted insertion location</var>.</p>
@@ -73563,7 +73555,7 @@
processed.<li><p>If <var>position</var> was specified, then let the <var>adjusted
insertion location</var> be <var>position</var>. Otherwise, let <var>adjusted
insertion location</var> be the <a href=#appropriate-place-for-inserting-a-node id=creating-and-inserting-nodes:appropriate-place-for-inserting-a-node-3>appropriate place for inserting a node</a>.<li><p>Create a <code id=creating-and-inserting-nodes:comment-2><a href=#comment-2>Comment</a></code> node whose <code>data</code> attribute is set to
- <var>data</var> and whose <code id=creating-and-inserting-nodes:dom-node-ownerdocument-3><a href=#dom-node-ownerdocument>ownerDocument</a></code> is
+ <var>data</var> and whose <a id=creating-and-inserting-nodes:node-document-4 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is
the same as that of the node in which the <var>adjusted insertion location</var> finds
itself.</p>
@@ -73732,7 +73724,7 @@
<p><a href=#parse-error id=the-before-html-insertion-mode:parse-error-2>Parse error</a>. Ignore the token.</p>
<dt>Anything else<dd>
- <p>Create an <code id=the-before-html-insertion-mode:the-html-element><a href=#the-html-element>html</a></code> element whose <code id=the-before-html-insertion-mode:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code> is the <code id=the-before-html-insertion-mode:document-6><a href=#document>Document</a></code> object. Append
+ <p>Create an <code id=the-before-html-insertion-mode:the-html-element><a href=#the-html-element>html</a></code> element whose <a id=the-before-html-insertion-mode:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is the <code id=the-before-html-insertion-mode:document-6><a href=#document>Document</a></code> object. Append
it to the <code id=the-before-html-insertion-mode:document-7><a href=#document>Document</a></code> object. Put this element in the <a href=#stack-of-open-elements id=the-before-html-insertion-mode:stack-of-open-elements-2>stack of open
elements</a>.</p>
@@ -76697,17 +76689,17 @@
<li>
<p>If there is a <var id=parsing-html-fragments:concept-frag-parse-context-2><a href=#concept-frag-parse-context>context</a></var> element, and the
- <code id=parsing-html-fragments:document-2><a href=#document>Document</a></code> of the <var id=parsing-html-fragments:concept-frag-parse-context-3><a href=#concept-frag-parse-context>context</a></var> element is in
- <a href=#quirks-mode id=parsing-html-fragments:quirks-mode>quirks mode</a>, then let the <code id=parsing-html-fragments:document-3><a href=#document>Document</a></code> be in <a href=#quirks-mode id=parsing-html-fragments:quirks-mode-2>quirks mode</a>.
+ <a id=parsing-html-fragments:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <var id=parsing-html-fragments:concept-frag-parse-context-3><a href=#concept-frag-parse-context>context</a></var> element is in
+ <a href=#quirks-mode id=parsing-html-fragments:quirks-mode>quirks mode</a>, then let the <code id=parsing-html-fragments:document-2><a href=#document>Document</a></code> be in <a href=#quirks-mode id=parsing-html-fragments:quirks-mode-2>quirks mode</a>.
Otherwise, if there is a <var id=parsing-html-fragments:concept-frag-parse-context-4><a href=#concept-frag-parse-context>context</a></var> element, and the
- <code id=parsing-html-fragments:document-4><a href=#document>Document</a></code> of the <var id=parsing-html-fragments:concept-frag-parse-context-5><a href=#concept-frag-parse-context>context</a></var> element is in
- <a href=#limited-quirks-mode id=parsing-html-fragments:limited-quirks-mode>limited-quirks mode</a>, then let the <code id=parsing-html-fragments:document-5><a href=#document>Document</a></code> be in <a href=#limited-quirks-mode id=parsing-html-fragments:limited-quirks-mode-2>limited-quirks
- mode</a>. Otherwise, leave the <code id=parsing-html-fragments:document-6><a href=#document>Document</a></code> in <a href=#no-quirks-mode id=parsing-html-fragments:no-quirks-mode>no-quirks mode</a>.</p>
+ <a id=parsing-html-fragments:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of the <var id=parsing-html-fragments:concept-frag-parse-context-5><a href=#concept-frag-parse-context>context</a></var> element is in
+ <a href=#limited-quirks-mode id=parsing-html-fragments:limited-quirks-mode>limited-quirks mode</a>, then let the <code id=parsing-html-fragments:document-3><a href=#document>Document</a></code> be in <a href=#limited-quirks-mode id=parsing-html-fragments:limited-quirks-mode-2>limited-quirks
+ mode</a>. Otherwise, leave the <code id=parsing-html-fragments:document-4><a href=#document>Document</a></code> in <a href=#no-quirks-mode id=parsing-html-fragments:no-quirks-mode>no-quirks mode</a>.</p>
<li>
<p>Create a new <a href=#html-parser id=parsing-html-fragments:html-parser>HTML parser</a>, and associate it with the just created
- <code id=parsing-html-fragments:document-7><a href=#document>Document</a></code> node.</p>
+ <code id=parsing-html-fragments:document-5><a href=#document>Document</a></code> node.</p>
<li>
@@ -76736,7 +76728,7 @@
<li>
- <p>Append the element <var>root</var> to the <code id=parsing-html-fragments:document-8><a href=#document>Document</a></code> node created
+ <p>Append the element <var>root</var> to the <code id=parsing-html-fragments:document-6><a href=#document>Document</a></code> node created
above.</p>
<li>
@@ -76783,7 +76775,7 @@
<p>If there is a <var id=parsing-html-fragments:concept-frag-parse-context-10><a href=#concept-frag-parse-context>context</a></var> element, return the child
nodes of <var>root</var>, in <a href=#tree-order id=parsing-html-fragments:tree-order>tree order</a>.</p>
- <p>Otherwise, return the children of the <code id=parsing-html-fragments:document-9><a href=#document>Document</a></code> object, in <a href=#tree-order id=parsing-html-fragments:tree-order-2>tree
+ <p>Otherwise, return the children of the <code id=parsing-html-fragments:document-7><a href=#document>Document</a></code> object, in <a href=#tree-order id=parsing-html-fragments:tree-order-2>tree
order</a>.</p>
</ol>
@@ -76921,7 +76913,8 @@
XML is not formally extensible in the manner that is needed for <code id=parsing-xhtml-documents:the-template-element-3><a href=#the-template-element>template</a></code> processing.
<a href=#refsXML>[XML]</a></p>
- <p>When an <a href=#xml-parser id=parsing-xhtml-documents:xml-parser-9>XML parser</a> creates a <code id=parsing-xhtml-documents:node><a href=#node>Node</a></code> object, its <code id=parsing-xhtml-documents:dom-node-ownerdocument><a href=#dom-node-ownerdocument>ownerDocument</a></code> must be set to the <code id=parsing-xhtml-documents:document-6><a href=#document>Document</a></code> of
+ <p>When an <a href=#xml-parser id=parsing-xhtml-documents:xml-parser-9>XML parser</a> creates a <code id=parsing-xhtml-documents:node><a href=#node>Node</a></code> object, its <a id=parsing-xhtml-documents:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>
+ must be set to the <a id=parsing-xhtml-documents:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> of
the node into which the newly created node is to be inserted.</p>
<p>Certain algorithms in this specification <dfn id=feed-the-parser>spoon-feed the
@@ -77187,7 +77180,7 @@
<p>For each property in the table below, given a <code id=the-page:the-body-element><a href=#the-body-element>body</a></code> element, the first attribute
that exists <a href=#maps-to-the-pixel-length-property id=the-page:maps-to-the-pixel-length-property>maps to the pixel length property</a> on the <code id=the-page:the-body-element-2><a href=#the-body-element>body</a></code> element. If
none of the attributes for a property are found, or if the value of the attribute that was found
- cannot be parsed successfully, then, if the <code id=the-page:the-body-element-3><a href=#the-body-element>body</a></code> element's <code id=the-page:document><a href=#document>Document</a></code>'s
+ cannot be parsed successfully, then, if the <code id=the-page:the-body-element-3><a href=#the-body-element>body</a></code> element's <a id=the-page:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s
<a href=#browsing-context id=the-page:browsing-context>browsing context</a> does not have its <a href=#seamless-browsing-context-flag id=the-page:seamless-browsing-context-flag>seamless browsing context flag</a> set, a
default value of 8px is expected to be used for that property instead.</p>
@@ -77211,7 +77204,7 @@
<tr><td><code id=the-page:the-body-element-15><a href=#the-body-element>body</a></code> element's <code id=the-page:attr-body-leftmargin><a href=#attr-body-leftmargin>leftmargin</a></code> attribute
</table>
- <p>If the <code id=the-page:the-body-element-16><a href=#the-body-element>body</a></code> element's <code id=the-page:document-2><a href=#document>Document</a></code>'s <a href=#browsing-context id=the-page:browsing-context-2>browsing context</a> is a
+ <p>If the <code id=the-page:the-body-element-16><a href=#the-body-element>body</a></code> element's <a id=the-page:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#browsing-context id=the-page:browsing-context-2>browsing context</a> is a
<a href=#nested-browsing-context id=the-page:nested-browsing-context>nested browsing context</a>, and the <a href=#browsing-context-container id=the-page:browsing-context-container>browsing context container</a> of that
<a href=#nested-browsing-context id=the-page:nested-browsing-context-2>nested browsing context</a> is a <code id=the-page:frame><a href=#frame>frame</a></code> or <code id=the-page:the-iframe-element><a href=#the-iframe-element>iframe</a></code> element, then
the <dfn id=container-frame-element>container frame element</dfn> of the <code id=the-page:the-body-element-17><a href=#the-body-element>body</a></code> element is that <code id=the-page:frame-2><a href=#frame>frame</a></code>
@@ -77225,12 +77218,12 @@
<hr>
- <p>If a <code id=the-page:document-3><a href=#document>Document</a></code> is in a <a href=#nested-browsing-context id=the-page:nested-browsing-context-3>nested browsing context</a>, it is expected to be
+ <p>If a <code id=the-page:document><a href=#document>Document</a></code> is in a <a href=#nested-browsing-context id=the-page:nested-browsing-context-3>nested browsing context</a>, it is expected to be
positioned and sized to fit inside the content box of its <a href=#browsing-context-container id=the-page:browsing-context-container-2>browsing context container</a>.
If a <a href=#browsing-context id=the-page:browsing-context-3>browsing context</a> is not <a href=#being-rendered id=the-page:being-rendered>being rendered</a>, it is expected to have a
viewport with zero width and zero height.</p>
- <p>If the <code id=the-page:document-4><a href=#document>Document</a></code> is in a <a href=#nested-browsing-context id=the-page:nested-browsing-context-4>nested browsing context</a>, and the
+ <p>If the <code id=the-page:document-2><a href=#document>Document</a></code> is in a <a href=#nested-browsing-context id=the-page:nested-browsing-context-4>nested browsing context</a>, and the
<a href=#browsing-context-container id=the-page:browsing-context-container-3>browsing context container</a> of that <a href=#nested-browsing-context id=the-page:nested-browsing-context-5>nested browsing context</a> is a
<code id=the-page:frame-3><a href=#frame>frame</a></code> or <code id=the-page:the-iframe-element-4><a href=#the-iframe-element>iframe</a></code> element, and that element has a <code>scrolling</code> attribute, and that attribute's value is an <a href=#ascii-case-insensitive id=the-page:ascii-case-insensitive>ASCII
case-insensitive</a> match for the string "<code>off</code>", "<code>noscroll</code>", or "<code>no</code>", then the user agent is expected to
@@ -77258,18 +77251,18 @@
<p>When a <code id=the-page:the-body-element-21><a href=#the-body-element>body</a></code> element has a <code id=the-page:attr-body-link><a href=#attr-body-link>link</a></code> attribute, its
value is expected to be parsed using the <a href=#rules-for-parsing-a-legacy-colour-value id=the-page:rules-for-parsing-a-legacy-colour-value-3>rules for parsing a legacy colour value</a>, and
if that does not return an error, the user agent is expected to treat the attribute as a <a href=#presentational-hints id=the-page:presentational-hints-4>presentational hint</a> setting the 'color' property of any
- element in the <code id=the-page:document-5><a href=#document>Document</a></code> matching the ':link' pseudo-class to the resulting colour.</p>
+ element in the <code id=the-page:document-3><a href=#document>Document</a></code> matching the ':link' pseudo-class to the resulting colour.</p>
<p>When a <code id=the-page:the-body-element-22><a href=#the-body-element>body</a></code> element has a <code id=the-page:attr-body-vlink><a href=#attr-body-vlink>vlink</a></code> attribute,
its value is expected to be parsed using the <a href=#rules-for-parsing-a-legacy-colour-value id=the-page:rules-for-parsing-a-legacy-colour-value-4>rules for parsing a legacy colour value</a>,
and if that does not return an error, the user agent is expected to treat the attribute as a <a href=#presentational-hints id=the-page:presentational-hints-5>presentational hint</a> setting the 'color' property of any
- element in the <code id=the-page:document-6><a href=#document>Document</a></code> matching the ':visited' pseudo-class to the resulting
+ element in the <code id=the-page:document-4><a href=#document>Document</a></code> matching the ':visited' pseudo-class to the resulting
colour.</p>
<p>When a <code id=the-page:the-body-element-23><a href=#the-body-element>body</a></code> element has an <code id=the-page:attr-body-alink><a href=#attr-body-alink>alink</a></code> attribute,
its value is expected to be parsed using the <a href=#rules-for-parsing-a-legacy-colour-value id=the-page:rules-for-parsing-a-legacy-colour-value-5>rules for parsing a legacy colour value</a>,
and if that does not return an error, the user agent is expected to treat the attribute as a <a href=#presentational-hints id=the-page:presentational-hints-6>presentational hint</a> setting the 'color' property of any
- element in the <code id=the-page:document-7><a href=#document>Document</a></code> matching the ':active' pseudo-class and either the ':link'
+ element in the <code id=the-page:document-5><a href=#document>Document</a></code> matching the ':active' pseudo-class and either the ':link'
pseudo-class or the ':visited' pseudo-class to the resulting colour.</p>
@@ -78445,12 +78438,12 @@
<p>When a user agent is to <dfn id=restart-the-animation>restart the animation</dfn> for an <code id=images-2:the-img-element-4><a href=#the-img-element>img</a></code> element
showing an animated image, all animated images with the same <a href=#absolute-url id=images-2:absolute-url-3>absolute URL</a> and the
- same image data in that <code id=images-2:the-img-element-5><a href=#the-img-element>img</a></code> element's <code id=images-2:document-2><a href=#document>Document</a></code> are expected to restart
+ same image data in that <code id=images-2:the-img-element-5><a href=#the-img-element>img</a></code> element's <a id=images-2:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> are expected to restart
their animation from the beginning.</p>
<hr>
- <p>The following CSS rules are expected to apply when the <code id=images-2:document-3><a href=#document>Document</a></code> is in <a href=#quirks-mode id=images-2:quirks-mode-2>quirks
+ <p>The following CSS rules are expected to apply when the <code id=images-2:document-2><a href=#document>Document</a></code> is in <a href=#quirks-mode id=images-2:quirks-mode-2>quirks
mode</a>:</p>
<pre class=css>@namespace url(http://www.w3.org/1999/xhtml);
@@ -79757,7 +79750,7 @@
contents:</p>
<ul class=brief><li>The element is still in the <a href=#stack-of-open-elements id=the-applet-element:stack-of-open-elements>stack of open elements</a> of an <a href=#html-parser id=the-applet-element:html-parser>HTML
- parser</a> or <a href=#xml-parser id=the-applet-element:xml-parser>XML parser</a>.<li>The element is not <a href=#in-a-document id=the-applet-element:in-a-document>in a <code>Document</code></a>.<li>The element's <code id=the-applet-element:document><a href=#document>Document</a></code> is not <a href=#fully-active id=the-applet-element:fully-active>fully active</a>.<li id=sandboxPluginApplet>The element's <code id=the-applet-element:document-2><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-applet-element:active-sandboxing-flag-set>active sandboxing flag
+ parser</a> or <a href=#xml-parser id=the-applet-element:xml-parser>XML parser</a>.<li>The element is not <a href=#in-a-document id=the-applet-element:in-a-document>in a <code>Document</code></a>.<li>The element's <a id=the-applet-element:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a> is not <a href=#fully-active id=the-applet-element:fully-active>fully active</a>.<li id=sandboxPluginApplet>The element's <a id=the-applet-element:node-document-2 href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s <a href=#active-sandboxing-flag-set id=the-applet-element:active-sandboxing-flag-set>active sandboxing flag
set</a> has its <a href=#sandboxed-plugins-browsing-context-flag id=the-applet-element:sandboxed-plugins-browsing-context-flag>sandboxed plugins browsing context flag</a> set.<li>The element has an ancestor <a href=#media-element id=the-applet-element:media-element>media element</a>.<li>The element has an ancestor <code id=the-applet-element:the-object-element><a href=#the-object-element>object</a></code> element that is <em>not</em> showing its
<a href=#fallback-content id=the-applet-element:fallback-content>fallback content</a>.<li>No Java Language runtime <a href=#plugin id=the-applet-element:plugin>plugin</a> is available.<li>A Java runtime <a href=#plugin id=the-applet-element:plugin-2>plugin</a> is available but it is disabled.</ul>
@@ -80064,7 +80057,7 @@
<p>Any <a href=#navigate id=frames:navigate-2>navigation</a> required of the user agent in the <a href=#process-the-frame-attributes id=frames:process-the-frame-attributes-3>process
the <code>frame</code> attributes</a> algorithm must be completed as an <a href=#explicit-self-navigation-override id=frames:explicit-self-navigation-override>explicit
- self-navigation override</a> and with the <code id=frames:frame-8><a href=#frame>frame</a></code> element's document's
+ self-navigation override</a> and with the <code id=frames:frame-8><a href=#frame>frame</a></code> element's <a id=frames:node-document href=http://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>'s
<a href=#browsing-context id=frames:browsing-context>browsing context</a> as the <a href=#source-browsing-context id=frames:source-browsing-context>source browsing context</a>.</p>
<p>Furthermore, if the <a href=#active-document id=frames:active-document>active document</a> of the element's <a href=#child-browsing-context id=frames:child-browsing-context-2>child browsing
Modified: source
===================================================================
--- source 2014-09-03 23:43:15 UTC (rev 8741)
+++ source 2014-09-04 21:16:25 UTC (rev 8742)
@@ -2091,17 +2091,6 @@
element</span>. When a node is <span>in a <code>Document</code></span>, its <span>home
subtree</span> is that <code>Document</code>'s tree.</p>
- <p>The <code>Document</code> of a <code>Node</code> (such as an element) is the
- <code>Document</code> that the <code>Node</code>'s <code
- data-x="dom-Node-ownerDocument">ownerDocument</code> IDL attribute returns. When a
- <code>Node</code> is <span>in a <code>Document</code></span> then that <code>Document</code> is
- always the <code>Node</code>'s <code>Document</code>, and the <code>Node</code>'s <code
- data-x="dom-Node-ownerDocument">ownerDocument</code> IDL attribute thus always returns that
- <code>Document</code>.</p>
-
- <p>The <code>Document</code> of a content attribute is the <code>Document</code> of the
- attribute's element.</p>
-
<p>The term <dfn>tree order</dfn> means a pre-order, depth-first traversal of DOM nodes involved
(through the <code data-x="dom-Node-parentNode">parentNode</code>/<code
data-x="dom-Node-childNodes">childNodes</code> relationship).</p>
@@ -2885,6 +2874,8 @@
<li><dfn><code>ProcessingInstruction</code></dfn> interface</li>
<li><dfn><code>Text</code></dfn> interface</li>
+ <li><dfn data-x-href="http://dom.spec.whatwg.org/#concept-node-document">node document</dfn> concept</li>
+
<li><dfn><code>HTMLCollection</code></dfn> interface</li>
<li><dfn><code data-x="dom-HTMLCollection-length">HTMLCollection.length</code></dfn> attribute</li>
<li><dfn><code data-x="dom-HTMLCollection-item">HTMLCollection.item()</code></dfn> method</li>
@@ -2903,7 +2894,6 @@
<li><dfn><code data-x="dom-document-getElementsByClassName">getElementsByClassName()</code></dfn> method</li>
<li><dfn><code data-x="dom-Node-insertBefore">insertBefore()</code></dfn> method</li>
- <li><dfn><code data-x="dom-Node-ownerDocument">ownerDocument</code></dfn> attribute</li>
<li><dfn><code data-x="dom-Node-childNodes">childNodes</code></dfn> attribute</li>
<li><dfn><code data-x="dom-Node-localName">localName</code></dfn> attribute</li>
<li><dfn><code data-x="dom-Node-parentNode">parentNode</code></dfn> attribute</li>
@@ -6411,7 +6401,7 @@
<li><p>If the <code>Document</code> is <span>an <code>iframe</code> <code
data-x="attr-iframe-srcdoc">srcdoc</code> document</span>, then return the <span>document base
URL</span> of the <code>Document</code>'s <span>browsing context</span>'s <span>browsing context
- container</span>'s <code>Document</code> and abort these steps.</p></li>
+ container</span>'s <span>node document</span> and abort these steps.</p></li>
<li>
@@ -6674,7 +6664,7 @@
<dt>When fetching resources for an element</dt>
- <dd>The element's <code>Document</code>.</dd>
+ <dd>The element's <span>node document</span>.</dd>
</dl>
@@ -6686,7 +6676,7 @@
<p>While <var>document</var> is <span>an <code>iframe</code> <code
data-x="attr-iframe-srcdoc">srcdoc</code> document</span>, let <var>document</var> be
<var>document</var>'s <span>browsing context</span>'s <span>browsing context
- container</span>'s <code>Document</code> instead.</p>
+ container</span>'s <span>node document</span> instead.</p>
</li>
@@ -7395,7 +7385,7 @@
<li>Let <var>candidate</var> be the element that the <code
data-x="dom-Document-getElementById">document.getElementById()</code> method would find when
- called on the content attribute's document if it were passed as its argument the current value of
+ called on the content attribute's element's <span>node document</span> if it were passed as its argument the current value of
the corresponding content attribute.</li>
<li>If <var>candidate</var> is null, or if it is not type-compatible with the IDL
@@ -13409,7 +13399,7 @@
<p>Do a <span>potentially CORS-enabled fetch</span><!--FETCH--> of the resulting <span>absolute
URL</span>, with the <i>mode</i> being the current state of the element's <code
data-x="attr-link-crossorigin">crossorigin</code> content attribute, the <i>origin</i>
- being the <span>origin</span> of the <code>link</code> element's <code>Document</code>, and the
+ being the <span>origin</span> of the <code>link</code> element's <span>node document</span>, and the
<i>default origin behaviour</i> set to <i>taint</i>.</p>
<p>The resource obtained in this fashion can be either <span>CORS-same-origin</span> or
@@ -13441,7 +13431,7 @@
<p>The <span>task source</span> for these <span data-x="concept-task">tasks</span> is the <span>DOM
manipulation task source</span>.</p>
- <p>The element must <span>delay the load event</span> of the element's document until all the
+ <p>The element must <span>delay the load event</span> of the element's <span>node document</span> until all the
attempts to obtain the resource and its <span>critical subresources</span> are complete.
(Resources that the user agent has not yet attempted to obtain, e.g. because it is waiting for the
resource to be needed, do not <span>delay the load event</span>.)</p>
@@ -13611,7 +13601,7 @@
<ol><!-- c.f. <a> and <area>'s similar sections -->
- <li><p>If the <code>link</code> element's <code>Document</code> is not <span>fully active</span>,
+ <li><p>If the <code>link</code> element's <span>node document</span> is not <span>fully active</span>,
then abort these steps.</p></li>
<li><p><span data-x="following hyperlinks">Follow the hyperlink</span> created by the
@@ -14364,7 +14354,7 @@
<li>
<p>After the refresh has come due (as defined below), if the user has not canceled the
- redirect and if the <code>meta</code> element's <code>Document</code>'s <span>active
+ redirect and if the <code>meta</code> element's <span>node document</span>'s <span>active
sandboxing flag set</span> does not have the <span>sandboxed automatic features browsing
context flag</span> set, <span data-x="navigate">navigate</span><!--DONAV meta refresh--> the
<code>Document</code>'s <span>browsing context</span> to <var>url</var>, with
@@ -14915,7 +14905,7 @@
<p>The <span>task source</span> for these <span data-x="concept-task">tasks</span> is the <span>DOM
manipulation task source</span>.</p>
- <p>The element must <span>delay the load event</span> of the element's document until all the
+ <p>The element must <span>delay the load event</span> of the element's <span>node document</span> until all the
attempts to obtain the style sheet's <span>critical subresources</span>, if any, are complete.</p>
</div>
@@ -16174,7 +16164,7 @@
</dd>
- <dt>If <var>node</var>'s <code>Document</code> has <span data-x="the body element">a body
+ <dt>If <var>node</var>'s <span>node document</span> has <span data-x="the body element">a body
element</span></dt>
<dd>
@@ -18845,7 +18835,7 @@
<ol><!-- c.f. <area>'s similar section, also <link>'s -->
- <li><p>If the <code>a</code> element's <code>Document</code> is not <span>fully active</span>, then abort these steps.</p></li>
+ <li><p>If the <code>a</code> element's <span>node document</span> is not <span>fully active</span>, then abort these steps.</p></li>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2033 -->
<!-- http://www.hixie.ch/tests/adhoc/html/navigation/iframe/002.html -->
@@ -21783,7 +21773,7 @@
whose <code data-x="attr-hyperlink-rel">rel</code> attribute has no keywords that are defined as
specifying <span data-x="hyperlink">hyperlinks</span>, must also create a <span>hyperlink</span>.
This implied hyperlink has no special meaning (it has no <a href="#linkTypes">link type</a>)
- beyond linking the element's document to the resource given by the element's <code
+ beyond linking the element's <span>node document</span> to the resource given by the element's <code
data-x="attr-hyperlink-href">href</code> attribute.</p>
<p>A <span>hyperlink</span> can have one or more <dfn data-x="hyperlink annotation">hyperlink
@@ -24897,7 +24887,7 @@
<p>Any <span data-x="navigate">navigation</span> required of the user agent in the <span>process
the <code>iframe</code> attributes</span> algorithm must be completed as an <span>explicit
- self-navigation override</span> and with the <code>iframe</code> element's document's
+ self-navigation override</span> and with the <code>iframe</code> element's <span>node document</span>'s
<span>browsing context</span> as the <span>source browsing context</span>.</p>
<p>Furthermore, if the <span>active document</span> of the element's <span>child browsing
@@ -25186,11 +25176,11 @@
<ul>
<li>The <span>browsing context</span>'s <span>active document</span> has the <span>same
- origin</span> as the <code>iframe</code> element's <code>Document</code>, or
+ origin</span> as the <code>iframe</code> element's <span>node document</span>, or
<li>The <span>browsing context</span>'s <span>active document</span>'s <em><span data-x="the
document's address">address</span></em> has the <span>same origin</span> as the
- <code>iframe</code> element's <code>Document</code>, or
+ <code>iframe</code> element's <span>node document</span>, or
<li>The <span>browsing context</span>'s <span>active document</span> is <span>an
<code>iframe</code> <code data-x="attr-iframe-srcdoc">srcdoc</code> document</span>.
@@ -25493,7 +25483,7 @@
data-x="in a document">in a <code>Document</code></span> the last time the <span>event loop</span>
reached step 1.</li>
- <li>The element's <code>Document</code> is <span>fully active</span>.</li>
+ <li>The element's <span>node document</span> is <span>fully active</span>.</li>
<li>The element has either a <code data-x="attr-embed-src">src</code> attribute set or a <code
data-x="attr-embed-type">type</code> attribute set (or both).</li>
@@ -25612,7 +25602,7 @@
<li><p><span>Navigate</span><!--DONAV embed--> the <span>nested browsing context</span> to
the fetched resource, with <span>replacement enabled</span>, and with the
- <code>embed</code> element's document's <span>browsing context</span> as the <span>source
+ <code>embed</code> element's <span>node document</span>'s <span>browsing context</span> as the <span>source
browsing context</span>. (The <code data-x="attr-embed-src">src</code> attribute of the
<code>embed</code> element doesn't get updated if the browsing context gets further
navigated to other locations.)</p></li>
@@ -25647,10 +25637,10 @@
<p class="note">This allows servers to return data for plugins even with error responses (e.g.
HTTP 500 Internal Server Error codes can still contain plugin data).</p>
- <p>Fetching the resource must <span>delay the load event</span> of the element's document.</p>
+ <p>Fetching the resource must <span>delay the load event</span> of the element's <span>node document</span>.</p>
<!-- if we add load/error events, then replace the previous paragraph with the text one: -->
<!-- similar text in various places -->
- <!--<p>Fetching the resource must <span>delay the load event</span> of the element's document
+ <!--<p>Fetching the resource must <span>delay the load event</span> of the element's <span>node document</span>
until the final <span data-x="concept-task">task</span> that is <span data-x="queue a
task">queued</span> by the <span>networking task source</span> once the resource has been
<span data-x="fetch">fetched</span> has been run.</p>-->
@@ -25687,7 +25677,7 @@
<p id="sandboxPluginEmbed">When a <span>plugin</span> is to be instantiated but it cannot be <span
data-x="concept-plugin-secure">secured</span> and the <span>sandboxed plugins browsing context
- flag</span> is set on the <code>embed</code> element's <code>Document</code>'s <span>active
+ flag</span> is set on the <code>embed</code> element's <span>node document</span>'s <span>active
sandboxing flag set</span>, then the user agent must not instantiate the <span>plugin</span>, and
must instead render the <code>embed</code> element in a manner that conveys that the
<span>plugin</span> was disabled. The user agent may offer the user the option to override the
@@ -25768,7 +25758,7 @@
<li><p>If the <span>active document</span> of the <span>nested browsing context</span> does not
have the <span data-x="same origin">same</span> <span>effective script origin</span> as the
- <code>embed</code> element's <code>Document</code>, then return null and abort these
+ <code>embed</code> element's <span>node document</span>, then return null and abort these
steps.</p></li>
<li><p>If the <span>nested browsing context</span>'s <span>active document</span> was created by
@@ -25925,7 +25915,7 @@
document">inserted into a document</span> or <span data-x="remove an element from a
document">removed from a document</span>,
- <li>the element's <code>Document</code> changes whether it is <span>fully active</span>,
+ <li>the element's <span>node document</span> changes whether it is <span>fully active</span>,
<li>one of the element's ancestor <code>object</code> elements changes to or from showing its
<span>fallback content</span>,
@@ -25947,7 +25937,7 @@
<p>...the user agent must <span>queue a task</span> to run the following steps to (re)determine
what the <code>object</code> element represents. This <span data-x="concept-task">task</span>
being <span data-x="queue a task">queued</span> or actively running must <span>delay the load
- event</span> of the element's document. <!--As described in the algorithm, once the algorithm
+ event</span> of the element's <span>node document</span>. <!--As described in the algorithm, once the algorithm
starts fetching a resource, the fetch is what starts delaying the load event. But to tide us over
from when the parser finds the <object> element and the fetching begins, we have to block the load
event like this, lest the parse end before this task gets run.--></p>
@@ -25970,7 +25960,7 @@
<p>If the element has an ancestor <span>media element</span>, or has an ancestor
<code>object</code> element that is <em>not</em> showing its <span>fallback content</span>, or
if the element is not <span data-x="in a document">in a <code>Document</code></span> with a
- <span>browsing context</span>, or if the element's <code>Document</code> is not <span>fully
+ <span>browsing context</span>, or if the element's <span>node document</span> is not <span>fully
active</span>, or if the element is still in the <span>stack of open elements</span> of an
<span>HTML parser</span> or <span>XML parser</span>, or if the element is not <span>being
rendered</span>, then jump to the step below labeled <i>fallback</i>.</p>
@@ -26044,7 +26034,7 @@
sensitive -->.</p>
<!-- similar text in various places -->
- <p>Fetching the resource must <span>delay the load event</span> of the element's document
+ <p>Fetching the resource must <span>delay the load event</span> of the element's <span>node document</span>
until the <span data-x="concept-task">task</span> that is <span data-x="queue a
task">queued</span> by the <span>networking task source</span> once the resource has been
<span data-x="fetch">fetched</span> (defined next) has been run.</p>
@@ -26356,7 +26346,7 @@
<p>If the <span>URL</span> of the given resource is not <code>about:blank</code>, the
element's <span>nested browsing context</span> must then be <span
data-x="navigate">navigated</span><!--DONAV object--> to that resource, with
- <span>replacement enabled</span>, and with the <code>object</code> element's document's
+ <span>replacement enabled</span>, and with the <code>object</code> element's <span>node document</span>'s
<span>browsing context</span> as the <span>source browsing context</span>. (The <code
data-x="attr-object-data">data</code> attribute of the <code>object</code> element doesn't
get updated if the browsing context gets further navigated to other locations.)</p>
@@ -26468,7 +26458,7 @@
<p id="sandboxPluginObject">Plugins are considered sandboxed for the purpose of an
<code>object</code> element if the <span>sandboxed plugins browsing context flag</span> is set on
- the <code>object</code> element's <code>Document</code>'s <span>active sandboxing flag
+ the <code>object</code> element's <span>node document</span>'s <span>active sandboxing flag
set</span>.</p>
<p>Due to the algorithm above, the contents of <code>object</code> elements act as <span>fallback
@@ -26790,8 +26780,8 @@
then there is no <span>poster frame</span>; abort these steps.</p></li>
<li><p><span>Fetch</span><!--FETCH--> the resulting <span>absolute URL</span>, from the element's
- <code>Document</code>'s <span>origin</span>. This must <span>delay the load event</span> of the
- element's document.</p></li>
+ <span>node document</span>'s <span>origin</span>. This must <span>delay the load event</span> of the
+ element's <span>node document</span>.</p></li>
<!-- could define how to sniff for an image here -->
@@ -27165,7 +27155,7 @@
data-x="attr-media-src">src</code> content attribute set to the provided value (this will <a
href="#concept-media-load-algorithm-at-creation">cause the user agent to invoke</a> the object's
<span data-x="concept-media-load-algorithm">resource selection algorithm</span> before returning).
- The element's document must be the <span>active document</span> of the <span>browsing
+ The element's <span>node document</span> must be the <span>active document</span> of the <span>browsing
context</span> of the <code>Window</code> object on which the interface object of the invoked
constructor is found.</p>
@@ -28626,7 +28616,7 @@
resource</var>'s <span>absolute URL</span>, with the <i>mode</i> being the state of the
<span>media element</span>'s <code data-x="attr-media-crossorigin">crossorigin</code> content
attribute, the <i>origin</i> being the <span>origin</span> of the <span>media element</span>'s
- <code>Document</code>, and the <i>default origin behaviour</i> set to <i>taint</i>.</p>
+ <span>node document</span>, and the <i>default origin behaviour</i> set to <i>taint</i>.</p>
<p>The resource obtained in this fashion, if any, contains the <span>media data</span>. It can
be <span>CORS-same-origin</span> or <span>CORS-cross-origin</span>; this affects whether
@@ -29779,7 +29769,7 @@
<p>If the <span>autoplaying flag</span> is true, and the <code
data-x="dom-media-paused">paused</code> attribute is true, and the <span>media element</span>
has an <code data-x="attr-media-autoplay">autoplay</code> attribute specified, and the
- <span>media element</span>'s <code>Document</code>'s <span>active sandboxing flag set</span>
+ <span>media element</span>'s <span>node document</span>'s <span>active sandboxing flag set</span>
does not have the <span>sandboxed automatic features browsing context flag</span> set, then
the user agent may also run the following substeps:</p>
@@ -30517,7 +30507,7 @@
of a <span>text track</span> only if it is listed in the <span>text track list of cues</span>, not
merely if it is associated with the <span>text track</span>.</p>
- <p class="note">If the <span>media element</span>'s <code>Document</code> stops being a
+ <p class="note">If the <span>media element</span>'s <span>node document</span> stops being a
<span>fully active</span> document, then the playback will <a href="#media-playback">stop</a>
until the document is active again.</p>
@@ -32025,7 +32015,7 @@
<li>
<p>If there is another <span>media element</span> whose <code>Document</code> is the same as
- <var>m</var>'s <code>Document</code> (even if one or both of these elements are not
+ <var>m</var>'s <span>node document</span> (even if one or both of these elements are not
actually <span data-x="in a Document"><em>in</em> the <code>Document</code></span>), and which
also has a <code data-x="attr-media-mediagroup">mediagroup</code> attribute, and whose <code
data-x="attr-media-mediagroup">mediagroup</code> attribute has the same value as the new value of
@@ -32894,7 +32884,7 @@
<p>If <var>URL</var> is not the empty string, perform a <span>potentially CORS-enabled
fetch</span><!--FETCH--> of <var>URL</var>, with the <i>mode</i> being <var>CORS mode</var>, the <i>origin</i> being the <span>origin</span> of the
- <code>track</code> element's <code>Document</code>, and the <i>default origin behaviour</i> set
+ <code>track</code> element's <span>node document</span>, and the <i>default origin behaviour</i> set
to <i>fail</i>.</p>
<p>The resource obtained in this fashion, if any, contains the text track data. If any data is
@@ -35187,7 +35177,7 @@
<ol><!-- c.f. <a>'s similar section -->
- <li><p>If the <code>area</code> element's <code>Document</code> is not <span>fully active</span>,
+ <li><p>If the <code>area</code> element's <span>node document</span> is not <span>fully active</span>,
then abort these steps.</p></li>
<li>
@@ -37788,7 +37778,7 @@
<li>
<p>If <var>rowspan</var> is zero and the <code>table</code> element's
- <code>Document</code> is not set to <span>quirks mode</span>, then let <var>cell grows
+ <span>node document</span> is not set to <span>quirks mode</span>, then let <var>cell grows
downward</var> be true, and set <var>rowspan</var> to 1. Otherwise, let <var>cell grows downward</var> be false.</p>
</li>
@@ -45795,7 +45785,7 @@
<p>If the element is <i data-x="concept-fe-mutable">mutable</i>, then the element's
<span>activation behavior</span> is as follows: if the element has a <span>form owner</span>,
- and the element's <code>Document</code> is <span>fully active</span>,
+ and the element's <span>node document</span> is <span>fully active</span>,
<span data-x="concept-form-submit">submit</span> the <span>form owner</span> from the
<code>input</code> element; otherwise, do nothing.</p>
@@ -45933,7 +45923,7 @@
</ul>
<!-- same text in <img> section and similar text elsewhere -->
- <p>Fetching the image must <span>delay the load event</span> of the element's document until the
+ <p>Fetching the image must <span>delay the load event</span> of the element's <span>node document</span> until the
<span data-x="concept-task">task</span> that is <span data-x="queue a task">queued</span> by the
<span>networking task source</span> once the resource has been <span data-x="fetch">fetched</span>
(defined below) has been run.</p>
@@ -45989,7 +45979,7 @@
data-x="concept-fe-mutable">mutable</i>, the user agent should allow the user to select this <span
data-x="concept-input-type-image-coordinate">coordinate</span>, and the element's <span>activation
behavior</span> is as follows: if the element has a <span>form owner</span>, and the element's
- <code>Document</code> is <span>fully active</span>, take the user's selected <span
+ <span>node document</span> is <span>fully active</span>, take the user's selected <span
data-x="concept-input-type-image-coordinate">coordinate</span>, and <span
data-x="concept-form-submit">submit</span> the <code>input</code> element's <span>form owner</span>
from the <code>input</code> element. If the user activates the control without explicitly
@@ -45998,13 +45988,13 @@
<p>Otherwise, the element <span>represents</span> a submit button whose label is given by the
value of the <code data-x="attr-input-alt">alt</code> attribute; if the element is <i
data-x="concept-fe-mutable">mutable</i>, then the element's <span>activation behavior</span> is as
- follows: if the element has a <span>form owner</span>, and the element's <code>Document</code> is
+ follows: if the element has a <span>form owner</span>, and the element's <span>node document</span> is
<span>fully active</span>, set the <span data-x="concept-input-type-image-coordinate">selected
coordinate</span> to (0,0), and <span data-x="concept-form-submit">submit</span> the
<code>input</code> element's <span>form owner</span> from the <code>input</code> element.</p>
<p>In either case, if the element is <i data-x="concept-fe-mutable">mutable</i> but has no
- <span>form owner</span> or the element's <code>Document</code> is not <span>fully active</span>,
+ <span>form owner</span> or the element's <span>node document</span> is not <span>fully active</span>,
then its <span>activation behavior</span> must be to do nothing. If the element is not <i
data-x="concept-fe-mutable">mutable</i>, it has no <span>activation behavior</span>.</p>
@@ -46168,7 +46158,7 @@
<p>If the element is <i data-x="concept-fe-mutable">mutable</i>, then the element's
<span>activation behavior</span>, if the element has a <span>form owner</span> and the element's
- <code>Document</code> is <span>fully active</span>, is to <span
+ <span>node document</span> is <span>fully active</span>, is to <span
data-x="concept-form-reset">reset</span> the <span>form owner</span>; otherwise, it is to do
nothing.</p>
@@ -47884,13 +47874,13 @@
<dt> <dfn data-x="attr-button-type-submit-state">Submit Button</dfn> </dt>
- <dd><p>If the element has a <span>form owner</span> and the element's <code>Document</code> is
+ <dd><p>If the element has a <span>form owner</span> and the element's <span>node document</span> is
<span>fully active</span>, the element must <span data-x="concept-form-submit">submit</span> the
<span>form owner</span> from the <code>button</code> element.</p></dd>
<dt> <dfn data-x="attr-button-type-reset-state">Reset Button</dfn> </dt>
- <dd><p>If the element has a <span>form owner</span> and the element's <code>Document</code> is
+ <dd><p>If the element has a <span>form owner</span> and the element's <span>node document</span> is
<span>fully active</span>, the element must <span data-x="concept-form-reset">reset</span> the
<span>form owner</span>.</p></dd>
@@ -47909,7 +47899,7 @@
<li><p>If the <code>button</code> is not <span>being rendered</span>, abort these
steps.</p></li>
- <li><p>If the <code>button</code> element's <code>Document</code> is not <span>fully
+ <li><p>If the <code>button</code> element's <span>node document</span> is not <span>fully
active</span>, abort these steps.</p></li>
<li><p>Let <var>menu</var> be the element's <span>designated pop-up menu</span>, if
@@ -48984,7 +48974,7 @@
value. If the <var>defaultSelected</var> argument is true, the new object must have a
<code data-x="attr-option-selected">selected</code> attribute set with no value. If the <var>selected</var> argument is true, the new object must have its <span
data-x="concept-option-selectedness">selectedness</span> set to true; otherwise the <span
- data-x="concept-option-selectedness">selectedness</span> must be set to false, even if the <var>defaultSelected</var> argument is true. The element's document must be the <span>active
+ data-x="concept-option-selectedness">selectedness</span> must be set to false, even if the <var>defaultSelected</var> argument is true. The element's <span>node document</span> must be the <span>active
document</span> of the <span>browsing context</span> of the <code>Window</code> object on which
the interface object of the invoked constructor is found.</p>
@@ -51367,7 +51357,7 @@
<ol>
- <li><p>Let <var>target</var> be the element's <code>Document</code>.</p></li>
+ <li><p>Let <var>target</var> be the element's <span>node document</span>.</p></li>
<li><p>If <var>target</var> has no <span>browsing context</span>, abort these
steps.</p></li>
@@ -51380,7 +51370,7 @@
<span>sandboxed automatic features browsing context flag</span>, abort these steps.</p></li>
<li><p>If <var>target</var>'s <span>origin</span> is not the <span data-x="same
- origin">same</span> as the <span>origin</span> of the <code>Document</code> of the currently
+ origin">same</span> as the <span>origin</span> of the <span>node document</span> of the currently
focused element in <var>target</var>'s <span>top-level browsing context</span>, abort
these steps.</p></li>
@@ -53099,14 +53089,14 @@
<li><p>the algorithm is not <span>allowed to show a popup</span></p></li>
- <li><p><var>form</var>'s <code>Document</code> is not <span>fully
+ <li><p><var>form</var>'s <span>node document</span> is not <span>fully
active</span></p></li>
<li><p><var>form</var>'s <code data-x="attr-form-autocomplete">autocomplete</code>
attribute is in the <span data-x="attr-form-autocomplete-off-state">off</span> state</p></li>
<li><p>the user has disabled this feature for this <var>form</var>'s
- <code>Document</code>'s <span>origin</span></p></li>
+ <span>node document</span>'s <span>origin</span></p></li>
<li><p>the user agent does not support this <var>form</var>'s fields (e.g. the form
has different fields whose <span>autofill scope</span> use different "<code
@@ -53181,7 +53171,7 @@
<li><p><var>form</var> is no longer <span>in a <code>Document</code></span></p></li>
- <li><p><var>form</var>'s <code>Document</code> is no longer <span>fully
+ <li><p><var>form</var>'s <span>node document</span> is no longer <span>fully
active</span></p></li>
<li><p><var>form</var>'s <code data-x="attr-form-autocomplete">autocomplete</code>
@@ -54361,7 +54351,7 @@
<ol>
<li><p>Let <var>form document</var> be the <var>form</var>'s
- <code>Document</code>.</p></li>
+ <span>node document</span>.</p></li>
<li id="sandboxSubmitBlocked"><p>If <var>form document</var> has no associated
<span>browsing context</span> or its <span>active sandboxing flag set</span> has its
@@ -57155,11 +57145,11 @@
as the anchor. Otherwise, set the <code>dialog</code> to the <span>centered alignment</span>
mode.</p></li>
- <li><p>Let <var>subject</var>'s <code>Document</code> be <span data-x="blocked by a
+ <li><p>Let <var>subject</var>'s <span>node document</span> be <span data-x="blocked by a
modal dialog">blocked by the modal dialog</span> <var>subject</var>.</p></li>
<li><p>Push <var>subject</var> onto <var>subject</var>'s
- <code>Document</code>'s <span>pending dialog stack</span>.</p></li>
+ <span>node document</span>'s <span>pending dialog stack</span>.</p></li>
<li><p>Run the <span>dialog focusing steps</span> for <var>subject</var>.</p></li>
@@ -57239,7 +57229,7 @@
<li><p>Remove <var>subject</var> from that <span>pending dialog stack</span>.</p></li>
- <li><p>If that <span>pending dialog stack</span> is not empty, then let <var>subject</var>'s <code>Document</code> be <span data-x="blocked by a modal
+ <li><p>If that <span>pending dialog stack</span> is not empty, then let <var>subject</var>'s <span>node document</span> be <span data-x="blocked by a modal
dialog">blocked by the modal dialog</span> that is at the top of the <span>pending dialog
stack</span>. Otherwise, let <var>document</var> be no longer <span>blocked by a modal
dialog</span> at all.</p></li>
@@ -57741,8 +57731,8 @@
type</var></dfn>, <dfn><var data-x="concept-script-encoding">the script block's character
encoding</var></dfn>, and <dfn><var data-x="concept-script-fallback-encoding">the script block's
fallback character encoding</var></dfn>. They are determined when the script is prepared, based on
- the attributes on the element at that time, and the <code>Document</code> of the
- <code>script</code> element.</p>
+ the attributes on the element at that time, and the
+ <code>script</code> element's <span>node document</span>.</p>
<p>When a <code>script</code> element that is not marked as being <span>"parser-inserted"</span>
experiences one of the events listed in the following list, the user agent must synchronously
@@ -57888,7 +57878,7 @@
<li>
<p>If the element is flagged as <span>"parser-inserted"</span>, but the element's
- <code>Document</code> is not the <code>Document</code> of the parser that created the element,
+ <span>node document</span> is not the <code>Document</code> of the parser that created the element,
then abort these steps.</p>
</li>
@@ -57983,7 +57973,7 @@
<p>Do a <span>potentially CORS-enabled fetch</span><!--FETCH--> of the resulting
<span>absolute URL</span>, with the <i>mode</i> being the current state of the element's <code
data-x="attr-script-crossorigin">crossorigin</code> content attribute, the <i>origin</i> being
- the <span>origin</span> of the <code>script</code> element's <code>Document</code>, and the
+ the <span>origin</span> of the <code>script</code> element's <span>node document</span>, and the
<i>default origin behaviour</i> set to <i>taint</i>.</p>
<p>The resource obtained in this fashion can be either <span>CORS-same-origin</span> or
@@ -58082,7 +58072,7 @@
<dd>
<p>The element must be added to the end of the <dfn>list of scripts that will execute in order
- as soon as possible</dfn> associated with the <code>Document</code> of the <code>script</code>
+ as soon as possible</dfn> associated with the <span>node document</span> of the <code>script</code>
element at the time the <span>prepare a script</span> algorithm started.</p>
<p>The <span data-x="concept-task">task</span> that the <span>networking task source</span>
@@ -58117,7 +58107,7 @@
<dd>
<p>The element must be added to the <dfn>set of scripts that will execute as soon as
- possible</dfn> of the <code>Document</code> of the <code>script</code> element at the time the
+ possible</dfn> of the <span>node document</span> of the <code>script</code> element at the time the
<span>prepare a script</span> algorithm started.</p>
<p>The <span data-x="concept-task">task</span> that the <span>networking task source</span>
@@ -58140,7 +58130,7 @@
</ol>
<!-- similar text in various places -->
- <p>Fetching an external script must <span>delay the load event</span> of the element's document
+ <p>Fetching an external script must <span>delay the load event</span> of the element's <span>node document</span>
until the <span data-x="concept-task">task</span> that is <span data-x="queue a task">queued</span>
by the <span>networking task source</span> once the resource has been <span
data-x="fetch">fetched</span> (defined above) has been run.</p>
@@ -58171,7 +58161,7 @@
<li>
<p>If the element is flagged as <span>"parser-inserted"</span>, but the element's
- <code>Document</code> is not the <code>Document</code> of the parser that created the element,
+ <span>node document</span> is not the <code>Document</code> of the parser that created the element,
then abort these steps.</p>
</li>
@@ -58298,7 +58288,7 @@
<p>If the script is from an external file, then increment the
<span>ignore-destructive-writes counter</span> of the <code>script</code> element's
- <code>Document</code>. Let <var>neutralised doc</var> be that
+ <span>node document</span>. Let <var>neutralised doc</var> be that
<code>Document</code>.</p>
</li>
@@ -58306,7 +58296,7 @@
<li>
<p>Let <var>old script element</var> be the value to which the <code>script</code>
- element's <code>Document</code>'s <code
+ element's <span>node document</span>'s <code
data-x="dom-document-currentScript">currentScript</code> object was most recently
initialized.</p>
@@ -58314,7 +58304,7 @@
<li>
- <p>Initialise the <code>script</code> element's <code>Document</code>'s <code
+ <p>Initialise the <code>script</code> element's <span>node document</span>'s <code
data-x="dom-document-currentScript">currentScript</code> object to the <code>script</code>
element.</p>
@@ -58326,7 +58316,7 @@
block's source</var>, the <span>URL</span> from which the script was obtained, <var
data-x="concept-script-type">the script block's type</var> as the scripting language, and
the <span>script settings object</span> of the <code>script</code> element's
- <code>Document</code>'s <code>Window</code> object.</p>
+ <span>node document</span>'s <code>Window</code> object.</p>
<p>If the script came from a resource that was <span data-x="fetch">fetched</span> in the
steps above, and the resource was <span>CORS-cross-origin</span>, then pass the <var>muted errors</var> flag to the <span>create a script</span> algorithm as well.</p>
@@ -58337,7 +58327,7 @@
<li>
- <p>Initialise the <code>script</code> element's <code>Document</code>'s <code
+ <p>Initialise the <code>script</code> element's <span>node document</span>'s <code
data-x="dom-document-currentScript">currentScript</code> object to <var>old script
element</var>.</p>
@@ -59029,12 +59019,10 @@
<ol>
- <li><p>Let <var>doc</var> be the <code>template</code> element's <code
- data-x="dom-Node-ownerDocument">ownerDocument</code>'s <span>appropriate template contents owner
+ <li><p>Let <var>doc</var> be the <code>template</code> element's <span>node document</span>'s <span>appropriate template contents owner
document</span>.</p></li>
- <li><p>Create a <code>DocumentFragment</code> object whose <code
- data-x="dom-Node-ownerDocument">ownerDocument</code> is <var>doc</var>.</p></li>
+ <li><p>Create a <code>DocumentFragment</code> object whose <span>node document</span> is <var>doc</var>.</p></li>
<li><p>Set the <code>template</code> element's <span>template contents</span> to the newly
created <code>DocumentFragment</code> object.</p></li>
@@ -59092,14 +59080,12 @@
</ol>
- <p>When a <code>template</code> element changes <code
- data-x="dom-Node-ownerDocument">ownerDocument</code>, the user agent must run the following
+ <p>When a <code>template</code> element's <span>node document</span> changes, the user agent must run the following
steps:</p>
<ol>
- <li><p>Let <var>doc</var> be the <code>template</code> element's new <code
- data-x="dom-Node-ownerDocument">ownerDocument</code>'s <span>appropriate template contents owner
+ <li><p>Let <var>doc</var> be the <code>template</code> element's new <span>node document</span>'s <span>appropriate template contents owner
document</span>.</p></li>
<li><p><span data-x="concept-node-adopt">Adopt</span> the <code>template</code> element's
@@ -59123,8 +59109,8 @@
<li><p>Let <var>copied contents</var> be the result of <span
data-x="concept-node-clone">cloning</span> all the children of <var>node</var>'s
- <span>template contents</span>, with <var>ownerDocument</var> set to <var>copy</var>'s <span>template contents</span>'s <code
- data-x="dom-Node-ownerDocument">ownerDocument</code>, and with the <var>clone children
+ <span>template contents</span>, with <var>document</var> set to <var>copy</var>'s <span>template contents</span>'s <span>node
+ document</span>, and with the <var>clone children
flag</var> set.</p></li>
<li><p>Append <var>copied contents</var> to <var>copy</var>'s <span>template
@@ -72816,7 +72802,7 @@
<span>parent browsing context</span>. For example, if the user moves the focus to a text field
in an <code>iframe</code>, the <code>iframe</code> is the element returned by the <code
data-x="dom-document-activeElement">activeElement</code> API in the <code>iframe</code>'s
- <code>Document</code>.</p>
+ <span>node document</span>.</p>
</dd>
@@ -76406,7 +76392,7 @@
<code>Document</code>). In such a situation, the <span>nested browsing context</span> has no
<span>parent browsing context</span>, but it still has the same <span>browsing context
container</span> and is still <span data-x="browsing context nested through">nested through</span>
- that element's <code>Document</code>. Such a <span>nested browsing context</span> is <em>not</em>
+ that element's <span>node document</span>. Such a <span>nested browsing context</span> is <em>not</em>
a <span>top-level browsing context</span>, and cannot contain <code>Document</code>s that are
<span>fully active</span>. Furthermore, if a <span>browsing context container</span> (such as an
<code>iframe</code>) is moved to another <code>Document</code>, then the <span>parent browsing
@@ -76482,7 +76468,7 @@
<li><p>If <var>d</var> is not a <code>Document</code> in a <span>nested browsing
context</span>, return null and abort these steps.</p></li>
- <li><p>If the <span>browsing context container</span>'s <code>Document</code> does not have the
+ <li><p>If the <span>browsing context container</span>'s <span>node document</span> does not have the
<span data-x="same origin">same</span> <span>effective script origin</span> as the
<span>effective script origin</span> specified by the <span>entry settings object</span>, then
throw a <code>SecurityError</code> exception and abort these steps.</p></li>
@@ -76583,7 +76569,7 @@
browsing context flag</span> set, then abort these steps negatively.</p></li>
<li><p>Otherwise, if <var>B</var> is a <span>top-level browsing context</span>, and is
- one of the <span data-x="ancestor browsing context">ancestor browsing contexts</span> of <var>A</var>, and <var>A</var>'s <code>Document</code>'s <span>active sandboxing
+ one of the <span data-x="ancestor browsing context">ancestor browsing contexts</span> of <var>A</var>, and <var>A</var>'s <span>node document</span>'s <span>active sandboxing
flag set</span> has its <span>sandboxed top-level navigation browsing context flag</span> set,
then abort these steps negatively.</p></li>
@@ -76606,9 +76592,9 @@
<span>browsing context</span> is a <span>top-level browsing context</span> or if all of its
<code>Document</code>'s <span data-x="ancestor browsing context">ancestor browsing contexts</span>
all have <span data-x="active document">active documents</span> whose <span>origin</span> are the
- <span>same origin</span> as the element's <code>Document</code>'s <span>origin</span>. If an
+ <span>same origin</span> as the element's <span>node document</span>'s <span>origin</span>. If an
element has a <span>browsing context scope origin</span>, then its value is the
- <span>origin</span> of the element's <code>Document</code>.</p>
+ <span>origin</span> of the element's <span>node document</span>.</p>
</div>
<!--REMOVE-TOPIC:Security-->
@@ -77941,7 +77927,7 @@
<p>The <span>origin</span> is an <span data-x="concept-origin-alias">alias</span> to the
<span>origin</span> specified by the <span>incumbent settings object</span> when the <span>navigate</span>
algorithm was invoked, or, if no <span data-x="concept-script">script</span> was involved, of
- the <code>Document</code> of the element that initiated the <span
+ the <span>node document</span> of the element that initiated the <span
data-x="navigate">navigation</span> to that <span>URL</span>.</p>
<p>The <span>effective script origin</span> is initially an <span
@@ -77986,12 +77972,12 @@
<p>The <span>origin</span> of the <code>Document</code> is an <span
data-x="concept-origin-alias">alias</span> to the <span>origin</span> of the
<code>Document</code>'s <span>browsing context</span>'s <span>browsing context
- container</span>'s <code>Document</code>.</p>
+ container</span>'s <span>node document</span>.</p>
<p>The <span>effective script origin</span> is initially an <span
data-x="concept-origin-alias">alias</span> to the <span>effective script origin</span> of the
<code>Document</code>'s <span>browsing context</span>'s <span>browsing context
- container</span>'s <code>Document</code>.</p>
+ container</span>'s <span>node document</span>.</p>
</dd>
@@ -78037,7 +78023,7 @@
<dt>If the image data is <span>CORS-same-origin</span></dt>
<dd>The <span>origin</span> is an <span data-x="concept-origin-alias">alias</span> to the
- <span>origin</span> of the <code>img</code> element's <code>Document</code>.</dd>
+ <span>origin</span> of the <code>img</code> element's <span>node document</span>.</dd>
<!-- all image loads go through the "potentially CORS-enabled fetch" algorithm so they're all
either CORS-cross-origin or CORS-same-origin if they succeed at all -->
@@ -78064,7 +78050,7 @@
<dt>If the <span>media data</span> is <span>CORS-same-origin</span></dt>
<dd>The <span>origin</span> is an <span data-x="concept-origin-alias">alias</span> to the
- <span>origin</span> of the <span>media element</span>'s <code>Document</code>.</dd>
+ <span>origin</span> of the <span>media element</span>'s <span>node document</span>.</dd>
</dl>
@@ -79894,7 +79880,7 @@
data-x="attr-iframe-src">src</code> attribute of an <code>iframe</code> element would be
evaluated in the context of the <code>iframe</code>'s own <span>nested browsing
context</span> when the <code>iframe</code> is being set up; once evaluated, its return value
- (if it was not void) would replace that <span>browsing context</span>'s document, thus also
+ (if it was not void) would replace that <span>browsing context</span>'s <code>Document</code>, thus also
changing the <code>Window</code> object of that <span>browsing context</span>.</p>
</div>
@@ -83159,14 +83145,14 @@
<dl>
- <dt>If <var>target</var>'s <code>Document</code> is
+ <dt>If <var>target</var>'s <span>node document</span> is
<span>ready for post-load tasks</span></dt>
<dd><p><span data-x="queue a task">Queue</span> the task <var>task</var>.</p></dd>
<dt>Otherwise</dt>
- <dd><p>Add <var>task</var> to <var>target</var>'s <code>Document</code>'s list
+ <dd><p>Add <var>task</var> to <var>target</var>'s <span>node document</span>'s list
of <span>pending application cache download process tasks</span>.</p></dd>
</dl>
@@ -84476,7 +84462,7 @@
<p>Each <span data-x="concept-task">task</span> in a <span>browsing context</span> <span>event
loop</span> is associated with a <code>Document</code>; if the task was queued in the context of
- an element, then it is the element's <code>Document</code>; if the task was queued in the context
+ an element, then it is the element's <span>node document</span>; if the task was queued in the context
of a <span>browsing context</span>, then it is the <span>browsing context</span>'s <span>active
document</span> at the time the task was queued; if the task was queued by or for a <span
data-x="concept-script">script</span> then the document is the <span>responsible document</span>
@@ -85144,7 +85130,7 @@
<li>
<p>If <var>H</var> is an element's <span data-x="event handlers">event
- handler</span>, then let <var>element</var> be the element, and <var>document</var> be the element's <code>Document</code>.</p>
+ handler</span>, then let <var>element</var> be the element, and <var>document</var> be the element's <span>node document</span>.</p>
<p>Otherwise, <var>H</var> is a <code>Window</code> object's <span data-x="event
handlers">event handler</span>: let <var>element</var> be null, and let <var>document</var> be the <code>Document</code> most recently associated with that
@@ -93008,10 +92994,10 @@
created.</p>
<p>Whenever a <code>Document</code> <var>d</var> is <dfn data-x="add a document to the
- worker's documents">added to the worker's <code>Document</code>s</dfn>, the user agent must, for
+ worker's Documents">added to the worker's <code>Document</code>s</dfn>, the user agent must, for
each worker <var>q</var> in the list of <span>the worker's workers</span> whose list of
<span>the worker's <code>Document</code>s</span> does not contain <var>d</var>, <span
- data-x="add a document to the worker's documents">add <var>d</var> to <var>q</var>'s <code>WorkerGlobalScope</code> owner's list of <span>the worker's
+ data-x="add a document to the worker's Documents">add <var>d</var> to <var>q</var>'s <code>WorkerGlobalScope</code> owner's list of <span>the worker's
<code>Document</code>s</span></span>.</p> <!-- suggestions welcome on making this sentence into
understandable English -->
@@ -93545,7 +93531,7 @@
<li><p>Let <var>docs</var> be the <span>list of relevant <code>Document</code> objects to
add</span> given the <span>incumbent settings object</span>.</p></li>
- <li><p><span data-x="add a document to the worker's documents">Add to <var>worker global
+ <li><p><span data-x="add a document to the worker's Documents">Add to <var>worker global
scope</var>'s list of <span>the worker's <code>Document</code>s</span></span> the
<code>Document</code> objects in <var>docs</var>.</p></li>
@@ -93706,7 +93692,7 @@
<li>
- <p><span data-x="add a document to the worker's documents">Add to <var>worker global
+ <p><span data-x="add a document to the worker's Documents">Add to <var>worker global
scope</var>'s list of <span>the worker's <code>Document</code>s</span></span> the
<code>Document</code> objects in <var>docs</var>.</p>
@@ -93768,7 +93754,7 @@
<li>
- <p><span data-x="add a document to the worker's documents">Add to <var>worker global
+ <p><span data-x="add a document to the worker's Documents">Add to <var>worker global
scope</var>'s list of <span>the worker's <code>Document</code>s</span></span> the
<code>Document</code> objects in <var>docs</var>.</p>
@@ -94380,7 +94366,7 @@
<dd>
<p>User agents may restrict access to the <code data-x="dom-localStorage">localStorage</code>
- objects to scripts originating at the domain of the top-level document of the <span>browsing
+ objects to scripts originating at the domain of the <span>active document</span> of the <span>top-level browsing
context</span>, for instance denying access to the API for pages from other domains running in
<code>iframe</code>s.</p>
@@ -99782,8 +99768,8 @@
<code>HTMLUnknownElement</code>. Elements in other namespaces whose interface is not defined by
that namespace's specification must use the interface <code>Element</code>.</p>
- <p>The <code data-x="dom-Node-ownerDocument">ownerDocument</code> of the newly created element
- must be the same as that of the <var>intended parent</var>.</p>
+ <p>The <span>node document</span> of the newly created element
+ must be the <span>node document</span> of the <var>intended parent</var>.</p>
</li>
@@ -99987,7 +99973,7 @@
location</var>, then append <var>data</var> to that <code>Text</code> node's data.</p>
<p>Otherwise, create a new <code>Text</code> node whose data is <var>data</var> and
- whose <code data-x="dom-Node-ownerDocument">ownerDocument</code> is the same as that of the
+ whose <span>node document</span> is the same as that of the
element in which the <var>adjusted insertion location</var> finds itself, and insert
the newly created node at the <var>adjusted insertion location</var>.</p>
@@ -100053,7 +100039,7 @@
insertion location</var> be the <span>appropriate place for inserting a node</span>.</p></li>
<li><p>Create a <code>Comment</code> node whose <code data-x="">data</code> attribute is set to
- <var>data</var> and whose <code data-x="dom-Node-ownerDocument">ownerDocument</code> is
+ <var>data</var> and whose <span>node document</span> is
the same as that of the node in which the <var>adjusted insertion location</var> finds
itself.</p>
@@ -100369,8 +100355,7 @@
<dt>Anything else</dt>
<dd>
- <p>Create an <code>html</code> element whose <code
- data-x="dom-Node-ownerDocument">ownerDocument</code> is the <code>Document</code> object. Append
+ <p>Create an <code>html</code> element whose <span>node document</span> is the <code>Document</code> object. Append
it to the <code>Document</code> object. Put this element in the <span>stack of open
elements</span>.</p>
@@ -104915,10 +104900,10 @@
<li>
<p>If there is a <var data-x="concept-frag-parse-context">context</var> element, and the
- <code>Document</code> of the <var data-x="concept-frag-parse-context">context</var> element is in
+ <span>node document</span> of the <var data-x="concept-frag-parse-context">context</var> element is in
<span>quirks mode</span>, then let the <code>Document</code> be in <span>quirks mode</span>.
Otherwise, if there is a <var data-x="concept-frag-parse-context">context</var> element, and the
- <code>Document</code> of the <var data-x="concept-frag-parse-context">context</var> element is in
+ <span>node document</span> of the <var data-x="concept-frag-parse-context">context</var> element is in
<span>limited-quirks mode</span>, then let the <code>Document</code> be in <span>limited-quirks
mode</span>. Otherwise, leave the <code>Document</code> in <span>no-quirks mode</span>.</p>
@@ -105235,8 +105220,8 @@
XML is not formally extensible in the manner that is needed for <code>template</code> processing.
<ref spec=XML></p>
- <p>When an <span>XML parser</span> creates a <code>Node</code> object, its <code
- data-x="dom-Node-ownerDocument">ownerDocument</code> must be set to the <code>Document</code> of
+ <p>When an <span>XML parser</span> creates a <code>Node</code> object, its <span>node document</span>
+ must be set to the <span>node document</span> of
the node into which the newly created node is to be inserted.</p>
<p>Certain algorithms in this specification <dfn data-x="feed the parser">spoon-feed the
@@ -105567,7 +105552,7 @@
<p>For each property in the table below, given a <code>body</code> element, the first attribute
that exists <span>maps to the pixel length property</span> on the <code>body</code> element. If
none of the attributes for a property are found, or if the value of the attribute that was found
- cannot be parsed successfully, then, if the <code>body</code> element's <code>Document</code>'s
+ cannot be parsed successfully, then, if the <code>body</code> element's <span>node document</span>'s
<span>browsing context</span> does not have its <span>seamless browsing context flag</span> set, a
default value of 8px is expected to be used for that property instead.</p>
@@ -105610,7 +105595,7 @@
<td><code>body</code> element's <code data-x="attr-body-leftmargin">leftmargin</code> attribute
</table>
- <p>If the <code>body</code> element's <code>Document</code>'s <span>browsing context</span> is a
+ <p>If the <code>body</code> element's <span>node document</span>'s <span>browsing context</span> is a
<span>nested browsing context</span>, and the <span>browsing context container</span> of that
<span>nested browsing context</span> is a <code>frame</code> or <code>iframe</code> element, then
the <dfn>container frame element</dfn> of the <code>body</code> element is that <code>frame</code>
@@ -106830,7 +106815,7 @@
<p>When a user agent is to <dfn>restart the animation</dfn> for an <code>img</code> element
showing an animated image, all animated images with the same <span>absolute URL</span> and the
- same image data in that <code>img</code> element's <code>Document</code> are expected to restart
+ same image data in that <code>img</code> element's <span>node document</span> are expected to restart
their animation from the beginning.</p>
<hr>
@@ -108578,9 +108563,9 @@
<li>The element is not <span>in a <code>Document</code></span>.</li>
- <li>The element's <code>Document</code> is not <span>fully active</span>.</li>
+ <li>The element's <span>node document</span> is not <span>fully active</span>.</li>
- <li id="sandboxPluginApplet">The element's <code>Document</code>'s <span>active sandboxing flag
+ <li id="sandboxPluginApplet">The element's <span>node document</span>'s <span>active sandboxing flag
set</span> has its <span>sandboxed plugins browsing context flag</span> set.</li>
<li>The element has an ancestor <span>media element</span>.</li>
@@ -108972,7 +108957,7 @@
<p>Any <span data-x="navigate">navigation</span> required of the user agent in the <span>process
the <code>frame</code> attributes</span> algorithm must be completed as an <span>explicit
- self-navigation override</span> and with the <code>frame</code> element's document's
+ self-navigation override</span> and with the <code>frame</code> element's <span>node document</span>'s
<span>browsing context</span> as the <span>source browsing context</span>.</p>
<p>Furthermore, if the <span>active document</span> of the element's <span>child browsing
More information about the Commit-Watchers
mailing list