diff --git a/index.html b/index.html
index 26c6dcba..2bdeca6c 100644
--- a/index.html
+++ b/index.html
@@ -264,6 +264,24 @@
text-decoration: none;
color: #666;
}
+
+ .algorithm summary::before {
+ content: "// ";
+ }
+
+ .algorithm summary {
+ padding-left: 2em;
+ font-style: italic;
+ }
+
+ /* required if we chose to put OLs *outside* the details,
+ to force them visible when printing */
+ @media screen {
+ .algorithm details:not([open]) + ol {
+ display: none;
+ }
+ }
+
@@ -1125,6 +1143,7 @@
Algorithm
For each item context in local context:
- If context is
null
:
+ clear context (unless protected)
- If override protected is
false
and active context
contains any protected term definitions,
@@ -1138,10 +1157,10 @@ Algorithm
In [[[JSON-LD]]], the base IRI was given
a default value here; this is now described conditionally
in .
-
+
- If context is a string,
-
+ - If context is a string:
+
dereference and process
- Set context to the result of resolving value against
the base IRI which is established as specified in
section 5.1 Establishing a Base URI
@@ -1180,14 +1199,14 @@
Algorithm
passing result for active context,
context for local context, and a copy of remote contexts.
- Continue with the next context.
-
+
If context is not a map, an
invalid local context
error has been detected and processing is aborted.
Otherwise, context is a context definition.
If context has an @version
entry:
-
+ set processing mode
- If the associated value is not
1.1
,
an invalid @version value
has been detected, and processing is aborted.
@@ -1197,10 +1216,10 @@ Algorithm
error has been detected and processing is aborted.
Set processing mode,
to json-ld-1.1
, if not already set.
-
+
If context has an @import
entry:
-
+ merge imported context
- If processing mode is
json-ld-1.0
,
an invalid context entry
error has been detected and processing is aborted.
@@ -1241,11 +1260,11 @@ Algorithm
- Set context to the result of merging context
into import context, replacing common entries
with those from context.
-
+
If context has an @base
entry and remote contexts is empty, i.e., the currently
being processed context is not a remote context:
-
+ reset base IRI
- Initialize value to the value associated with the
@base
entry.
- If value is
null
, remove the
@@ -1260,10 +1279,10 @@ Algorithm
- Otherwise, an
invalid base IRI
error has been detected and processing is aborted.
-
+
If context has an @vocab
entry:
-
+ reset vocabulary mapping
- Initialize value to the value associated with the
@vocab
entry.
- If value is null, remove
@@ -1284,10 +1303,10 @@
Algorithm
error has been detected and processing is aborted.
The use of
blank node identifiers to value for
@vocab
is obsolete,
and may be removed in a future version of JSON-LD.
-
+
If context has an @language
entry:
-
+ reset default language
- Initialize value to the value associated with the
@language
entry.
- If value is
null
, remove
@@ -1297,10 +1316,10 @@ Algorithm
lowercased value. If it is not a string, an
invalid default language
error has been detected and processing is aborted.
-
+
If context has an @propagate
entry:
-
+ check its validity
- If processing mode is
json-ld-1.0
,
an invalid context entry
error has been detected and processing is aborted.
@@ -1309,7 +1328,7 @@ Algorithm
error has been detected and processing is aborted.
Otherwise, previous context was determined before,
and no further processing is necessary.
-
+
Create a map defined to keep
track of whether or not a term has already been defined