Break up @list/@set handling step for more clarity.
authorDave Longley <dlongley@digitalbazaar.com>
Tue, 05 Mar 2013 00:42:07 -0500
changeset 1371 7a6cb1939190
parent 1370 2b6e7c6ac1eb
child 1372 8269c0b8bc84
Break up @list/@set handling step for more clarity.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Tue Mar 05 00:36:17 2013 -0500
+++ b/spec/latest/json-ld-api/index.html	Tue Mar 05 00:42:07 2013 -0500
@@ -1604,20 +1604,24 @@
               </ol>
             </li>
             <li>Otherwise, if <em>expanded property</em> is <code>@list</code>
-              or <code>@set</code>, initialize <em>expanded value</em> to the
-              result of using this algorithm recursively passing
-              <tref>active context</tref>, <tref>null</tref> for
-              <tref>active property</tref> if <em>expanded property</em> is
-              <code>@list</code> and <em>expanded active property</em> is
-              <code>@graph</code> otherwise <tref>active property</tref>,
-              <em>value</em> for <em>element</em>, and <tref>true</tref>
-              for <em>insideList</em> if <em>expanded property</em> is
-              <code>@list</code> otherwise <tref>false</tref>.
-              If <em>expanded property</em> is <code>@list</code>
-              then <em>expanded value</em> MUST NOT be a
-              <tref>list object</tref>, otherwise a
-              <code class="error"><a href="#idl-def-JsonLdErrorCode.list-of-lists">list of lists</a></code>
-              error has been detected.</li>
+              or <code>@set</code>:
+              <ol class="algorithm">
+                <li>Initialize <em>expanded value</em> to the result of using
+                  this algorithm recursively passing
+                  <tref>active context</tref>, <tref>null</tref> for
+                  <tref>active property</tref> if <em>expanded property</em>
+                  is <code>@list</code> and <em>expanded active property</em>
+                  is <code>@graph</code> otherwise <tref>active property</tref>,
+                  <em>value</em> for <em>element</em>, and <tref>true</tref>
+                  for <em>insideList</em> if <em>expanded property</em> is
+                  <code>@list</code> otherwise <tref>false</tref>.</li>
+                <li>If <em>expanded property</em> is <code>@list</code>
+                  then <em>expanded value</em> MUST NOT be a
+                  <tref>list object</tref>, otherwise a
+                  <code class="error"><a href="#idl-def-JsonLdErrorCode.list-of-lists">list of lists</a></code>
+                  error has been detected.</li>
+              </ol>
+            </li>
             <li>Otherwise, initialize <em>expanded value</em> to the result of
               using this algorithm recursively, passing
               <tref>active context</tref>, <em>key</em> for