Skip to content

Commit ff3cfa3

Browse files
committed
Move expansion step 13.15 to out of the loop to step 14.
For #262.
1 parent f33a219 commit ff3cfa3

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

index.html

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2958,20 +2958,20 @@ <h3>Algorithm</h3>
29582958
<a>entry</a> of <var>result</var>.</li>
29592959
</ol>
29602960
</li>
2961-
<li class="changed">For each key <var>nesting-key</var> in <var>nests</var>
2961+
</ol>
2962+
</li>
2963+
<li id="expansion-resolve-nest" class="changed">For each key <var>nesting-key</var> in <var>nests</var>
2964+
<ol>
2965+
<li>Initialize <var>nested values</var> to the value of <var>nesting-key</var>
2966+
in <var>element</var>, ensuring that it is an <a>array</a>.</li>
2967+
<li>For each <var>nested value</var> in <var>nested values</var>:
29622968
<ol>
2963-
<li>Initialize <var>nested values</var> to the value of <var>nesting-key</var>
2964-
in <var>element</var>, ensuring that it is an <a>array</a>.</li>
2965-
<li>For each <var>nested value</var> in <var>nested values</var>:
2966-
<ol>
2967-
<li>If <var>nested value</var> is not a <a>map</a>, or any key within
2968-
<var>nested value</var> expands to <code>@value</code>, an
2969-
<a data-link-for="JsonLdErrorCode">invalid @nest value</a> error
2970-
has been detected and processing is aborted.</li>
2971-
<li>Recursively repeat <a href="#alg-expand-each-key-value">step 13</a>
2972-
using <var>nested value</var> for <var>element</var>.</li>
2973-
</ol>
2974-
</li>
2969+
<li>If <var>nested value</var> is not a <a>map</a>, or any key within
2970+
<var>nested value</var> expands to <code>@value</code>, an
2971+
<a data-link-for="JsonLdErrorCode">invalid @nest value</a> error
2972+
has been detected and processing is aborted.</li>
2973+
<li>Recursively repeat <a href="#alg-expand-each-key-value">step 13</a>
2974+
using <var>nested value</var> for <var>element</var>.</li>
29752975
</ol>
29762976
</li>
29772977
</ol>
@@ -6938,6 +6938,11 @@ <h2>Changes since Candidate Release of 12 December 2019</h2>
69386938
<li>Added missing keywords to step <a href="#ctd-invalid-entries">28</a> of the
69396939
<a href="#create-term-definition">Create Term Definition algorithm</a>.
69406940
This is in response to <a href="https://github.com/w3c/json-ld-api/issues/261">Issue 261</a>.</li>
6941+
<li>Move step 13.15 of the expansion algorithm up one level to step <a href="#expansion-resolve-nest">14</a> of the
6942+
<a href="#expansion-algorithm">Expansion algorithm</a>,
6943+
as it had accidentally been set to run for every entry in the object, rather than
6944+
after all entries had been expanded.
6945+
This is in response to <a href="https://github.com/w3c/json-ld-api/issues/262">Issue 262</a>.</li>
69416946
<li>Improved text in step <a href="#alg-expand-container-mapping-type">13.8.3.7.5</a>
69426947
of the <a href="#expansion-algorithm">Expansion algorithm</a> to exclude
69436948
the <var>expanded index</var> being `@none`.

0 commit comments

Comments
 (0)