Skip to content

Commit 2de187b

Browse files
committed
Describe that if documentUrl is not available, values come from JsonLdOptions/base, which now defaults to null.
Fixes #375.
1 parent 62858e1 commit 2de187b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,8 @@ <h3>Overview</h3>
11591159
When an <a>active context</a> is initialized, the value
11601160
of the <a>original base URL</a>
11611161
is initialized from the original {{RemoteDocument/documentUrl}}
1162-
of the document containing the initial <a>context</a>.
1162+
of the document containing the initial <a>context</a>, if available,
1163+
otherwise from the {{JsonLdOptions/base}} API option.
11631164
This is necessary when resetting the <a>active context</a>
11641165
by setting it to `null`
11651166
to retain the original default <a>base IRI</a>.</p>
@@ -5743,7 +5744,7 @@ <h3>Algorithm</h3>
57435744
<li>Initialize a new empty <var>active context</var>.
57445745
The <a>base IRI</a> and <a>original base URL</a> of the <var>active context</var> is set to the {{RemoteDocument/documentUrl}}
57455746
from <var>remote document</var>, if available;
5746-
otherwise to {{JsonLdOptions/base}}.
5747+
otherwise to the {{JsonLdOptions/base}} option from <a data-lt="jsonldprocessor-expand-options">options</a>.
57475748
If set, the {{JsonLdOptions/base}} option from <a data-lt="jsonldprocessor-expand-options">options</a> overrides the <a>base IRI</a>.</li>
57485749
<li>If the {{JsonLdOptions/expandContext}} option in <a data-lt="jsonldprocessor-expand-options">options</a> is set,
57495750
update the <var>active context</var> using the <a href="#context-processing-algorithm">Context Processing algorithm</a>,
@@ -6092,7 +6093,7 @@ <h3>Algorithm</h3>
60926093

60936094
<pre class="idl">
60946095
dictionary JsonLdOptions {
6095-
USVString? base;
6096+
USVString? base = null;
60966097
boolean compactArrays = true;
60976098
boolean compactToRelative = true;
60986099
LoadDocumentCallback? documentLoader = null;

0 commit comments

Comments
 (0)