- From: Domenic Denicola <notifications@github.com>
- Date: Sat, 17 Dec 2022 02:42:09 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/url/pull/726/review/1221779879@github.com>
@domenic commented on this pull request. > @@ -119,9 +119,12 @@ error. <h3 id=percent-encoded-bytes>Percent-encoded bytes</h3> <p>A <dfn>percent-encoded byte</dfn> is U+0025 (%), followed by two <a>ASCII hex digits</a>. -Sequences of <a lt="percent-encoded byte">percent-encoded bytes</a>, -<a for=string>percent-decoded</a>, should not cause <a>UTF-8 decode without BOM or fail</a> to -return failure. + +<p class=note>It is generally a good idea for sequences of <a>percent-encoded bytes</a>, when Maybe "It is generally a good idea for sequences of percent-encoded bytes **to be such that**, when ... they do not end up as failure"? My first reading confused me into thinking this was stating something about the algorithms, like, it's generally a good idea for the algorithms to be constructed such that any input sequence of bytes doesn't fail. But upon re-reading #501 I see the intent now. > @@ -119,9 +119,12 @@ error. <h3 id=percent-encoded-bytes>Percent-encoded bytes</h3> <p>A <dfn>percent-encoded byte</dfn> is U+0025 (%), followed by two <a>ASCII hex digits</a>. -Sequences of <a lt="percent-encoded byte">percent-encoded bytes</a>, -<a for=string>percent-decoded</a>, should not cause <a>UTF-8 decode without BOM or fail</a> to -return failure. + +<p class=note>It is generally a good idea for sequences of <a>percent-encoded bytes</a>, when +<a for=string>percent-decoded</a> and then passed to <a>UTF-8 decode without BOM or fail</a>, to not +end up as failure. How important this is depends on where <a>percent-encoded bytes</a> are used, +e.g., for the <a>host parser</a> it is fatal, whereas for +<a href="#url-rendering-i18n">URL rendering</a> it is merely beneficial. Maybe "for the host parser such sequences will cause failure, whereas for URL rendering [fill in the consequences or lack thereof here]" -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/pull/726#pullrequestreview-1221779879 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/url/pull/726/review/1221779879@github.com>
Received on Saturday, 17 December 2022 10:42:21 UTC