Skip to content

Commit dbf01a4

Browse files
Use infra sorting definitions for name lists (#358)
* Use infra sorting definitions. Fixes #346.
1 parent 1663ca9 commit dbf01a4

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

index.bs

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,14 @@ opaque sequences of 16-bit code units.
390390
can store.
391391
</aside>
392392

393-
A <dfn>sorted name list</dfn> is a list containing [=/names=]
394-
sorted in ascending order by 16-bit code unit.
393+
<div algorithm>
394+
395+
To <dfn>create a sorted name list</dfn> from a [=/list=] |names|, run these steps:
396+
397+
1. Let |sorted| be |names| [=list/sorted in ascending order=] with the [=/code unit less than=] algorithm.
398+
1. Return a new {{DOMStringList}} associated with |sorted|.
399+
400+
</div>
395401

396402
<details class=note>
397403
<summary>Details</summary>
@@ -2506,9 +2512,13 @@ return [=/this=]'s [=connection/version=].
25062512
[=/upgrade transaction=].
25072513
</div>
25082514

2509-
The <dfn attribute for=IDBDatabase>objectStoreNames</dfn> getter steps are to
2510-
return a new {{DOMStringList}} associated with a [=sorted name list=] of the [=object-store/names=] of
2511-
the [=/object stores=] in [=/this=]'s [=object store set=].
2515+
<div algorithm>
2516+
The <dfn attribute for=IDBDatabase>objectStoreNames</dfn> getter steps are:
2517+
2518+
1. Let |names| be a [=/list=] of the [=object-store/names=] of the [=/object stores=] in [=/this=]'s [=object store set=].
2519+
1. Return the result (a {{DOMStringList}}) of [=/creating a sorted name list=] with |names|.
2520+
2521+
</div>
25122522

25132523
<details class=note>
25142524
<summary>
@@ -2847,9 +2857,14 @@ instance every time it is inspected. Changing the properties of the
28472857
object has no effect on the [=/object store=].
28482858
</aside>
28492859

2850-
The <dfn attribute for=IDBObjectStore>indexNames</dfn> getter steps are to
2851-
return a new {{DOMStringList}} associated with a [=sorted name list=] of the [=index/names=]
2852-
of [=/indexes=] in [=/this=]'s [=index set=].
2860+
<div algorithm>
2861+
The <dfn attribute for=IDBObjectStore>indexNames</dfn> getter steps are:
2862+
2863+
1. Let |names| be a [=/list=] of the [=index/names=] of the [=/indexes=] in [=/this=]'s [=index set=].
2864+
1. Return the result (a {{DOMStringList}}) of [=/creating a sorted name list=] with |names|.
2865+
2866+
</div>
2867+
28532868

28542869
<details class=note>
28552870
<summary>
@@ -4775,7 +4790,10 @@ enum IDBTransactionMode {
47754790

47764791
<div algorithm>
47774792

4778-
The <dfn attribute for=IDBTransaction>objectStoreNames</dfn> getter steps are to return a new {{DOMStringList}} associated with a [=sorted name list=] of the [=object-store/names=] of the [=/object stores=] in [=/this=]'s [=transaction/scope=].
4793+
The <dfn attribute for=IDBTransaction>objectStoreNames</dfn> getter steps are:
4794+
4795+
1. Let |names| be a [=/list=] of the [=object-store/names=] of the [=/object stores=] in [=/this=]'s [=transaction/scope=].
4796+
1. Return the result (a {{DOMStringList}}) of [=/creating a sorted name list=] with |names|.
47794797

47804798
</div>
47814799

@@ -6782,6 +6800,7 @@ For the revision history of the second edition, see [that document's Revision Hi
67826800
* Added {{IDBTransactionOptions/durability}} option and {{IDBTransaction/durability}} attribute. ([Issue #50](https://github.com/w3c/IndexedDB/issues/50))
67836801
* Specified [[#transaction-scheduling]] more precisely and disallow starting read/write transactions while read-only transactions with overlapping scope are running. ([Issue #253](https://github.com/w3c/IndexedDB/issues/253))
67846802
* Added <a href="#accessibility">Accessibility considerations</a> section. ([Issue #327](https://github.com/w3c/IndexedDB/issues/327))
6803+
* Used [[infra]]'s list sorting definition. ([Issue #346](https://github.com/w3c/IndexedDB/issues/346))
67856804

67866805
<!-- ============================================================ -->
67876806
# Acknowledgements # {#acknowledgements}

0 commit comments

Comments
 (0)