[whatwg/dom] .createElement's namespace handling doesn't seem to match what UAs do (#264)

https://github.com/whatwg/dom/pull/213 made it rely only on contentType but that isn't what UAs
(Gecko, Blink, Edge at least) do. http://mozilla.pettay.fi/moztests/imagedoc.html
Perhaps contentType should be used only in case Document is non-HTMLDocument.
ImageDocument inherits HTMLDocument, so it is HTMLDocument and should create html elements by default.
I didn't test svg handling.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/264

Received on Monday, 6 June 2016 17:36:49 UTC