Skip to content

Commit

Permalink
allow "%" and "[", ":", "]" (IPv6) code points in opaque host
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Feb 3, 2017
1 parent 349c802 commit 304f0ae
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,19 @@ U+0020,
or
"<code>]</code>".<!-- 5D -->

<p>A <dfn export>forbidden opaque host code point</dfn> is
U+0000,
U+0009,
U+000A,
U+000D,
U+0020,
"<code>#</code>",<!-- 23 -->
"<code>/</code>",<!-- 2F -->
"<code>?</code>",<!-- 3F -->
"<code>@</code>",<!-- 40 -->
or
"<code>\</code>".<!-- 5C -->


<h3 id=idna>IDNA</h3>

Expand Down Expand Up @@ -1237,12 +1250,7 @@ and a boolean <var>isSpecial</var>, and then runs these steps:</p>
<li><p>If <var>isSpecial</var> is true, then return the result of
<a lt="host parser">host parsing</a> <var>input</var>.

<li><p>Let <var>buffer</var> be the result of
<a>UTF-8 decode without BOM</a> on the
<a lt="percent decode">percent decoding</a> of
<a>UTF-8 encode</a> on <var>input</var>.

<li><p>If <var>buffer</var> contains a <a>forbidden host code point</a>, <a>syntax violation</a>,
<li><p>If <var>input</var> contains a <a>forbidden opaque host code point</a>, <a>syntax violation</a>,
return failure.

<li><p>Let <var>output</var> be the empty string.
Expand Down

0 comments on commit 304f0ae

Please sign in to comment.