Closed Bug 130413 Opened 23 years ago Closed 23 years ago

window.location.hostname won't accept port

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: samuel, Assigned: jst)

Details

Attachments

(1 file)

mozilla tries to resolve the hostname including the port and obviously fails.
(my.site.com:80 not found)
Please provide more info here, we need a testcase that shows this problem. Thanks.
Attached file testcase
I'm pretty sure this is invalid.

The properties of <a> and <area> also have .host and .hostname; there, we (I)
implemented it this way: host can contain port numbers, hostname not.
The spec on Netscape's site is wrong! :-(  NS4 does it the sensible way.
host == hostname + port
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: