This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20036 - Should window.location.href return ASCII (punycode) or UTF-8 ?
Summary: Should window.location.href return ASCII (punycode) or UTF-8 ?
Status: RESOLVED DUPLICATE of bug 18910
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: PC Windows 3.1
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 13:55 UTC by Leif Halvard Silli
Modified: 2012-12-21 14:32 UTC (History)
1 user (show)

See Also:


Attachments

Description Leif Halvard Silli 2012-11-21 13:55:20 UTC
Per April 2012, then Firefox and IE8 returns UTF-8 string, whereas Safari/Chrome (Webkit) and Opera returns ASCII (punicode). 

There seems to be some evidence that things break - for authors - when UA returns UTF-8, see https://bugzilla.mozilla.org/show_bug.cgi?id=743488

But I am not against the Firefox/IE8 behavior. (Have per now not tested IE9 and IE10.)
Comment 1 Anne 2012-11-21 16:03:51 UTC
The plan is ASCII. With some kind of API for code points.

Opera does Unicode too by the way, but only sometimes (e.g. for http://æ/). Probably only when IDNA2008 considers it safe for display, which is one hairy algorithm.
Comment 2 Anne 2012-12-21 14:32:17 UTC

*** This bug has been marked as a duplicate of bug 18910 ***