Closed Bug 1358707 Opened 8 years ago Closed 6 years ago

IDBCursor.update and IDBCursor.delete documentation should mention that it cannot be used on cursors obtained through index.openKeyCursor

Categories

(Developer Documentation Graveyard :: API: IndexedDB, enhancement, P5)

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mstange, Assigned: cmills)

References

()

Details

:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details You can't call cursor.update() (or cursor.delete(), for that matter) on cursors that you obtained from index.openKeyCursor(). You have to use index.openCursor() instead. It would be nice to mention this. It's kind of mentioned in the table of potential errors (for InvalidStateError), but that's a bit ambiguous and could be spelled out more explicitly.
Component: General → API: IndexedDB
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.