--- a/spec/latest/json-ld-api/index.html Wed Feb 22 22:58:50 2012 +0800
+++ b/spec/latest/json-ld-api/index.html Mon Feb 27 22:43:43 2012 +0800
@@ -502,7 +502,7 @@
<dt>object compact()</dt>
<dd><a href="#compaction">Compacts</a> the given <code>input</code>
- according to the steps in the
+ using the <code>context</code> according to the steps in the
<a href="#compaction-algorithm">Compaction Algorithm</a>. The
<code>input</code> MUST be copied, compacted and returned if there are
no errors. If the compaction fails, an appropirate exception MUST be
@@ -510,8 +510,15 @@
<dl class="parameters">
<dt>object input</dt>
<dd>The JSON-LD object to perform compaction on.</dd>
- <dt>object optional? context</dt>
- <dd>The base context to use when compacting the <code>input</code>.</dd>
+ <dt>object? context</dt>
+ <dd>The context to use when compacting the <code>input</code>.</dd>
+ <dt>boolean optional optimize</dt>
+ <dd>If set to <code>true</code>, the JSON-LD processor is allowed
+ optimize the output of the <a href="#compaction-algorithm">Compaction Algorithm</a>
+ to produce even compacter representations. The algorithm for compaction
+ optimization is beyond the scope of this specification and thus
+ not defined. Consequently, different implementations MAY implement
+ different optimization algorithms.</dd>
</dl>
<dl class="exception" title="InvalidContext">