[Bug 29175] New: Special rules for HTML element in HTML document for Element.insertAdjacentHTML() are necessary?

[email protected] Sat, 03 Oct 2015 02:24:02 +0000
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29175

            Bug ID: 29175
           Summary: Special rules for HTML element in HTML document for
                    Element.insertAdjacentHTML() are necessary?
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM Parsing and Serialization
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]
  Target Milestone: ---

Firefox is the only current browser which complies these requirements (step
2.)?
http://www.w3.org/TR/DOM-Parsing/#dfn-dom-element-insertadjacenthtml

Small test:

<script type = "text/javascript">

        var newFragment = document.createDocumentFragment();
        newFragment.appendChild(document.createElement("html"));

        newFragment.firstChild.insertAdjacentHTML("afterbegin", "<p>test");
        alert(newFragment.firstChild.innerHTML);

</script>

Firefox, IE6/IE7/IE8/ : <p>test</p>
Chrome, IE11, Opera (Presto): <head></head><body><p>test</p></body>

I don't have access to Safari, what WebKit returns? What Edge returns?

-- 
You are receiving this mail because:
You are on the CC list for the bug.