@@ -43,7 +43,6 @@ spec: ecma-262; urlPrefix: https://tc39.github.io/ecma262/
43
43
spec: storage; urlPrefix: https://storage.spec.whatwg.org/
44
44
type: dfn
45
45
text: storage bucket; url: storage-bucket
46
- text: storage key; url: storage-key
47
46
</pre>
48
47
49
48
<style>
@@ -1054,7 +1053,7 @@ The <dfn>lifetime</dfn> of a
1054
1053
stores=] and [=/indexes=] .
1055
1054
1056
1055
1. The implementation must attempt to <dfn lt="commit|committed">commit</dfn>
1057
- a transaction when all [=/requests=] placed against the
1056
+ an [=transaction/inactive=] transaction when all [=/requests=] placed against the
1058
1057
transaction have completed and their returned results handled, no
1059
1058
new requests have been placed against the transaction, and the
1060
1059
transaction has not been [=transaction/aborted=]
@@ -5290,9 +5289,10 @@ To <dfn>upgrade a database</dfn> with |connection| (a [=/connection=]), a new |v
5290
5289
[=firing a version change event=] named
5291
5290
{{IDBOpenDBRequest/upgradeneeded!!event}} at |request| with |old
5292
5291
version| and |version|.
5293
- 1. Set |transaction|'s [=transaction/state=] to [=transaction/inactive=] .
5294
- 1. If |didThrow| is true, run [=abort a transaction=] with |transaction| and a newly
5295
- [=exception/created=] "{{AbortError}} " {{DOMException}} .
5292
+ 1. If |transaction|'s [=transaction/state=] is [=transaction/active=] , then:
5293
+ 1. Set |transaction|'s [=transaction/state=] to [=transaction/inactive=] .
5294
+ 1. If |didThrow| is true, run [=abort a transaction=] with |transaction| and a newly
5295
+ [=exception/created=] "{{AbortError}} " {{DOMException}} .
5296
5296
5297
5297
1. Wait for |transaction| to [=transaction/finish=] .
5298
5298
@@ -6362,7 +6362,7 @@ steps may throw an exception.
6362
6362
<!-- Binary -->
6363
6363
: If |input| is a [=buffer source type=]
6364
6364
::
6365
- 1. If |input| is [[ =BufferSource/detached=] ] then return invalid.
6365
+ 1. If |input| is [=BufferSource/detached=] then return invalid.
6366
6366
6367
6367
1. Let |bytes| be the result of
6368
6368
[=/get a copy of the buffer source|getting a copy of the bytes held by the buffer source=]
@@ -6718,6 +6718,8 @@ For the revision history of the second edition, see [that document's Revision Hi
6718
6718
* Updated [=convert a value to a key=] to return invalid for detached array buffers. (<#417>)
6719
6719
* Updated {{IDBFactory/open()}} to set its request's [=request/processed flag=] to true.
6720
6720
* Don't include databases that aren't done being created in {{IDBFactory/databases()}} . (<#442>)
6721
+ * Clarify that only [=transaction/inactive=] [=/transactions=] should attempt to auto-commit. (<#436>)
6722
+ * Correct [=/upgrade a database=] steps to handle aborted transactions. (<#436>)
6721
6723
6722
6724
<!-- ============================================================ -->
6723
6725
# Acknowledgements # {#acknowledgements}
0 commit comments