Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upServo isn't strict enough about what XMLHttpRequest response XML it will accept #24923
Labels
Projects
Comments
|
https://xhr.spec.whatwg.org/#document-response step 5 says "the result of running the XML parser", with explanatory language that this should fail if not well-formed. Servo's XMLHttpRequest::document_response calls ServoParser::parse_xml_document here, which does not have any way of returning a failure result. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WPT xhr/responsexml-basic, responsexml-media-type, and responsexml-non-well-formed reveal cases where an XMLHttpRequest shouldn't be producing an XML document but is:
By WPT expectations and other browser behavior, these shouldn't parse into an XML document when they're the response to an XHR.