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 26261 - Unclear about Unicode vs ASCII serialization
Summary: Unclear about Unicode vs ASCII serialization
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-03 15:42 UTC by contributor
Modified: 2014-07-17 08:35 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2014-07-03 15:42:06 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html
Multipage: http://www.whatwg.org/C#dom-document-domain
Complete: http://www.whatwg.org/c#dom-document-domain
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html

Comment:
Unclear about Unicode vs ASCII serialization

Posted from: 178.83.154.60 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0
Comment 1 Ian 'Hixie' Hickson 2014-07-07 21:50:00 UTC
Can you elaborate?
Comment 2 Anne 2014-07-11 16:40:07 UTC
When you get document.domain, it's unclear how the domain is to be serialized.
Comment 3 Ian 'Hixie' Hickson 2014-07-15 18:33:43 UTC
It isn't. The attribute's value is "the document's domain", which is a string.
Comment 4 Anne 2014-07-16 11:52:24 UTC
Fair. Then the question applies to "the document's domain". But we might need to expose different strings in different places I suspect due to legacy.
Comment 5 Ian 'Hixie' Hickson 2014-07-16 19:54:42 UTC
"the document's domain" is set from the "host" component of the origin tuple, which is also a string, and which is set in a variety of places. Are any of those places ambiguous? If they are, we have a much bigger problem on our hands since that affects the security model.
Comment 6 Anne 2014-07-17 08:35:52 UTC
I guess that's fair, so they should all be ASCII then per default parsing rules.