- From: <bugzilla@jessica.w3.org>
- Date: Mon, 22 Dec 2014 15:31:12 +0000
- To: www-dom@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27684
Bug ID: 27684
Summary: Handling of .contentType is not interoperable
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: DOM
Assignee: annevk@annevk.nl
Reporter: robin@w3.org
QA Contact: public-webapps-bugzilla@w3.org
CC: mike@w3.org, www-dom@w3.org
We're observing pretty varying behaviour for .contentType, looking at this
test:
http://w3c-test.org/dom/nodes/Document-createElement-namespace.html
Parts of the failures are for synthetic documents. For those, both WebKit and
Blink use the content type that would "ideally" match the namespace given to
createDocument() instead of "application/xml". I somehow suspect that the issue
(at least in the way in which it is implemented) is related to bug 19431.
Other failures, notably in Blink, apply to remotely-loaded documents, notably
involving attempts to change the content type by swapping the root element
while loading:
Vanilla load XHTML as application/xml:
http://w3c-test.org/dom/nodes/Document-createElement-namespace-tests/xhtml.xml
Try changing to SVG:
http://w3c-test.org/dom/nodes/Document-createElement-namespace-tests/xhtml_ns_changed.xml
Try changing to without namespace:
http://w3c-test.org/dom/nodes/Document-createElement-namespace-tests/xhtml_ns_removed.xml
The externally-loaded ones likely ought to be handled by other specifications
that build DOMs (in this case HTML), but I am including them in case the
additional data helps.
The synthetic cases however ought to be defined by the DOM, and we're lacking
interoperability today. Gecko sticks to the spec (Unless stated otherwise, a
document's (...) content type is "application/xml") but it would seem that no
one else does. It is worth tracking whether this is something that implementers
wish to align on or not.
--
You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 22 December 2014 15:31:14 UTC