Skip to content

Commit

Permalink
Editorial: align with Fetch's structured field changes
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored Jul 17, 2020
1 parent 63a0e64 commit c0572d9
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2458,7 +2458,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
</ul>

<p>The following terms are defined in <cite>Structured Field Values for HTTP</cite>: <ref
spec=STRUCTURED-HEADERS></p>
spec=STRUCTURED-FIELDS></p>

<ul class="brief">
<li><dfn data-x="http-structured-header" data-x-href="https://httpwg.org/http-extensions/draft-ietf-httpbis-header-structure.html">structured header</dfn></li>
Expand Down Expand Up @@ -2504,6 +2504,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>`<dfn data-dfn-type="http-header" data-x="http-origin" data-x-href="https://fetch.spec.whatwg.org/#http-origin"><code>Origin</code></dfn>` header</li>
<li>`<dfn data-x-href="https://fetch.spec.whatwg.org/#http-cross-origin-resource-policy"><code>Cross-Origin-Resource-Policy</code></dfn>` header</li>
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#process-response">process response</dfn></li>
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#concept-header-list-get-structured-header">getting a structured field value</dfn></li>
<li><dfn data-x="concept-header-list-set" data-x-href="https://fetch.spec.whatwg.org/#concept-header-list-set">set</dfn></li>
<li><dfn data-x="concept-fetch-terminate" data-x-href="https://fetch.spec.whatwg.org/#concept-fetch-terminate">terminate</dfn></li>
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#cross-origin-resource-policy-check">cross-origin resource policy check</dfn></li>
Expand All @@ -2521,7 +2522,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x="concept-response-url-list" data-x-href="https://fetch.spec.whatwg.org/#concept-response-url-list">url list</dfn></li>
<li><dfn data-x="concept-response-status" data-x-href="https://fetch.spec.whatwg.org/#concept-response-status">status</dfn></li>
<li><dfn data-x="concept-response-header-list" data-x-href="https://fetch.spec.whatwg.org/#concept-response-header-list">header list</dfn></li>
<li><dfn data-x="concept-response-header-list-get-structured-header" data-x-href="https://fetch.spec.whatwg.org/#concept-header-list-get-structured-header">getting a structured header</dfn></li>
<li><dfn data-x="concept-response-body" data-x-href="https://fetch.spec.whatwg.org/#concept-response-body">body</dfn></li>
<li><dfn data-x="concept-internal-response" data-x-href="https://fetch.spec.whatwg.org/#concept-internal-response">internal response</dfn></li>
<li><dfn data-x="concept-response-csp-list" data-x-href="https://fetch.spec.whatwg.org/#concept-response-csp-list">CSP list</dfn></li>
Expand Down Expand Up @@ -80327,7 +80327,7 @@ interface <dfn>BarProp</dfn> {
policy</span> is derived from the `<code
data-x="http-cross-origin-opener-policy">Cross-Origin-Opener-Policy</code>` HTTP response header.
This header is a <span data-x="http-structured-header">structured header</span> whose value must
be a <span data-x="http-structured-header-token">token</span>. <ref spec=STRUCTURED-HEADERS></p>
be a <span data-x="http-structured-header-token">token</span>. <ref spec=STRUCTURED-FIELDS></p>

<p>The valid <span data-x="http-structured-header-token">token</span> values are "<code
data-x="coop-unsafe-none">unsafe-none</code>", "<code
Expand All @@ -80352,13 +80352,12 @@ interface <dfn>BarProp</dfn> {
is "<code data-x="">deprecated</code>", then return "<code
data-x="coop-unsafe-none">unsafe-none</code>".</p></li>

<li><p>Let <var>value</var> be the result of <span
data-x="concept-response-header-list-get-structured-header">getting a structured header</span>
given `<code data-x="http-cross-origin-opener-policy">Cross-Origin-Opener-Policy</code>` and
"<code data-x="">item</code>" from <var>response</var>'s <span
<li><p>Let <var>value</var> be the result of <span>getting a structured field value</span> given
`<code data-x="http-cross-origin-opener-policy">Cross-Origin-Opener-Policy</code>` and "<code
data-x="">item</code>" from <var>response</var>'s <span
data-x="concept-response-header-list">header list</span>.</p></li>

<li><p>If <var>value</var> is failure or null, then return "<code
<li><p>If <var>value</var> is null, then return "<code
data-x="coop-unsafe-none">unsafe-none</code>".</p></li>

<li><p>If <var>value</var>[0] is not "<code data-x="coop-same-origin">same-origin</code>" or
Expand Down Expand Up @@ -80523,7 +80522,7 @@ interface <dfn>BarProp</dfn> {
`<code>Cross-Origin-Embedder-Policy-Report-Only</code>` HTTP response header fields allow a server
to declare an <span>embedder policy</span> for an <span>environment settings object</span>. These
headers are <span data-x="http-structured-header">structured headers</span> whose values must be
<span data-x="http-structured-header-token">token</span>. <ref spec=STRUCTURED-HEADERS>
<span data-x="http-structured-header-token">token</span>. <ref spec=STRUCTURED-FIELDS>

<p>The valid <span
data-x="http-structured-header-token">token</span> values are the <span data-x="embedder policy
Expand Down Expand Up @@ -80589,12 +80588,12 @@ interface <dfn>BarProp</dfn> {
<ol>
<li><p>Let <var>policy</var> be a new <span>embedder policy</span>.</p></li>

<li><p>Let <var>parsedItem</var> be the result of <span
data-x="concept-response-header-list-get-structured-header">getting a structured header</span>
with `<code>Cross-Origin-Embedder-Policy</code>` and "<code data-x="">item</code>".</p></li>
<li><p>Let <var>parsedItem</var> be the result of <span>getting a structured field value</span>
with `<code>Cross-Origin-Embedder-Policy</code>` and "<code data-x="">item</code>" from
<var>response</var>'s <span data-x="concept-response-header-list">header list</span>.</p></li>

<li>
<p>If <var>parsedItem</var> is neither failure nor null and <var>parsedItem</var>[0] is "<code
<p>If <var>parsedItem</var> is non-null and <var>parsedItem</var>[0] is "<code
data-x="">require-corp</code>":</p>

<ol>
Expand All @@ -80608,13 +80607,13 @@ interface <dfn>BarProp</dfn> {
</ol>
</li>

<li><p>Set <var>parsedItem</var> to the result of <span
data-x="concept-response-header-list-get-structured-header">getting a structured header</span>
with `<code>Cross-Origin-Embedder-Policy-Report-Only</code>` and "<code
data-x="">item</code>".</p></li>
<li><p>Set <var>parsedItem</var> to the result of <span>getting a structured field value</span>
with `<code>Cross-Origin-Embedder-Policy-Report-Only</code>` and "<code data-x="">item</code>"
from <var>response</var>'s <span data-x="concept-response-header-list">header
list</span>.</p></li>

<li>
<p>If <var>parsedItem</var> is neither failure nor null and <var>parsedItem</var>[0] is "<code
<p>If <var>parsedItem</var> is non-null and <var>parsedItem</var>[0] is "<code
data-x="">require-corp</code>":</p>

<ol>
Expand Down Expand Up @@ -122112,8 +122111,8 @@ INSERT INTERFACES HERE
<dt id="refsSMS">[SMS]</dt>
<dd>(Non-normative) <cite><a href="https://tools.ietf.org/html/rfc5724">URI Scheme for Global System for Mobile Communications (GSM) Short Message Service (SMS)</a></cite>, E. Wilde, A. Vaha-Sipila. IETF.</dd>

<dt id="refsSTRUCTURED-HEADERS">[STRUCTURED-HEADERS]</dt>
<dd><cite><a href="https://httpwg.org/http-extensions/draft-ietf-httpbis-header-structure.html">Structured Field Values for HTTP</a></cite>, M. Nottingham, P. Kamp. IETF.</dd>
<dt id="refsSTRUCTURED-FIELDS">[STRUCTURED-FIELDS]</dt>
<dd><cite><a href="https://httpwg.org/http-extensions/draft-ietf-httpbis-header-structure.html">Structured Field Values for HTTP</a></cite>, M. Nottingham, P-H. Kamp. IETF.</dd>

<dt id="refsSRGB">[SRGB]</dt>
<dd><cite lang="en-GB"><a href="https://webstore.iec.ch/publication/6169">IEC 61966-2-1: Multimedia systems and equipment &mdash; Colour measurement and management &mdash; Part 2-1: Colour management &mdash; Default RGB colour space &mdash; sRGB</a></cite>. IEC.</dd>
Expand Down

0 comments on commit c0572d9

Please sign in to comment.