From 71ac00fef44ecfee816b4039ea56cc5740a78d7c Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Sun, 10 Aug 2008 22:28:59 +0000 Subject: [PATCH] [] (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 --- index | 12 +++++++++--- source | 19 ++++++++++++++----- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/index b/index index 1b8df36c6c2..1bda13d2bc7 100644 --- a/index +++ b/index @@ -9064,11 +9064,17 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0 object, throw a NO_MODIFICATION_ALLOWED_ERR exception and abort these steps.

+
  • +

    Let parent be target's parent + node, unless that is a DocumentFragment node, in which case + let parent be an arbitrary body element.

    +
  • Invoke the HTML fragment parsing - algorithm, with target's parent element as the - context element and the string being assigned into - the , with parent as the context element and the string being assigned into the + outerHTML attribute as the input. Let new children be the result of this algorithm.

    diff --git a/source b/source index 9437285a7b0..6318aedc851 100644 --- a/source +++ b/source @@ -7017,14 +7017,23 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
  • +
  • + +

    Let parent be target's + parent node, unless that is a DocumentFragment node, + in which case let parent be an arbitrary + body element.

    + +
  • +
  • Invoke the HTML fragment parsing algorithm, with - target's parent element as the context element and the string being assigned into - the outerHTML attribute as - the input. Let new - children be the result of this algorithm.

    + parent as the context + element and the string being assigned into the outerHTML attribute as the input. Let new children be the + result of this algorithm.