[Bug 11587] New: window.location.hostname should remove brackets of IPv6 host


           Summary: window.location.hostname should remove brackets of
                    IPv6 host
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: naruse@airemix.jp
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,

Specification: http://www.whatwg.org/specs/web-apps/current-work/

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
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.

I think, it is because hostname means DNS name.
So HTML5 spec should describe about this.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Wednesday, 22 December 2010 02:08:21 UTC