- From: <bugzilla@jessica.w3.org>
- Date: Wed, 22 Dec 2010 02:08:19 +0000
- To: public-html@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11587
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,
public-html@w3.org
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Section:
http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#dom-uda-hostname
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.
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