Skip to content

Commit e5f6fda

Browse files
committed
Require that a remote context only be dereferenced once.
Fixes #638.
1 parent 7389c65 commit e5f6fda

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/latest/json-ld-api/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,11 @@ <h3>Algorithm</h3>
873873
<a data-link-for="JsonLdErrorCode">recursive context inclusion</a>
874874
error has been detected and processing is aborted;
875875
otherwise, add <var>context</var> to <var>remote contexts</var>.</li>
876-
<li>Dereference <var>context</var>, <span class="changed">transforming into the <a>internal representation</a></span>.
876+
<li class="changed">If <var>context</var> was previously dereferenced,
877+
then the processor MUST NOT do a further dereference, and
878+
<a>context</a> is set to the
879+
previously established <a>internal representation</a>.</li>
880+
<li>Otherwise, dereference <var>context</var>, <span class="changed">transforming into the <a>internal representation</a></span>.
877881
If <var>context</var> cannot be dereferenced,
878882
<span class="changed">or cannot be transformed into the <a>internal representation</a></span>,
879883
a <a data-link-for="JsonLdErrorCode">loading remote context failed</a>
@@ -884,7 +888,7 @@ <h3>Algorithm</h3>
884888
set <var>context</var> to the value of that member.</li>
885889
<li>Set <var>result</var> to the result of recursively calling this algorithm,
886890
passing <var>result</var> for <var>active context</var>,
887-
<var>context</var> for <var>local context</var>, and <var>remote contexts</var>.</li>
891+
<var>context</var> for <var>local context</var>, and <span class="changed">a copy of</span> <var>remote contexts</var>.</li>
888892
<li>Continue with the next <var>context</var>.</li>
889893
</ol>
890894
</li>

0 commit comments

Comments
 (0)