Skip to content

Commit

Permalink
Do not encode ` in query. Fixes #17.
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jun 10, 2015
1 parent c296e2f commit f54c44d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
16 changes: 7 additions & 9 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1577,15 +1577,13 @@ optionally with an <a>encoding</a>
these subsubsteps:

<ol>
<li><p>If <var>byte</var> is less than 0x21, greater than
0x7E, or is one of 0x22, 0x23, 0x3C, 0x3E, and 0x60, append
<var>byte</var>,
<a lt="percent encode">percent encoded</a>, to
<var>url</var>'s <a lt='URL query'>query</a>.

<li><p>Otherwise, append a code point whose value is
<var>byte</var> to <var>url</var>'s
<a lt='URL query'>query</a>.
<li><p>If <var>byte</var> is less than 0x21, greater than 0x7E, or is one of
0x22, 0x23, 0x3C, and 0x3E, append <var>byte</var>,
<a lt="percent encode">percent encoded</a>, to <var>url</var>'s
<a lt="URL query">query</a>.

<li><p>Otherwise, append a code point whose value is <var>byte</var> to
<var>url</var>'s <a lt="URL query">query</a>.
</ol>

<li><p>Set <var>buffer</var> to the empty string.
Expand Down
14 changes: 6 additions & 8 deletions url.html
Original file line number Diff line number Diff line change
Expand Up @@ -2437,17 +2437,15 @@ <h3 class="heading settled" data-level="4.2" id="url-parsing"><span class="secno
<ol>

<li>
<p>If <var>byte</var> is less than 0x21, greater than
0x7E, or is one of 0x22, 0x23, 0x3C, 0x3E, and 0x60, append
<var>byte</var>,
<a data-link-type="dfn" href="#percent-encode">percent encoded</a>, to
<var>url</var>’s <a data-link-type="dfn" href="#concept-url-query">query</a>.
<p>If <var>byte</var> is less than 0x21, greater than 0x7E, or is one of
0x22, 0x23, 0x3C, and 0x3E, append <var>byte</var>,
<a data-link-type="dfn" href="#percent-encode">percent encoded</a>, to <var>url</var>’s
<a data-link-type="dfn" href="#concept-url-query">query</a>.

</p>
<li>
<p>Otherwise, append a code point whose value is
<var>byte</var> to <var>url</var>’s
<a data-link-type="dfn" href="#concept-url-query">query</a>.
<p>Otherwise, append a code point whose value is <var>byte</var> to
<var>url</var>’s <a data-link-type="dfn" href="#concept-url-query">query</a>.
</p>
</ol>

Expand Down

0 comments on commit f54c44d

Please sign in to comment.