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 sending a Document via XMLHttpRequest #9963

Closed
jdm opened this issue Mar 10, 2016 · 2 comments
Closed

Implement sending a Document via XMLHttpRequest #9963

jdm opened this issue Mar 10, 2016 · 2 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Mar 10, 2016

Specification: https://xhr.spec.whatwg.org/#interface-xmlhttprequest and https://xhr.spec.whatwg.org/#dom-xmlhttprequest-send
Code: components/script/dom/webidls/XMLHttpRequest.webidl, components/script/dom/xmlhttprequest.rs (see Send method)
Tests: ./mach test-wpt tests/wpt/web-platform-tests/XMLHttpRequest/
Minimal testcase:

<script>
var x = new XMLHttpRequest();
x.open('POST', location.href, false);
x.send(document);
</script>

And run that from an http server like this minimal python one, where you can inspect the data received in the terminal window.

For implementing the serialization of the document, we should be able to use the existing HTML serialization code. See serialize in components/script/dom/element.rs for an example!

@jdm
Copy link
Member Author

@jdm jdm commented Mar 10, 2016

Note: this is reserved for a potential RGSoC applicant, so please talk with me before starting to work on this!

@jdm
Copy link
Member Author

@jdm jdm commented Apr 10, 2016

Closing in favour of #9490.

@jdm jdm closed this Apr 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.