#79 ✓resolved
Liam Clancy (metafeather)

document.location.host value always ':'

Reported by Liam Clancy (metafeather) | November 24th, 2009 @ 07:23 AM | in 1.2.x

The logic for determining the document.location.host has a misplaced ) which results in the value returned always being :

For example if the URL is http://some.domain.name:8080/my/file.html the values below should be:

document.location.hostname -> some.domain.name
document.location.port -> 8080
document.location.host -> some.domain.name:8080

the common exception in browsers is that ports 80 and 443 are always hidden if the protocols are http and https respectively, even if manual entered into the URL.

The correct logic is used for set hostname() and can be used for get host() in:

src/html/anchor.js
src/window/location.js

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Pages