Skip to content

Commit 62858e1

Browse files
committed
Set a fallback in expand() processing if there is no documentUrl. This uses JsonLdOptions/base, which could be null, or something else appropriate for when the input or expandContext is not a URL.
For #370.
1 parent 2638395 commit 62858e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5743,7 +5743,7 @@ <h3>Algorithm</h3>
57435743
<li>Initialize a new empty <var>active context</var>.
57445744
The <a>base IRI</a> and <a>original base URL</a> of the <var>active context</var> is set to the {{RemoteDocument/documentUrl}}
57455745
from <var>remote document</var>, if available;
5746-
otherwise to <code>null</code>.
5746+
otherwise to {{JsonLdOptions/base}}.
57475747
If set, the {{JsonLdOptions/base}} option from <a data-lt="jsonldprocessor-expand-options">options</a> overrides the <a>base IRI</a>.</li>
57485748
<li>If the {{JsonLdOptions/expandContext}} option in <a data-lt="jsonldprocessor-expand-options">options</a> is set,
57495749
update the <var>active context</var> using the <a href="#context-processing-algorithm">Context Processing algorithm</a>,
@@ -5759,7 +5759,7 @@ <h3>Algorithm</h3>
57595759
passing the <var>active context</var>,
57605760
{{RemoteDocument/document}} from <var>remote document</var> or <a data-lt="jsonldprocessor-expand-input">input</a>
57615761
if there is no <var>remote document</var> as <var>element</var>,
5762-
{{RemoteDocument/documentUrl}} as <var>base URL</var>,
5762+
{{RemoteDocument/documentUrl}} as <var>base URL</var>, if available, otherwise to {{JsonLdOptions/base}},
57635763
and <span class="changed">{{JsonLdOptions/frameExpansion}}</span>
57645764
and <span class="changed">and {{JsonLdOptions/ordered}}</span>
57655765
flags from <a data-lt="jsonldprocessor-compact-options">options</a>.

0 commit comments

Comments
 (0)