Re: [whatwg/fetch] Add examples for collect an HTTP quoted string (#1069)

@domenic commented on this pull request.



> @@ -307,9 +307,30 @@ and optionally an <var>extract-value flag</var>, run these steps:
  inclusive, within <var>input</var>.
 </ol>
 
-<p class="note no-backref">The <var>extract-value flag</var> argument makes this algorithm suitable
-for <a for="header list">getting, decoding, and splitting</a> and <a>parse a MIME type</a>, as well
-as other header value parsers that might need this.
+<div class=example id=example-http-quoted-string>
+ <table>
+  <tr>
+   <th>Input
+   <th>Final position (always starts at 0)

Oh, right, that is important... hmm. Then I'd phrase it as something like "New position variable value", maybe?

Although I'm not sure readers are really going to manually count. It might be good to add a parenthetical value, e.g. 2 (end of string), 7 ( )? Or maybe a `<mark>` around the pointed-to-character? Meh, nothing works great there...

-- 
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/fetch/pull/1069#discussion_r466455816

Received on Thursday, 6 August 2020 14:31:29 UTC