Skip to content

Commit 272fab3

Browse files
committed
Change to set _input type_ to the expanded value.
1 parent 207171d commit 272fab3

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

index.html

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2487,10 +2487,13 @@ <h3>Algorithm</h3>
24872487
and `false` for <var>propagate</var>.</li>
24882488
</ol>
24892489
</li>
2490-
<li id="alg-initialize-vars">Initialize two empty <a class="changed">maps</a>, <var>result</var>
2490+
<li id="alg-expand-initialize-vars">Initialize two empty <a class="changed">maps</a>, <var>result</var>
24912491
<span class="changed">and <var>nests</var>.
2492-
Initialize <var>input type</var> to the last value of the first <a>entry</a> in <var>element</var>
2492+
Initialize <var>input type</var> to expansion of the last value of the first <a>entry</a> in <var>element</var>
24932493
expanding to <code>@type</code> (if any), ordering <a>entries</a> lexicographically by key</span>.
2494+
Both the key and value of the matched entry are expanded using the
2495+
<a href="#iri-expansion">IRI Expansion algorithm</a>,
2496+
passing <var>active context</var>, and <code>true</code> for <var>vocab</var>.
24942497
</li>
24952498
<li id="alg-expand-each-key-value">
24962499
For each <var>key</var> and <var>value</var> in <var>element</var>,
@@ -2606,10 +2609,8 @@ <h3>Algorithm</h3>
26062609
<li>If <var>expanded property</var> is <code>@value</code>:
26072610
<ol>
26082611
<li id="alg-expand-type-json" class="changed">If
2609-
<var>input type</var> is not <code>null</code>,
2610-
it was determined in step <a href="#alg-initialize-vars">12</a>
2611-
that <var>element</var> is a <a>value object</a> representing a <a>JSON literal</a>.
2612-
Set <var>expanded value</var> to <var>value</var>.
2612+
<var>input type</var> is <code>@json</code>,
2613+
set <var>expanded value</var> to <var>value</var>.
26132614
If <a>processing mode</a> is `json-ld-1.0`,
26142615
an <a data-link-for="JsonLdErrorCode">invalid value object value</a>
26152616
error has been detected and processing is aborted.</li>
@@ -2762,10 +2763,9 @@ <h3>Algorithm</h3>
27622763
<span class="changed">and the {{JsonLdOptions/frameExpansion}}
27632764
and {{JsonLdOptions/ordered}} flags</span>.</li>
27642765
<li id="alg-expand-expanded-property-to-result">Unless <var>expanded value</var> is <code>null</code>,
2765-
<span class="changed">and <var>expanded property</var> is `@value`,
2766-
and <var>input type</var> is not <code>null</code>, it was determined in step <a href="#alg-initialize-vars">12</a>
2767-
that <var>element</var> is a <a>value object</a> representing a <a>JSON literal</a>.
2768-
Set the <var>expanded property</var> <a>entry</a> of <var>result</var> to
2766+
<span class="changed"><var>expanded property</var> is <code>@value</code>,
2767+
and <var>input type</var> is not <code>@json</code>,</span>
2768+
set the <var>expanded property</var> <a>entry</a> of <var>result</var> to
27692769
<var>expanded value</var>.</li>
27702770
<li>Continue with the next <var>key</var> from <var>element</var>.</li>
27712771
</ol>
@@ -6946,11 +6946,10 @@ <h2>Changes since Candidate Release of 12 December 2019</h2>
69466946
of the <a href="#expansion-algorithm">Expansion algorithm</a> to exclude
69476947
the <var>expanded index</var> being `@none`.
69486948
This is in response to <a href="https://github.com/w3c/json-ld-api/issues/264">Issue 264</a>.</li>
6949-
<li>Updated steps <a href="#alg-expand-type-json">13.4.7.1</a>
6950-
and <a href="#alg-expand-expanded-property-to-result">13.4.16</a>
6949+
<li>Updated step <a href="#alg-expand-initialize-vars">12</a>
69516950
of the
69526951
<a href="#expansion-algorithm">Expansion algorithm</a>
6953-
check of <var>input type</var> is <code>null</code>, which is a simpler and more correct test.
6952+
<var>input type</var> to use the expanded value.
69546953
This is in response to <a href="https://github.com/w3c/json-ld-api/issues/269">Issue 269</a>.</li>
69556954
</ul>
69566955
</section>

0 commit comments

Comments
 (0)