Skip to content

Commit

Permalink
Move document Accept to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Sep 7, 2022
1 parent 2b3c7f1 commit 3a278cb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,9 @@ manually. [[!HTML]]
<li><p>Return <var>potentialDestination</var>.
</ol>

<p>The <dfn lt="document Accept header value">Document `Accept` header value</dfn> is
`<code>text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</code>`.


<h3 id=authentication-entries>Authentication entries</h3>

Expand Down Expand Up @@ -3984,11 +3987,9 @@ the request.
<ol>
<li><p>Let <var>value</var> be `<code>*/*</code>`.

<li><p>Let <var>documentAccept</var> be
`<code>text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</code>`.

<li><p>If <var>request</var>'s <a for=request>initiator</a> is "<code>prefetch</code>", then set
<var>value</var> to <var>documentAccept</var>.
<var>value</var> to <a lt="document Accept header value">document `Accept` header value</a>.

<li>
<p>A user agent should set <var>value</var> to the first matching statement, if any, switching
Expand All @@ -3999,7 +4000,7 @@ the request.
<dt>"<code>document</code>"
<dt>"<code>frame</code>"
<dt>"<code>iframe</code>"
<dd><var>documentAccept</var>
<dd><a lt="document Accept header value">document `Accept` header value</a>

<dt>"<code>image</code>"
<dd>`<code>image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5</code>`
Expand Down

0 comments on commit 3a278cb

Please sign in to comment.