Skip to content

Commit 8963874

Browse files
committed
CREDENTIAL: Linkify iteration monkey patch. Regenerate HTML.
1 parent 580cb69 commit 8963874

File tree

2 files changed

+42
-16
lines changed

2 files changed

+42
-16
lines changed

specs/credentialmanagement/index.html

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<h1 class="p-name no-ref" id="title">Credential Management Level 1</h1>
7272

7373
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft,
74-
<time class="dt-updated" datetime="2015-09-02">2 September 2015</time></span></h2>
74+
<time class="dt-updated" datetime="2015-09-03">3 September 2015</time></span></h2>
7575

7676
<div data-fill-with="spec-metadata">
7777
<dl>
@@ -223,11 +223,12 @@ <h2 class="no-num no-toc no-ref heading settled" id="contents"><span class="cont
223223
Algorithm Modifications
224224
</span></a>
225225
<ul class="toc">
226-
<li><a href="#monkey-patching-xhr-2"><span class="secno">3.3.1.1</span> <span class="content">XHR: <code>FormData</code>’s <code>get()</code></span></a>
227-
<li><a href="#monkey-patching-xhr-3"><span class="secno">3.3.1.2</span> <span class="content">XHR: <code>FormData</code>’s <code>getAll()</code></span></a>
228-
<li><a href="#monkey-patching-fetch-1"><span class="secno">3.3.1.3</span> <span class="content">Fetch: <code>Body</code> objects</span></a>
229-
<li><a href="#monkey-patching-fetch-2"><span class="secno">3.3.1.4</span> <span class="content">Fetch: <code>Request</code>’s constructor</span></a>
230-
<li><a href="#monkey-patching-serviceworkers-1"><span class="secno">3.3.1.5</span> <span class="content">Service Worker: Handle a Fetch</span></a>
226+
<li><a href="#monkey-patching-xhr-1"><span class="secno">3.3.1.1</span> <span class="content">XHR: <code>FormData</code> Iteration</span></a>
227+
<li><a href="#monkey-patching-xhr-2"><span class="secno">3.3.1.2</span> <span class="content">XHR: <code>FormData</code>’s <code>get()</code></span></a>
228+
<li><a href="#monkey-patching-xhr-3"><span class="secno">3.3.1.3</span> <span class="content">XHR: <code>FormData</code>’s <code>getAll()</code></span></a>
229+
<li><a href="#monkey-patching-fetch-1"><span class="secno">3.3.1.4</span> <span class="content">Fetch: <code>Body</code> objects</span></a>
230+
<li><a href="#monkey-patching-fetch-2"><span class="secno">3.3.1.5</span> <span class="content">Fetch: <code>Request</code>’s constructor</span></a>
231+
<li><a href="#monkey-patching-serviceworkers-1"><span class="secno">3.3.1.6</span> <span class="content">Service Worker: Handle a Fetch</span></a>
231232
</ul>
232233
</ul>
233234
</ul>
@@ -1508,7 +1509,29 @@ <h4 class="heading settled" data-level="3.3.1" id="opaque-formdata-algorithms"><
15081509
<p class="issue" id="issue-020f94b2"><a class="self-link" href="#issue-020f94b2"></a> Monkey-patching! Hooray! Talk with Anne, et al.</p>
15091510

15101511

1511-
<h5 class="heading settled" data-level="3.3.1.1" id="monkey-patching-xhr-2"><span class="secno">3.3.1.1. </span><span class="content">XHR: <code>FormData</code>’s <code>get()</code></span><a class="self-link" href="#monkey-patching-xhr-2"></a></h5>
1512+
<h5 class="heading settled" data-level="3.3.1.1" id="monkey-patching-xhr-1"><span class="secno">3.3.1.1. </span><span class="content">XHR: <code>FormData</code> Iteration</span><a class="self-link" href="#monkey-patching-xhr-1"></a></h5>
1513+
1514+
1515+
<p>Replace the following text from <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#interface-formdata">FormData</a></code>:</p>
1516+
1517+
1518+
<blockquote>
1519+
The <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-value-pairs-to-iterate-over">value pairs to iterate over</a> are the <a data-link-type="dfn" href="https://xhr.spec.whatwg.org/#concept-formdata-entry">entries</a> with the key
1520+
being the <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#concept-formdata-entry-name">name</a></code> and the value the <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#concept-formdata-entry-value">value</a></code>.
1521+
</blockquote>
1522+
1523+
1524+
<p>With:</p>
1525+
1526+
1527+
<blockquote>
1528+
The <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-value-pairs-to-iterate-over">value pairs to iterate over</a> is an empty list if the <a data-link-type="dfn" href="#opaque-flag">opaque
1529+
flag</a> is set, otherwise the <a data-link-type="dfn" href="https://xhr.spec.whatwg.org/#concept-formdata-entry">entries</a> with the key being the
1530+
<code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#concept-formdata-entry-name">name</a></code> and the value the <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#concept-formdata-entry-value">value</a></code>.
1531+
</blockquote>
1532+
1533+
1534+
<h5 class="heading settled" data-level="3.3.1.2" id="monkey-patching-xhr-2"><span class="secno">3.3.1.2. </span><span class="content">XHR: <code>FormData</code>’s <code>get()</code></span><a class="self-link" href="#monkey-patching-xhr-2"></a></h5>
15121535

15131536

15141537
<p>Redefine <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#interface-formdata">FormData</a></code>'s <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#dom-formdata-get">get()</a></code> method as follows:</p>
@@ -1529,7 +1552,7 @@ <h5 class="heading settled" data-level="3.3.1.1" id="monkey-patching-xhr-2"><spa
15291552
</ol>
15301553

15311554

1532-
<h5 class="heading settled" data-level="3.3.1.2" id="monkey-patching-xhr-3"><span class="secno">3.3.1.2. </span><span class="content">XHR: <code>FormData</code>’s <code>getAll()</code></span><a class="self-link" href="#monkey-patching-xhr-3"></a></h5>
1555+
<h5 class="heading settled" data-level="3.3.1.3" id="monkey-patching-xhr-3"><span class="secno">3.3.1.3. </span><span class="content">XHR: <code>FormData</code>’s <code>getAll()</code></span><a class="self-link" href="#monkey-patching-xhr-3"></a></h5>
15331556

15341557

15351558
<p>Redefine <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#interface-formdata">FormData</a></code>'s <code class="idl"><a data-link-type="idl" href="https://xhr.spec.whatwg.org/#dom-formdata-getAll">getAll()</a></code> method as follows:</p>
@@ -1550,7 +1573,7 @@ <h5 class="heading settled" data-level="3.3.1.2" id="monkey-patching-xhr-3"><spa
15501573
</ol>
15511574

15521575

1553-
<h5 class="heading settled" data-level="3.3.1.3" id="monkey-patching-fetch-1"><span class="secno">3.3.1.3. </span><span class="content">Fetch: <code>Body</code> objects</span><a class="self-link" href="#monkey-patching-fetch-1"></a></h5>
1576+
<h5 class="heading settled" data-level="3.3.1.4" id="monkey-patching-fetch-1"><span class="secno">3.3.1.4. </span><span class="content">Fetch: <code>Body</code> objects</span><a class="self-link" href="#monkey-patching-fetch-1"></a></h5>
15541577

15551578

15561579
<p>Add a new <dfn class="idl-code" data-dfn-for="Body" data-dfn-type="attribute" data-export="" id="dom-body-opaque-flag">opaque flag<a class="self-link" href="#dom-body-opaque-flag"></a></dfn> to Fetch’s <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#body">Body</a></code>
@@ -1641,7 +1664,7 @@ <h5 class="heading settled" data-level="3.3.1.3" id="monkey-patching-fetch-1"><s
16411664
which means that the body remains unconsumed.</p>
16421665

16431666

1644-
<h5 class="heading settled" data-level="3.3.1.4" id="monkey-patching-fetch-2"><span class="secno">3.3.1.4. </span><span class="content">Fetch: <code>Request</code>’s constructor</span><a class="self-link" href="#monkey-patching-fetch-2"></a></h5>
1667+
<h5 class="heading settled" data-level="3.3.1.5" id="monkey-patching-fetch-2"><span class="secno">3.3.1.5. </span><span class="content">Fetch: <code>Request</code>’s constructor</span><a class="self-link" href="#monkey-patching-fetch-2"></a></h5>
16451668

16461669

16471670
<p>Perform the following after step 33 of the current <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#dom-request">Request()</a></code> constructor:</p>
@@ -1660,7 +1683,7 @@ <h5 class="heading settled" data-level="3.3.1.4" id="monkey-patching-fetch-2"><s
16601683
</ol>
16611684

16621685

1663-
<h5 class="heading settled" data-level="3.3.1.5" id="monkey-patching-serviceworkers-1"><span class="secno">3.3.1.5. </span><span class="content">Service Worker: Handle a Fetch</span><a class="self-link" href="#monkey-patching-serviceworkers-1"></a></h5>
1686+
<h5 class="heading settled" data-level="3.3.1.6" id="monkey-patching-serviceworkers-1"><span class="secno">3.3.1.6. </span><span class="content">Service Worker: Handle a Fetch</span><a class="self-link" href="#monkey-patching-serviceworkers-1"></a></h5>
16641687

16651688

16661689
<p class="issue" id="issue-be0db764"><a class="self-link" href="#issue-be0db764"></a> Currently, we’re not protecting requests with opaque bodies from
@@ -3322,7 +3345,7 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
33223345
<li>opaque flag
33233346
<ul>
33243347
<li><a href="#opaque-flag">definition of</a><span>, in §3.3</span>
3325-
<li><a href="#dom-body-opaque-flag">attribute for Body</a><span>, in §3.3.1.3</span>
3348+
<li><a href="#dom-body-opaque-flag">attribute for Body</a><span>, in §3.3.1.4</span>
33263349
</ul>
33273350
<li><a href="#opaque-formdata-objects">Opaque FormData objects</a><span>, in §3.3</span>
33283351
<li><a href="#dom-credentialcontainer-get-options-options">options</a><span>, in §3.2</span>
@@ -3428,6 +3451,7 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
34283451
<li><a href="https://heycam.github.io/webidl/#idl-USVString">USVString</a>
34293452
<li><a href="https://heycam.github.io/webidl/#idl-boolean">boolean</a>
34303453
<li><a href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a>
3454+
<li><a href="https://heycam.github.io/webidl/#dfn-value-pairs-to-iterate-over">value pairs to iterate over</a>
34313455
</ul>
34323456
<li><a data-link-type="biblio" href="#biblio-xhr">[XHR]</a> defines the following terms:
34333457
<ul>

specs/credentialmanagement/index.src.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ <h1>Credential Management Level 1</h1>
115115
type: dfn
116116
text: type name; url: dfn-type-name
117117
text: dictionary member; url: dfn-dictionary-member
118+
text: value pairs to iterate over; url: dfn-value-pairs-to-iterate-over
118119
type: interface
119120
text: USVString; url: idl-USVString
120121
text: object; url: idl-object
@@ -948,15 +949,16 @@ <h5 id="monkey-patching-xhr-1">XHR: <code>FormData</code> Iteration</code></h5>
948949
Replace the following text from {{FormData}}:
949950

950951
<blockquote>
951-
The value pairs to iterate over are the entries with the key being the name
952-
and the value the value.
952+
The <a>value pairs to iterate over</a> are the <a>entries</a> with the key
953+
being the {{entry/name}} and the value the {{entry/value}}.
953954
</blockquote>
954955

955956
With:
956957

957958
<blockquote>
958-
The value pairs to iterate over is an empty list if the opaque flag is set,
959-
otherwise the entries with the key being the name and the value the value.
959+
The <a>value pairs to iterate over</a> is an empty list if the <a>opaque
960+
flag</a> is set, otherwise the <a>entries</a> with the key being the
961+
{{entry/name}} and the value the {{entry/value}}.
960962
</blockquote>
961963

962964
<h5 id="monkey-patching-xhr-2">XHR: <code>FormData</code>'s <code>get()</code></h5>

0 commit comments

Comments
 (0)