Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a portion of responseType #17

Closed

Conversation

YarnSaw
Copy link

@YarnSaw YarnSaw commented Oct 21, 2024

Implements https://xhr.spec.whatwg.org/#the-responsetype-attribute, up to the responseTypes of '', 'text', and 'arraybuffer'.

Includes some changes to response to use the new responseType, as well as better conformance for when values become available (only once the state is done does response become available, not being updated as each data segment arrives)

eroosenmaallen and others added 3 commits October 21, 2024 14:20
x-co-authored-by: Paul Ringseth <[email protected]>
Handle definition of responseType with a getter/setter, and change when this.response is set to conform to the XML spec. Only responseTypes of '', 'text', and 'arraybuffer' were fully added
@YarnSaw
Copy link
Author

YarnSaw commented Oct 21, 2024

This is indirectly tested by tests/test-utf8-tearing.js, since one of it's cases uses an arraybuffer. If you'd like a more explicit test for the changes here, please let me know!

@YarnSaw
Copy link
Author

YarnSaw commented Oct 22, 2024

Man I think I'm blind. Just realized that a full implementation of this was done by Paul in #16.

Closing this MR.

@YarnSaw YarnSaw closed this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants