For IPv6 address, URI will be like http://[2001:240:629::6]/foo.html. On IE and Firefox, when open the URI, window.location.hostname will be "2001:240:629::6". But Safari 5.0.3 (6533.19.4) and Chrome 10.0.612.3 returns "[2001:240:629::6]". Mozilla explicitly says remove brackets from hostname. https://developer.mozilla.org/en/window.location I think, it is because hostname means DNS name. HTML5 doesn't say about this yet. http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#dom-uda-hostname
The url spec went with adding the brackets: https://url.spec.whatwg.org/#concept-host-serializer So I think this bug report is invalid these days.
Indeed.