diff --git a/index.bs b/index.bs index 88bbfeb..2f4ff32 100644 --- a/index.bs +++ b/index.bs @@ -4301,10 +4301,30 @@ interface IDBRecord { The key getter steps are to return the result of [=/converting a key to a value=] with [=/this=]'s [=record snapshot/key=]. +NOTE: +If {{IDBRecord/key}} returns an object (e.g. a {{Date}} or {{Array}}), it +returns the same object instance every time it is inspected. This means that if +the object is modified, those modifications will be seen by anyone inspecting +the value of the record. However modifying such an object does not modify the +contents of the database. + The primaryKey getter steps are to return the result of [=/converting a key to a value=] with [=/this=]'s [=record snapshot/primary key=]. +NOTE: +If {{IDBRecord/primaryKey}} returns an object (e.g. a {{Date}} or {{Array}}), +it returns the same object instance every time it is inspected. This means that +if the object is modified, those modifications will be seen by anyone +inspecting the value of the record. However modifying such an object does not +modify the contents of the database. + The value getter steps are to return [=/this=]'s [=record snapshot/value=]. +NOTE: +If {{IDBRecord/value}} returns an object (e.g. a {{Date}} or {{Array}}), it +returns the same object instance every time it is inspected. This means that if +the object is modified, those modifications will be seen by anyone inspecting +the value of the record. However modifying such an object does not modify the +contents of the database. ## The {{IDBCursor}} interface ## {#cursor-interface}