Skip to content

Commit 181c740

Browse files
committed
Reset active context to initial context if set to null
Updated the context processing algorithm. Depending of the outcome of issue #80 this might has to be changed. This closes #78.
1 parent c0952c3 commit 181c740

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ <h2 id="context">Context</h2>
821821
<li>Create a new, empty <tref>local context</tref>.</li>
822822
<li>Let <em>value</em> be the value of <code>@context</code>
823823
<ol id="process-context" class="algorithm">
824+
<li>If <em>value</em> equals <code>null</code>, reset the <tref>active context</tref> to the <tref>initial context</tref></li>
824825
<li>If <em>value</em> is an <tref>array</tref>, process
825826
each element as <em>value</em>, in order using <a href="#process-context">Step 2</a>.</li>
826827
<li>If <em>value</em> is a simple <tref>string</tref>, it MUST have a lexical form of <tref>absolute IRI</tref>.
@@ -873,7 +874,7 @@ <h2 id="context">Context</h2>
873874
</ol>
874875
</li>
875876
<li>Merge the <tref>local context</tref> into the <tref>active context</tref>.</li>
876-
<li>Repeat <a href="#object-context">Step 2.3.2</a> until no entries are added to the <tref>local
877+
<li>Repeat <a href="#object-context">Step 3.3.2</a> until no entries are added to the <tref>local
877878
context</tref>.</li>
878879
</ol>
879880
</li>

0 commit comments

Comments
 (0)