W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

[Bug 14288] document.documentElement.insertAdjacentHTML specs WebKit behavior instead of IE behavior

From: <bugzilla@jessica.w3.org>
Date: Mon, 03 Oct 2011 15:33:52 +0000
To: public-webapps@w3.org
Message-Id: <E1RAkWe-0007Uu-UA@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14288

Ms2ger <Ms2ger@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
         OS/Version|Linux                       |All

--- Comment #5 from Ms2ger <Ms2ger@gmail.com> 2011-10-03 15:33:51 UTC ---
I am told that

  document.documentElement.insertAdjacentHTML("beforebegin", "<div></div>")

adds a second element child to the document in IE8 and IE9, and throws (per
spec) in IE10, and that it throws in the null-parent case as well. That is, IE
appears to match Gecko.

After discussion with Henri, I went with throwing in both cases.

https://bitbucket.org/ms2ger/dom-parsing-and-serialization/changeset/ee0ba6d66250

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Monday, 3 October 2011 15:33:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:48 GMT