-
Notifications
You must be signed in to change notification settings - Fork 332
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
Proposal: response.xml() #16
Comments
See the Note
A network layer should not be dependent on an XML parser. |
Sorry, didn't mean to close, that should be @annevk's prerogative. |
I am not sure what this note means. As I understand, a HTML Parser could build a DOM Tree as it receives data from the request, and the intermediate state of this tree exposed to the user? (sorry if I am completely misunderstanding) Also I don't see why exactly for XML this proposal is invalid. An XML document meaningful (and valid) once it is entirely loaded, right? And why is this valid for JSON and not for XML? Florent |
JSON is low on complexity and JavaScript has JSON built-in. |
I thought it would have targeted browser environments (so parsers are built in them). Edit: If you could explain a bit further (with links maybe) so I can be more pertinent next time I propose something else, I would be thankful. Florent |
The idea is to have some amount of layering in APIs. Say you implement |
Oh, I see now. Thanks for this explanation. Florent |
@annevk so the reason for the lack of Id say this should be reopened. |
@Mouvedia no, the reason for lack of that is that it would be poor architecture. It would be better to have a way to create a document from a stream and use that. |
@annevk are you saying it belongs on whatwg/streams? |
# This is the 1st commit message: # This is a combination of 23 commits. # This is the 1st commit message: Integrate CORP and COEP This is part of the introduction of COEP (whatwg/html#5454). The CORP check now takes COEP into account. Also, responses coming from service workers are checked. # This is the commit message #2: Update fetch.bs Co-authored-by: Domenic Denicola <d@domenic.me> # This is the commit message #3: Update fetch.bs Co-authored-by: Domenic Denicola <d@domenic.me> # This is the commit message #4: fix # This is the commit message #5: fix # This is the commit message #6: fix # This is the commit message #7: fix # This is the commit message #8: fix # This is the commit message #9: fix # This is the commit message #10: fix # This is the commit message #11: fix # This is the commit message #12: fix # This is the commit message #13: fix # This is the commit message #14: fix # This is the commit message #15: fix # This is the commit message #16: fix # This is the commit message #17: fix # This is the commit message #18: Update fetch.bs Co-authored-by: Anne van Kesteren <annevk@annevk.nl> # This is the commit message #19: Update fetch.bs Co-authored-by: Anne van Kesteren <annevk@annevk.nl> # This is the commit message #20: fix # This is the commit message #21: fix # This is the commit message #22: fix # This is the commit message #23: fix # This is the commit message #2: fix
Since
XMLHttpRequest.prototype.responseXML
used to exist, I guessresponse.xml()
should exist too, right?Florent
The text was updated successfully, but these errors were encountered: