This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
data: URLs almost always successfully parse per the URL parser, but the URL processing step can go wrong. Maybe if that goes wrong it should be a 400 Bad Request? Or maybe 500 Internal Server Error? So e.g. data:test parses fine as a URL, but does not parse fine as a data: URL.
This question relates to http://xhr.spec.whatwg.org/#data:-urls-and-http by the way.
(In reply to comment #0) > data: URLs almost always successfully parse per the URL parser, but the URL > processing step can go wrong. Maybe if that goes wrong it should be a 400 > Bad Request? Or maybe 500 Internal Server Error? > > So e.g. > > data:test > > parses fine as a URL, but does not parse fine as a data: URL. Sounds right to me. However, I would just require 4xx (and state that 400 is fine), in case we ever define a more specific status code.
This is fixed, also in XHR for now. Failure to parse will generate a network error.