Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement sending a Document via XMLHttpRequest #9963
Closed
Labels
Comments
|
Note: this is reserved for a potential RGSoC applicant, so please talk with me before starting to work on this! |
|
Closing in favour of #9490. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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(seeSendmethod)Tests:
./mach test-wpt tests/wpt/web-platform-tests/XMLHttpRequest/Minimal testcase:
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
serializeincomponents/script/dom/element.rsfor an example!