Skip to content

Commit

Permalink
Merge pull request #32 from mgiuca/reserved-encode-set
Browse files Browse the repository at this point in the history
Define and use reserved percent-encode set
  • Loading branch information
mgiuca authored Feb 20, 2018
2 parents 9f5db53 + 55f95c8 commit b1bd475
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,8 @@ <h3>
</li>
<li>Replace each character of <var>value</var>, <var>c</var>,
with the result of <a data-cite="!URL#utf-8-percent-encode">UTF-8
percent encoding</a> <var>c</var> using the <a data-cite=
"!URL#userinfo-percent-encode-set">userinfo percent-encode
set</a>.
percent encoding</a> <var>c</var> using the <a>reserved
percent-encode set</a>.
</li>
<li>Replace the characters in <var>template</var> from indices
<var>start</var> to <var>end</var>, inclusive, with
Expand Down Expand Up @@ -449,6 +448,23 @@ <h3>
</p>
</div>
<div class="issue" data-number="25"></div>
<p>
The <dfn>reserved percent-encode set</dfn> is the <a data-cite=
"!URL#userinfo-percent-encode-set">userinfo percent-encode set</a>
and U+0024 ($), U+0025 (%), U+0026 (&amp;), U+002B (+), and U+002C
(,).
</p>
<p class="note">
The <a>reserved percent-encode set</a> is the complement of the
"unreserved" set in [[rfc2396]], the same set used by <a data-cite=
"ECMAScript#sec-encodeuricomponent-uricomponent">encodeURIComponent</a>
from [[ECMAScript]].
</p>
<p class="issue">
The <a>reserved percent-encode set</a> should be defined in [[!URL]],
not here. See <a href=
"https://github.com/whatwg/url/issues/369">whatwg/url#369</a>.
</p>
</section>
</section>
<section class="informative">
Expand Down

0 comments on commit b1bd475

Please sign in to comment.