Skip to content

Commit 6be695b

Browse files
committed
Move expansion step 13.15 to out of the loop to step 14.
For #262.
1 parent 753d2e9 commit 6be695b

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
@@ -2957,20 +2957,20 @@ <h3>Algorithm</h3>
29572957
<a>entry</a> of <var>result</var>.</li>
29582958
</ol>
29592959
</li>
2960-
<li class="changed">For each key <var>nesting-key</var> in <var>nests</var>
2960+
</ol>
2961+
</li>
2962+
<li id="expansion-resolve-nest" class="changed">For each key <var>nesting-key</var> in <var>nests</var>
2963+
<ol>
2964+
<li>Initialize <var>nested values</var> to the value of <var>nesting-key</var>
2965+
in <var>element</var>, ensuring that it is an <a>array</a>.</li>
2966+
<li>For each <var>nested value</var> in <var>nested values</var>:
29612967
<ol>
2962-
<li>Initialize <var>nested values</var> to the value of <var>nesting-key</var>
2963-
in <var>element</var>, ensuring that it is an <a>array</a>.</li>
2964-
<li>For each <var>nested value</var> in <var>nested values</var>:
2965-
<ol>
2966-
<li>If <var>nested value</var> is not a <a>map</a>, or any key within
2967-
<var>nested value</var> expands to <code>@value</code>, an
2968-
<a data-link-for="JsonLdErrorCode">invalid @nest value</a> error
2969-
has been detected and processing is aborted.</li>
2970-
<li>Recursively repeat <a href="#alg-expand-each-key-value">step 13</a>
2971-
using <var>nested value</var> for <var>element</var>.</li>
2972-
</ol>
2973-
</li>
2968+
<li>If <var>nested value</var> is not a <a>map</a>, or any key within
2969+
<var>nested value</var> expands to <code>@value</code>, an
2970+
<a data-link-for="JsonLdErrorCode">invalid @nest value</a> error
2971+
has been detected and processing is aborted.</li>
2972+
<li>Recursively repeat <a href="#alg-expand-each-key-value">step 13</a>
2973+
using <var>nested value</var> for <var>element</var>.</li>
29742974
</ol>
29752975
</li>
29762976
</ol>
@@ -6938,6 +6938,11 @@ <h2>Changes since Candidate Release of 12 December 2019</h2>
69386938
<a href="#create-term-definition">Create Term Definition algorithm</a>
69396939
that remaining steps are skipped if the value of `@id` is `null`.
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
</ul>
69426947
</section>
69436948

0 commit comments

Comments
 (0)