Navigation Menu

Skip to content

Commit

Permalink
[] (0) Handle outerHTML on elements inside DocumentFragments, because…
Browse files Browse the repository at this point in the history
… 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
Hixie committed Aug 10, 2008
1 parent 3530ce1 commit 71ac00f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
12 changes: 9 additions & 3 deletions index
Expand Up @@ -9064,11 +9064,17 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
object, throw a <code>NO_MODIFICATION_ALLOWED_ERR</code> exception and
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>
Expand Down
19 changes: 14 additions & 5 deletions source
Expand Up @@ -7017,14 +7017,23 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0

</li>

<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>

Expand Down

0 comments on commit 71ac00f

Please sign in to comment.