Permalink
Browse files

[] (0) Handle outerHTML on elements inside DocumentFragments, because…

… I'm stupid and zcorpan was paying attention.

git-svn-id: http://svn.whatwg.org/webapps@2035 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 3530ce1 commit 71ac00fef44ecfee816b4039ea56cc5740a78d7c @Hixie Hixie committed Aug 10, 2008
Showing with 23 additions and 8 deletions.
  1. +9 −3 index
  2. +14 −5 source
View
12 index
@@ -9065,10 +9065,16 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
abort these steps.</p>
<li>
+ <p>Let <var title="">parent</var> be <var title="">target</var>'s parent
+ node, unless that is a <code>DocumentFragment</code> node, in which case
+ let <var title="">parent</var> be an arbitrary <code><a
+ href="#body0">body</a></code> element.</p>
+
+ <li>
<p>Invoke the <a href="#html-fragment0">HTML fragment parsing
- algorithm</a>, with <var title="">target</var>'s parent element as the
- <var title="">context</var> element and the string being assigned into
- the <code title=dom-outerHTML-HTML><a
+ algorithm</a>, with <var title="">parent</var> as the <var
+ title="">context</var> element and the string being assigned into the
+ <code title=dom-outerHTML-HTML><a
href="#outerhtml0">outerHTML</a></code> attribute as the <var
title="">input</var>. Let <var title="">new children</var> be the result
of this algorithm.</p>
View
19 source
@@ -7019,12 +7019,21 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<li>
+ <p>Let <var title="">parent</var> be <var title="">target</var>'s
+ parent node, unless that is a <code>DocumentFragment</code> node,
+ in which case let <var title="">parent</var> be an arbitrary
+ <code>body</code> element.</p>
+
+ </li>
+
+ <li>
+
<p>Invoke the <span>HTML fragment parsing algorithm</span>, with
- <var title="">target</var>'s parent element as the <var
- title="">context</var> element and the string being assigned into
- the <code title="dom-outerHTML-HTML">outerHTML</code> attribute as
- the <var title="">input</var>. Let <var title="">new
- children</var> be the result of this algorithm.</p>
+ <var title="">parent</var> as the <var title="">context</var>
+ element and the string being assigned into the <code
+ title="dom-outerHTML-HTML">outerHTML</code> attribute as the <var
+ title="">input</var>. Let <var title="">new children</var> be the
+ result of this algorithm.</p>
</li>

0 comments on commit 71ac00f

Please sign in to comment.