[html5] r8351 - [giow] (1) Make the template contents of <template> elements in docs created by [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Dec 12 15:47:35 PST 2013
Author: ianh
Date: 2013-12-12 15:47:33 -0800 (Thu, 12 Dec 2013)
New Revision: 8351
Modified:
complete.html
index
source
Log:
[giow] (1) Make the template contents of <template> elements in docs created by createDocument() not have live bindings.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23990
Affected topics: HTML
Modified: complete.html
===================================================================
--- complete.html 2013-12-12 22:58:21 UTC (rev 8350)
+++ complete.html 2013-12-12 23:47:33 UTC (rev 8351)
@@ -52849,7 +52849,8 @@
<ol><li>
- <p>If <var title="">doc</var> has an associated <a href=#browsing-context>browsing context</a>, run these substeps:</p>
+ <p>If <var title="">doc</var> is not a <code><a href=#document>Document</a></code> created by this algorithm, run
+ these substeps:</p>
<ol><li>
@@ -52857,7 +52858,8 @@
document</dfn> then run these substeps:</p>
<ol><li><p>Let <var title="">new doc</var> be a new <code><a href=#document>Document</a></code> (that does not have a
- <a href=#browsing-context>browsing context</a>).</li>
+ <a href=#browsing-context>browsing context</a>). This is "a <code><a href=#document>Document</a></code> created by this algorithm"
+ for the purposes of the step above.</li>
<li><p>If <var title="">doc</var> is an <a href=#html-documents title="HTML documents">HTML document</a>, mark
<var title="">new doc</var> as an <a href=#html-documents title="HTML documents">HTML document</a>
@@ -52870,10 +52872,12 @@
<li><p>Set <var title="">doc</var> to <var title="">doc</var>'s <a href=#associated-inert-template-document>associated inert
template document</a>.</li>
- </ol><p class=note>Each <code><a href=#document>Document</a></code> associated with a <a href=#browsing-context>browsing context</a> thus
- gets a single <code><a href=#document>Document</a></code> to act as its proxy for owning the <a href=#template-contents>template
- contents</a> of all its <code><a href=#the-template-element>template</a></code> elements, so that they aren't in a
- <a href=#browsing-context>browsing context</a> and thus remain inert (e.g. scripts do not run).</p>
+ </ol><p class=note>Each <code><a href=#document>Document</a></code> not created by this algorithm thus gets a single
+ <code><a href=#document>Document</a></code> to act as its proxy for owning the <a href=#template-contents>template contents</a> of all
+ its <code><a href=#the-template-element>template</a></code> elements, so that they aren't in a <a href=#browsing-context>browsing context</a> and
+ thus remain inert (e.g. scripts do not run). Meanwhile, <code><a href=#the-template-element>template</a></code> elements inside
+ <code><a href=#document>Document</a></code> objects that <em>are</em> created by this algorithm just reuse the same
+ <code><a href=#document>Document</a></code> owner for their contents.</p>
</li>
Modified: index
===================================================================
--- index 2013-12-12 22:58:21 UTC (rev 8350)
+++ index 2013-12-12 23:47:33 UTC (rev 8351)
@@ -52849,7 +52849,8 @@
<ol><li>
- <p>If <var title="">doc</var> has an associated <a href=#browsing-context>browsing context</a>, run these substeps:</p>
+ <p>If <var title="">doc</var> is not a <code><a href=#document>Document</a></code> created by this algorithm, run
+ these substeps:</p>
<ol><li>
@@ -52857,7 +52858,8 @@
document</dfn> then run these substeps:</p>
<ol><li><p>Let <var title="">new doc</var> be a new <code><a href=#document>Document</a></code> (that does not have a
- <a href=#browsing-context>browsing context</a>).</li>
+ <a href=#browsing-context>browsing context</a>). This is "a <code><a href=#document>Document</a></code> created by this algorithm"
+ for the purposes of the step above.</li>
<li><p>If <var title="">doc</var> is an <a href=#html-documents title="HTML documents">HTML document</a>, mark
<var title="">new doc</var> as an <a href=#html-documents title="HTML documents">HTML document</a>
@@ -52870,10 +52872,12 @@
<li><p>Set <var title="">doc</var> to <var title="">doc</var>'s <a href=#associated-inert-template-document>associated inert
template document</a>.</li>
- </ol><p class=note>Each <code><a href=#document>Document</a></code> associated with a <a href=#browsing-context>browsing context</a> thus
- gets a single <code><a href=#document>Document</a></code> to act as its proxy for owning the <a href=#template-contents>template
- contents</a> of all its <code><a href=#the-template-element>template</a></code> elements, so that they aren't in a
- <a href=#browsing-context>browsing context</a> and thus remain inert (e.g. scripts do not run).</p>
+ </ol><p class=note>Each <code><a href=#document>Document</a></code> not created by this algorithm thus gets a single
+ <code><a href=#document>Document</a></code> to act as its proxy for owning the <a href=#template-contents>template contents</a> of all
+ its <code><a href=#the-template-element>template</a></code> elements, so that they aren't in a <a href=#browsing-context>browsing context</a> and
+ thus remain inert (e.g. scripts do not run). Meanwhile, <code><a href=#the-template-element>template</a></code> elements inside
+ <code><a href=#document>Document</a></code> objects that <em>are</em> created by this algorithm just reuse the same
+ <code><a href=#document>Document</a></code> owner for their contents.</p>
</li>
Modified: source
===================================================================
--- source 2013-12-12 22:58:21 UTC (rev 8350)
+++ source 2013-12-12 23:47:33 UTC (rev 8351)
@@ -58386,7 +58386,8 @@
<li>
- <p>If <var data-x="">doc</var> has an associated <span>browsing context</span>, run these substeps:</p>
+ <p>If <var data-x="">doc</var> is not a <code>Document</code> created by this algorithm, run
+ these substeps:</p>
<ol>
@@ -58398,7 +58399,8 @@
<ol>
<li><p>Let <var data-x="">new doc</var> be a new <code>Document</code> (that does not have a
- <span>browsing context</span>).</p></li>
+ <span>browsing context</span>). This is "a <code>Document</code> created by this algorithm"
+ for the purposes of the step above.</p></li>
<li><p>If <var data-x="">doc</var> is an <span data-x="HTML documents">HTML document</span>, mark
<var data-x="">new doc</var> as an <span data-x="HTML documents">HTML document</span>
@@ -58416,10 +58418,12 @@
</ol>
- <p class="note">Each <code>Document</code> associated with a <span>browsing context</span> thus
- gets a single <code>Document</code> to act as its proxy for owning the <span>template
- contents</span> of all its <code>template</code> elements, so that they aren't in a
- <span>browsing context</span> and thus remain inert (e.g. scripts do not run).</p>
+ <p class="note">Each <code>Document</code> not created by this algorithm thus gets a single
+ <code>Document</code> to act as its proxy for owning the <span>template contents</span> of all
+ its <code>template</code> elements, so that they aren't in a <span>browsing context</span> and
+ thus remain inert (e.g. scripts do not run). Meanwhile, <code>template</code> elements inside
+ <code>Document</code> objects that <em>are</em> created by this algorithm just reuse the same
+ <code>Document</code> owner for their contents.</p>
</li>
More information about the Commit-Watchers
mailing list