- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 14 May 2020 23:54:12 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 15 May 2020 06:54:24 UTC
@annevk commented on this pull request. > + <var>encoding</var>. + + <li> + <p>If <var>bytes</var> starts with 0x26 (&) 0x23 (#) and ends with 0x3B (;), then: + + <ol> + <li><p>Let <var>output</var> be <var>bytes</var>, <a>isomorphic decoded</a>. + + <li><p>Replace the first two code points of <var>output</var> with "<code>%26%23</code>". + + <li><p>Replace the last code point of <var>output</var> with "<code>%3B</code>". + + <li><p>Return <var>output</var>. + </ol> + + <p class="note no-backref">This can happen when <var>encoding</var> is not <a>UTF-8</a>. <li><p>Let <var>output</var> be the empty string.</p></li> But also, I think you got the steps the wrong way around, if it is in the set, it should be encoded, if it's not in the set, it should not be. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/pull/518#discussion_r425601682
Received on Friday, 15 May 2020 06:54:24 UTC