<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23005</bug_id>
          
          <creation_ts>2013-08-19 11:04:36 +0000</creation_ts>
          <short_desc>IDNA-related bits should instead reference terminology from http://url.spec.whatwg.org/</short_desc>
          <delta_ts>2014-01-07 21:12:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#unicode-serialization-of-an-origin</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>23891</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>92261</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-08-19 11:04:36 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html
Multipage: http://www.whatwg.org/C#unicode-serialization-of-an-origin
Complete: http://www.whatwg.org/c#unicode-serialization-of-an-origin
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
IDNA-related bits should instead reference terminology from
http://url.spec.whatwg.org/

Posted from: 207.218.72.65 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:26.0) Gecko/20100101 Firefox/26.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95586</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-30 23:24:55 +0000</bug_when>
    <thetext>Do you have specific text in mind, or should I work it out?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95604</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-10-31 10:54:43 +0000</bug_when>
    <thetext>http://www.whatwg.org/specs/web-apps/current-work/#unicode-serialization-of-an-origin
-&gt; It seems this algorithm is also defined in https://tools.ietf.org/html/rfc6454 Why is it still in HTML? Or are we abandoning the RFC per my emails to the WHATWG list? You could use http://url.spec.whatwg.org/#concept-domain-to-unicode and then serialize the output if you decide to keep it. Note that this requires the host part of the origin to be stored as a sequence of labels or IPv6. I.e. the result of http://url.spec.whatwg.org/#concept-host-parser

http://www.whatwg.org/specs/web-apps/current-work/#ascii-serialization-of-an-origin
-&gt; See above. You could use http://url.spec.whatwg.org/#concept-domain-to-ascii and then serialize the output if you decide to keep it.

http://www.whatwg.org/specs/web-apps/current-work/#dom-document-domain
-&gt; You want to use http://url.spec.whatwg.org/#concept-host-parser and http://url.spec.whatwg.org/#concept-host-serializer here. And maybe keep internal state on the non-serialized value. You cannot really say &quot;if value is IPv4&quot; as IPv4 and domain names are not distinguishable at the syntax level. A host is either IPv6 or a set of domain labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95625</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-31 19:21:20 +0000</bug_when>
    <thetext>This text predates that RFC. I just haven&apos;t updated it since. I agree that it might be worth just ignoring that RFC though.

What do you mean, you can&apos;t identify an IPv4 address? If it&apos;s four numeric labels, isn&apos;t it unambiguously an IPv4 address?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95630</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-10-31 19:59:10 +0000</bug_when>
    <thetext>Reportedly that is up to the stack that gets passed the domain labels to figure out. There are no restrictions in DNS either that prevent a host from looking like an IPv4 address.

As for the RFC, there&apos;s a mailing list thread. Need to get Adam Barth to comment on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96552</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-19 22:04:57 +0000</bug_when>
    <thetext>I agree that domain names might be a superset of IPv4 addresses, but that doesn&apos;t mean you can&apos;t identify an IPv4 address.

(In reply to Anne from comment #2)
&gt; http://www.whatwg.org/specs/web-apps/current-work/#unicode-serialization-of-
&gt; an-origin
&gt; -&gt; It seems this algorithm is also defined in
&gt; https://tools.ietf.org/html/rfc6454 Why is it still in HTML? Or are we
&gt; abandoning the RFC per my emails to the WHATWG list? You could use
&gt; http://url.spec.whatwg.org/#concept-domain-to-unicode and then serialize the
&gt; output if you decide to keep it. Note that this requires the host part of
&gt; the origin to be stored as a sequence of labels or IPv6. I.e. the result of
&gt; http://url.spec.whatwg.org/#concept-host-parser

I don&apos;t really understand the benefit of invoking url.spec.whatwg.org here. All that does is invoke the same algorithm the HTML spec invokes today, no? Wouldn&apos;t that just be adding one step of indirection?

Similar questions with the others. I don&apos;t really understand what problem we&apos;re solving here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96585</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-11-20 12:02:24 +0000</bug_when>
    <thetext>This might become moot if all browsers move to IDNA2008 or UTS #46 or some such. However, right now what HTML is not defining and URL is, is that it&apos;s not exactly IDNA2003 but IDNA2003 with an updated version of Unicode (not 3.2).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96729</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-11-22 20:38:41 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8312.
Check-in comment: Mark areas that need updating for this bug (moving IDNA references to URL standard references).
http://html5.org/tools/web-apps-tracker?from=8311&amp;to=8312</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98103</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-07 20:23:14 +0000</bug_when>
    <thetext>Ok, done. Thanks for the explanation, and for taking the IDNA issue. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98106</commentid>
    <comment_count>9</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-01-07 21:12:14 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8381.
Check-in comment: Defer to URL spec for IDNA stuff.
http://html5.org/tools/web-apps-tracker?from=8380&amp;to=8381</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>