We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Question: The protocol of an url http://a.b.c should be http or http:?
http://a.b.c
http
http:
Observation: Given an url http://a.b.c, the following table shows the different parsing results of protocol among Node, Python and Java:
protocol
Note:
Current parsing logic: https://github.com/nodejs/node/blob/master/lib/url.js#L39
An example:
import URL from 'url'; let parsedUrl = URL.parse('http://a.b.c') Url { protocol: 'http:', ... }
The text was updated successfully, but these errors were encountered:
Including the : complies with the WHATWG URL Standard:
:
The protocol attribute’s getter must return context object url’s scheme, followed by ":".
/cc @jasnell
@maxis1718 You may also be interested in the currently-being-worked-on URL parser that is intended to be fully WHATWG URL compliant. (The current one pre-dates the spec and is not fully compliant.)
Sorry, something went wrong.
@Trott, cool! then I should create an issue for python 😎
No branches or pull requests
Question: The protocol of an url
http://a.b.c
should behttp
orhttp:
?Observation: Given an url
http://a.b.c
, the following table shows the different parsing results ofprotocol
among Node, Python and Java:http:
http
http
Note:
Current parsing logic: https://github.com/nodejs/node/blob/master/lib/url.js#L39
An example:
The text was updated successfully, but these errors were encountered: