whatwg / xhr

XMLHttpRequest Standard
https://xhr.spec.whatwg.org/
Other
315 stars 131 forks source link

Define XML encoding sniffing better #62

Open KiChjang opened 8 years ago

KiChjang commented 8 years ago

It's not clear to me which algorithm from the XML spec that step 4 of the text response is referring to. Is it this or something else?

annevk commented 8 years ago

I guess we should clarify that. It's basically MIME type followed by finding it in <?xml ...?> (and perhaps there should be a limit for this on the amount of bytes scanned, but probably not needed).

Not sure if we should have sniffing here.