Skip to content

Commit fb27b8a

Browse files
committed
Improvements to DOMException error names table
* Deprecate "URLMismatchError". Since whatwg/html@b261d16 it is no longer used by anything in the spec ecosystem. * Make it clearer that "InUseAttributeError" and "InvalidNodeTypeError" are DOM-specific, by tweaking their descriptions and adding the [DOM] reference. * Make it clearer that "ConstraintError", "TransactionInactiveError", "ReadOnlyError", and "VersionError" are IndexedDB-specific, by adding the [INDEXEDDB] reference.
1 parent b03aa9e commit fb27b8a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

index.bs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5190,12 +5190,12 @@ over just using {{SyntaxError!!exception}} to refer to the {{DOMException}}. [[D
51905190
</tr>
51915191
<tr>
51925192
<td>"<dfn id="hierarchyrequesterror" exception export><code>HierarchyRequestError</code></dfn>"</td>
5193-
<td>The operation would yield an incorrect [=node tree=]. [[!DOM]]</td>
5193+
<td>The operation would yield an incorrect [=node tree=]. [[DOM]]</td>
51945194
<td><dfn id="dom-domexception-hierarchy_request_err" for="DOMException" const export><code>HIERARCHY_REQUEST_ERR</code></dfn>&nbsp;(3)</td>
51955195
</tr>
51965196
<tr>
51975197
<td>"<dfn id="wrongdocumenterror" exception export><code>WrongDocumentError</code></dfn>"</td>
5198-
<td>The object is in the wrong [=document=]. [[!DOM]]</td>
5198+
<td>The object is in the wrong [=document=]. [[DOM]]</td>
51995199
<td><dfn id="dom-domexception-wrong_document_err" for="DOMException" const export><code>WRONG_DOCUMENT_ERR</code></dfn>&nbsp;(4)</td>
52005200
</tr>
52015201
<tr>
@@ -5220,7 +5220,7 @@ over just using {{SyntaxError!!exception}} to refer to the {{DOMException}}. [[D
52205220
</tr>
52215221
<tr>
52225222
<td>"<dfn id="inuseattributeerror" exception export><code>InUseAttributeError</code></dfn>"</td>
5223-
<td>The attribute is in use.</td>
5223+
<td>The attribute is in use by another [=/element=]. [[DOM]]</td>
52245224
<td><dfn id="dom-domexception-inuse_attribute_err" for="DOMException" const export><code>INUSE_ATTRIBUTE_ERR</code></dfn>&nbsp;(10)</td>
52255225
</tr>
52265226
<tr>
@@ -5273,9 +5273,9 @@ over just using {{SyntaxError!!exception}} to refer to the {{DOMException}}. [[D
52735273
<td>The operation was aborted.</td>
52745274
<td><dfn id="dom-domexception-abort_err" for="DOMException" const export><code>ABORT_ERR</code></dfn>&nbsp;(20)</td>
52755275
</tr>
5276-
<tr>
5276+
<tr class="deprecated">
52775277
<td>"<dfn id="urlmismatcherror" exception export><code>URLMismatchError</code></dfn>"</td>
5278-
<td>The given URL does not match another URL.</td>
5278+
<td><strong>Deprecated.</strong></td>
52795279
<td><dfn id="dom-domexception-url_mismatch_err" for="DOMException" const export><code>URL_MISMATCH_ERR</code></dfn>&nbsp;(21)</td>
52805280
</tr>
52815281
<tr>
@@ -5290,7 +5290,7 @@ over just using {{SyntaxError!!exception}} to refer to the {{DOMException}}. [[D
52905290
</tr>
52915291
<tr>
52925292
<td>"<dfn id="invalidnodetypeerror" exception export><code>InvalidNodeTypeError</code></dfn>"</td>
5293-
<td>The supplied node is incorrect or has an incorrect ancestor for this operation.</td>
5293+
<td>The supplied [=node=] is incorrect or has an incorrect ancestor for this operation. [[DOM]]</td>
52945294
<td><dfn id="dom-domexception-invalid_node_type_err" for="DOMException" const export><code>INVALID_NODE_TYPE_ERR</code></dfn>&nbsp;(24)</td>
52955295
</tr>
52965296
<tr>
@@ -5315,7 +5315,7 @@ over just using {{SyntaxError!!exception}} to refer to the {{DOMException}}. [[D
53155315
</tr>
53165316
<tr>
53175317
<td>"<dfn id="constrainterror" exception export><code>ConstraintError</code></dfn>"</td>
5318-
<td>A mutation operation in a transaction failed because a constraint was not satisfied.</td>
5318+
<td>A mutation operation in a transaction failed because a constraint was not satisfied. [[INDEXEDDB]]</td>
53195319
<td>—</td>
53205320
</tr>
53215321
<tr>
@@ -5325,17 +5325,17 @@ over just using {{SyntaxError!!exception}} to refer to the {{DOMException}}. [[D
53255325
</tr>
53265326
<tr>
53275327
<td>"<dfn id="transactioninactiveerror" exception export><code>TransactionInactiveError</code></dfn>"</td>
5328-
<td>A request was placed against a transaction which is currently not active, or which is finished.</td>
5328+
<td>A request was placed against a transaction which is currently not active, or which is finished. [[INDEXEDDB]]</td>
53295329
<td>—</td>
53305330
</tr>
53315331
<tr>
53325332
<td>"<dfn id="readonlyerror" exception export><code>ReadOnlyError</code></dfn>"</td>
5333-
<td>The mutating operation was attempted in a "readonly" transaction.</td>
5333+
<td>The mutating operation was attempted in a "readonly" transaction. [[INDEXEDDB]]</td>
53345334
<td>—</td>
53355335
</tr>
53365336
<tr>
53375337
<td>"<dfn id="versionerror" exception export><code>VersionError</code></dfn>"</td>
5338-
<td>An attempt was made to open a database using a lower version than the existing version.</td>
5338+
<td>An attempt was made to open a database using a lower version than the existing version. [[INDEXEDDB]]</td>
53395339
<td>—</td>
53405340
</tr>
53415341
<tr>

0 commit comments

Comments
 (0)