Re: [w3c/DOM-Parsing] Sort out what's happening with innerHTML on <script> and <style> in XML documents (#6)

In Edge, with the following saved as an XML file:
```html
<root>
  <script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript"><![CDATA[
    onload = function() {
      var style = document.createElementNS("http://www.w3.org/1999/xhtml", "style");
      style.innerHTML = "<foo></foo>";
      document.documentElement.appendChild(style);
      alert(style.firstChild);
    }
    ]]>
  </script>
</root>
```
I get an `HTMLUnknownElement`. Confirmed that in Chrome, Firefox, I get a `#text` node...

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/DOM-Parsing/issues/6#issuecomment-214446445

Received on Monday, 25 April 2016 17:14:29 UTC