You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure whether this is the correct place for requesting changes to the standard or not. If not please give me a direction.
The story starts from a rejected proposal at whatwg/fetch#16. With the new Fetch API, programmars need to parse XML streams by themselves. However, current DOMParser.parseFromString supports UTF-8 XML documents only. [1] The result is that there's no way to handle non-UTF8 XML documents correctly with Fetch API. I propose to add a new method that accepts typed arrays. Mozilla's private API DOMParser.parseFromBuffer looks promising. [2] With that I can do this:
I'm not sure whether this is the correct place for requesting changes to the standard or not. If not please give me a direction.
The story starts from a rejected proposal at whatwg/fetch#16. With the new Fetch API, programmars need to parse XML streams by themselves. However, current
DOMParser.parseFromString
supports UTF-8 XML documents only. [1] The result is that there's no way to handle non-UTF8 XML documents correctly with Fetch API. I propose to add a new method that accepts typed arrays. Mozilla's private APIDOMParser.parseFromBuffer
looks promising. [2] With that I can do this:[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1287071
[2] https://dxr.mozilla.org/mozilla-central/source/dom/webidl/DOMParser.webidl
The text was updated successfully, but these errors were encountered: