Skip to content

Commit 4035bea

Browse files
erratum in Example 6 regarding behavior of key generator with in-line key (#444)
SHA: 1b311f3 Reason: push, by inexorabletash Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5592067 commit 4035bea

File tree

1 file changed

+12
-21
lines changed

1 file changed

+12
-21
lines changed

index.html

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<title>Indexed Database API 3.0</title>
66
<meta content="ED" name="w3c-status">
77
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
8-
<meta content="Bikeshed version 60c422380, updated Thu Feb 20 19:11:22 2025 -0800" name="generator">
8+
<meta content="Bikeshed version b25686b9f, updated Fri Mar 14 14:15:20 2025 -0700" name="generator">
99
<link href="https://www.w3.org/TR/IndexedDB/" rel="canonical">
1010
<link href="logo-db.svg" rel="icon">
11-
<meta content="4270575333dfb91efa0e3d08a6c5658cd9971b83" name="revision">
11+
<meta content="1b311f3680c4b3dbfa66db214b59c8f06bc0d8f6" name="revision">
1212
<meta content="dark light" name="color-scheme">
1313
<link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css">
1414
<style>
@@ -1001,7 +1001,7 @@
10011001
<div class="head">
10021002
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
10031003
<h1 class="p-name no-ref" id="title">Indexed Database API 3.0</h1>
1004-
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2025-02-28">28 February 2025</time></p>
1004+
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2025-03-26">26 March 2025</time></p>
10051005
<details open>
10061006
<summary>More details about this document</summary>
10071007
<div data-fill-with="spec-metadata">
@@ -1011,7 +1011,7 @@ <h1 class="p-name no-ref" id="title">Indexed Database API 3.0</h1>
10111011
<dt>Latest published version:
10121012
<dd><a href="https://www.w3.org/TR/IndexedDB/">https://www.w3.org/TR/IndexedDB/</a>
10131013
<dt>Previous Versions:
1014-
<dd><a href="https://www.w3.org/TR/2025/WD-IndexedDB-3-20250226/" rel="prev">https://www.w3.org/TR/2025/WD-IndexedDB-3-20250226/</a>
1014+
<dd><a href="https://www.w3.org/TR/2025/WD-IndexedDB-3-20250228/" rel="prev">https://www.w3.org/TR/2025/WD-IndexedDB-3-20250228/</a>
10151015
<dt>Test Suite:
10161016
<dd><a href="https://github.com/web-platform-tests/wpt/tree/master/IndexedDB">https://github.com/web-platform-tests/wpt/tree/master/IndexedDB</a>
10171017
<dt>Feedback:
@@ -1039,15 +1039,13 @@ <h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="cont
10391039
</div>
10401040
<h2 class="no-num no-toc no-ref heading settled" id="sotd"><span class="content">Status of this document</span></h2>
10411041
<div data-fill-with="status">
1042-
<p> <em>This section describes the status of this document at the time of its publication. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="https://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at https://www.w3.org/TR/.</em> </p>
1043-
<p> This document was published by the <a href="https://www.w3.org/groups/wg/webapps">Web Applications Working Group</a> as an Editors Draft. This document is intended to become a W3C Recommendation. </p>
1044-
<p> This document was published by the <a href="https://www.w3.org/groups/wg/webapps">Web Applications Working Group</a> as a Working Draft.
1045-
1046-
Feedback and comments on this specification are welcome. Please use <a href="https://github.com/w3c/IndexedDB/issues">GitHub issues</a> Historical discussions can be found in the <a href="https://lists.w3.org/Archives/Public/public-webapps/">public-webapps@w3.org archives</a>. </p>
1047-
<p> Publication as an Editors Draft does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. This is a draft document and may
1048-
be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite
1049-
this document as other than work in progress. </p>
1050-
<p> This document was produced by a group operating under the <a href="https://www.w3.org/policies/patent-policy/20200915/"><abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>. <abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a href="https://www.w3.org/2004/01/pp-impl/114929/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains <a href="https://www.w3.org/policies/patent-policy/20200915/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="https://www.w3.org/policies/patent-policy/20200915/#sec-Disclosure">section 6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>. </p>
1042+
<p> This document was published by the <a href="https://www.w3.org/groups/wg/webapps">Web Applications Working Group</a> as an Editor’s Draft. </p>
1043+
<p> Publication as an Editor’s Draft does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. </p>
1044+
<p> This is a draft document
1045+
and may be updated, replaced
1046+
or obsoleted by other documents at any time.
1047+
It is inappropriate to cite this document as other than work in progress. </p>
1048+
<p>This document was produced by a group operating under the <a href="https://www.w3.org/policies/patent-policy/"><abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>. <abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a href="https://www.w3.org/groups/wg/webapps/ipr" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains <a href="https://www.w3.org/policies/patent-policy/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="https://www.w3.org/policies/patent-policy/#sec-Disclosure">section 6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>. </p>
10511049
<p>This document is governed by the <a href="https://www.w3.org/policies/process/20231103/" id="w3c_process_revision">03 November 2023 W3C Process Document</a>. </p>
10521050
</div>
10531051
<div data-fill-with="at-risk"></div>
@@ -2417,19 +2415,12 @@ <h3 class="heading settled" data-level="2.11" id="key-generator-construct"><span
24172415
<p>Attempting to store a property on a primitive value will fail and
24182416
throw an error. In the first example below the <a data-link-type="dfn" href="#object-store-key-path" id="ref-for-object-store-key-path⑨">key path</a> for the object store is "<code>foo</code>". The actual object
24192417
is a primitive with the value, <code>4</code>. Trying to define a
2420-
property on that primitive value fails. The same is true for arrays.
2421-
Properties are not allowed on an array. In the second example below,
2422-
the actual object is an array, <code>[10]</code>. Trying to define a
2423-
property on the array fails.</p>
2418+
property on that primitive value fails.</p>
24242419
<pre class="language-js highlight"><c- a>const</c-> store <c- o>=</c-> db<c- p>.</c->createObjectStore<c- p>(</c-><c- u>"store"</c-><c- p>,</c-> <c- p>{</c-> keyPath<c- o>:</c-> <c- u>"foo"</c-><c- p>,</c-> autoIncrement<c- o>:</c-> <c- kc>true</c-> <c- p>});</c->
24252420

24262421
<c- c1>// The key generation will attempt to create and store the key path</c->
24272422
<c- c1>// property on this primitive.</c->
24282423
store<c- p>.</c->put<c- p>(</c-><c- mf>4</c-><c- p>);</c-> <c- c1>// will throw DataError</c->
2429-
2430-
<c- c1>// The key generation will attempt to create and store the key path</c->
2431-
<c- c1>// property on this array.</c->
2432-
store<c- p>.</c->put<c- p>([</c-><c- mf>10</c-><c- p>]);</c-> <c- c1>// will throw DataError</c->
24332424
</pre>
24342425
</div>
24352426
<h2 class="heading settled" data-level="3" id="exceptions"><span class="secno">3. </span><span class="content">Exceptions</span><a class="self-link" href="#exceptions"></a></h2>

0 commit comments

Comments
 (0)