Re: [whatwg/fetch] Override "Accept-Language" header if WebDriver BiDi emulated language is present. (PR #1869)

@annevk commented on this pull request.

Looks good modulo some minor grammar and wrapping nits.

> + <li>
+  <p>If <var>request</var>'s <a for=request>header list</a> <a for="header list">does not contain</a> `<code>Accept-Language</code>` and
+  <var>request</var>'s <a for=request>client</a> is non-null:
+
+  <ol>
+   <li><p>Let <var>emulatedLanguage</var> be the <a>WebDriver BiDi emulated language</a>
+   for <var>request</var>'s <a for=request>client</a>.
+
+   <li><p>If <var>emulatedLanguage</var> is not null, <a for="header list">append</a>(`<code>Accept-Language</code>, <var>emulatedLanguage</var>)
+   to <var>request</var>'s <a for=request>header list</a>.
+  </ol>

```suggestion
 <li>
  <p>If <var>request</var>'s <a for=request>header list</a>
  <a for="header list">does not contain</a> `<code>Accept-Language</code>` and <var>request</var>'s
  <a for=request>client</a> is non-null:

  <ol>
   <li><p>Let <var>emulatedLanguage</var> be the <a>WebDriver BiDi emulated language</a> for
   <var>request</var>'s <a for=request>client</a>.

   <li><p>If <var>emulatedLanguage</var> is non-null, then <a for="header list">append</a>
   (`<code>Accept-Language</code>, <var>emulatedLanguage</var>) to <var>request</var>'s
   <a for=request>header list</a>.
  </ol>
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1869#pullrequestreview-3477892877
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1869/review/3477892877@github.com>

Received on Tuesday, 18 November 2025 13:32:41 UTC