From 24a82b2deddc5b0bece2aede88f60cfe13b9f77d Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Thu, 8 Dec 2016 17:06:51 +0100 Subject: [PATCH 1/2] Add missing legacy error names. Fixes: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27732 Fixes: https://wicg.github.io/entries-api/#issue-bfc3b40a --- index.bs | 34 ++++++++++++++++++++++++++++++++-- index.html | 20 ++++++++++++++++++++ 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index decdef9b..8cfe0859 100644 --- a/index.bs +++ b/index.bs @@ -4687,8 +4687,22 @@ Note: If an error name is not listed here, please file a bug as indicated at the - "InvalidAccessError"
- INVALID_ACCESS_ERR (15) + "DOMStringSizeError"
+ DOMSTRING_SIZE_ERR (2) + + Use RangeError instead. + + + + "NoDataAllowedError"
+ NO_DATA_ALLOWED_ERR (6) + + — + + + + "InvalidAccessError"
+ INVALID_ACCESS_ERR (15) Use TypeError for invalid arguments, @@ -4696,6 +4710,22 @@ Note: If an error name is not listed here, please file a bug as indicated at the "{{NotAllowedError!!exception}}" for denied requests. + + + "ValidationError"
+ VALIDATION_ERR (16) + + — + + + + "TypeMismatchError"
+ TYPE_MISMATCH_ERR (17) + + + Use TypeError instead. + + diff --git a/index.html b/index.html index ace8cbc0..4a61a473 100644 --- a/index.html +++ b/index.html @@ -5193,11 +5193,23 @@

DOMException Alternative + + "DOMStringSizeError"
DOMSTRING_SIZE_ERR (2) + Use RangeError instead. + + "NoDataAllowedError"
NO_DATA_ALLOWED_ERR (6) + — "InvalidAccessError"
INVALID_ACCESS_ERR (15) Use TypeError for invalid arguments, "NotSupportedError" for unsupported operations, and "NotAllowedError" for denied requests. + + "ValidationError"
VALIDATION_ERR (16) + — + + "TypeMismatchError"
TYPE_MISMATCH_ERR (17) + Use TypeError instead.

2.6. Enumerations

@@ -12720,6 +12732,8 @@

DOMException constructor object, in §3.13
  • DOMException prototype object, in §3.13.1
  • DOMString, in §2.11.14 +
  • DOMSTRING_SIZE_ERR, in §2.5.1 +
  • DOMStringSizeError, in §2.5.1
  • DOMTimeStamp, in §4.2
  • double, in §2.11.12
  • effective overload set, in §2.2.6 @@ -12849,6 +12863,8 @@

    NETWORK_ERR, in §2.5.1
  • NetworkError, in §2.5.1
  • NewObject, in §3.3.10 +
  • NO_DATA_ALLOWED_ERR, in §2.5.1 +
  • NoDataAllowedError, in §2.5.1
  • NoInterfaceObject, in §3.3.11
  • NO_MODIFICATION_ALLOWED_ERR, in §2.5.1
  • NoModificationAllowedError, in §2.5.1 @@ -12956,6 +12972,8 @@

    typed array types, in §2.11
  • typedef, in §2.8
  • TypeError, in §2.5 +
  • TYPE_MISMATCH_ERR, in §2.5.1 +
  • TypeMismatchError, in §2.5.1
  • type name, in §2.11
  • Uint16Array, in §2.11.30
  • Uint32Array, in §2.11.30 @@ -12978,6 +12996,8 @@

    URLMismatchError, in §2.5.1
  • user object, in §2.10
  • USVString, in §2.11.16 +
  • VALIDATION_ERR, in §2.5.1 +
  • ValidationError, in §2.5.1
  • value iterator, in §2.2.7
  • value pairs to iterate over, in §2.2.7
  • variadic, in §2.2.3 From 823a0f073d719ea60ea3003b18d36c2d8e21fd45 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Fri, 9 Dec 2016 13:49:51 +0100 Subject: [PATCH 2/2] Address review comments. --- index.bs | 6 ++---- index.html | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/index.bs b/index.bs index 8cfe0859..a26ada6d 100644 --- a/index.bs +++ b/index.bs @@ -4690,7 +4690,7 @@ Note: If an error name is not listed here, please file a bug as indicated at the "DOMStringSizeError"
    DOMSTRING_SIZE_ERR (2) - Use RangeError instead. + Use RangeError. @@ -4722,9 +4722,7 @@ Note: If an error name is not listed here, please file a bug as indicated at the "TypeMismatchError"
    TYPE_MISMATCH_ERR (17) - - Use TypeError instead. - + Use TypeError. diff --git a/index.html b/index.html index 4a61a473..b93d3a42 100644 --- a/index.html +++ b/index.html @@ -1557,7 +1557,7 @@

    Web IDL

    -

    Editor’s Draft,

    +

    Editor’s Draft,

    This version: @@ -5195,7 +5195,7 @@

    "DOMStringSizeError"
    DOMSTRING_SIZE_ERR (2) - Use RangeError instead. + Use RangeError. "NoDataAllowedError"
    NO_DATA_ALLOWED_ERR (6) — @@ -5209,7 +5209,7 @@

    — "TypeMismatchError"
    TYPE_MISMATCH_ERR (17) - Use TypeError instead. + Use TypeError.

    2.6. Enumerations