Add statement that JSON-LD processors must not modify the input parameters
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Tue, 18 Dec 2012 18:40:12 +0100
changeset 1060 c99db65679ab
parent 1059 2875bd557502
child 1061 f0981adb188a
Add statement that JSON-LD processors must not modify the input parameters

This addresses #200.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Tue Dec 18 18:32:07 2012 +0100
+++ b/spec/latest/json-ld-api/index.html	Tue Dec 18 18:40:12 2012 +0100
@@ -2017,15 +2017,15 @@
       implement a processor with a synchronous interface instead. In that case, the <code>callback</code>
       parameter MUST NOT be included and the result MUST be returned as a return value instead.</p>
 
+    <p>It is important to highlight that conformant <tref title="JSON-LD Processor">JSON-LD processors</tref>
+      MUST NOT modify the input parameters.</p>
+
     <dl title="[Constructor] interface JsonLdProcessor" class="idl">
 
       <dt>void expand()</dt>
       <dd>
         <a href="#expansion">Expands</a> the given <code>input</code> according to
-        the steps in the <a href="#expansion-algorithm">Expansion Algorithm</a>. The
-        <code>input</code> MUST be copied, expanded and returned if there are
-        no errors. If the expansion fails, an appropriate error MUST be
-        returned via the callback.
+        the steps in the <a href="#expansion-algorithm">Expansion Algorithm</a>.
 
         <dl class="parameters">
           <dt>(object or object[] or DOMString) input</dt>
@@ -2044,10 +2044,7 @@
       <dd>
         <a href="#compaction">Compacts</a> the given <code>input</code> 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 appropriate error MUST be
-        returned via the callback.
+        <a href="#compaction-algorithm">Compaction Algorithm</a>.
 
         <dl class="parameters">
           <dt>(object or object[] or DOMString) input</dt>
@@ -2072,9 +2069,6 @@
         <a href="#flattening">Flattens</a> the given <code>input</code> and
         <a href="#compaction">compacts</a> it using the passed <code>context</code>
           according to the steps in the <a href="#flattening-algorithm">Flattening Algorithm</a>.
-          The <code>input</code> MUST be copied, flattened, compacted, and returned
-          if there are no errors. If the compaction fails, an appropriate error MUST be
-          returned via the callback.
 
         <dl class="parameters">
           <dt>(object or object[] or DOMString) input</dt>