-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Location: port property incorrectly documented #35732
Comments
We should add the same info as https://developer.mozilla.org/en-US/docs/Web/API/URL/port. |
Even that could use rewording.
Maybe instead something like "The port property is a string which is either "" or the port number of the URL." A |
And another issue is that the example is explaining HTMLAnchorElement.port, not Location.port |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Location/port
What specific section or headline is this issue about?
Example and description
What information was incorrect, unhelpful, or incomplete?
Example and description are incorrect according to Firefox, Chrome, and Safari.
Description:
Example:
What did you expect to see?
Port seems to be null if the url has the default port for the protocol, not just if it's unset.
If the example was correct, it should probably have an indication of WHEN it changed.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/location/port
The text was updated successfully, but these errors were encountered: