W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

[csswg-drafts] [cssom] IndexSizeError vs RangeError (#3828)

From: Mike Sidorov via GitHub <sysbot+gh@w3.org>
Date: Mon, 15 Apr 2019 13:40:36 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-433288759-1555335634-sysbot+gh@w3.org>
FarSeeing has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom] IndexSizeError vs RangeError ==
The [CSS Object Model spec](https://drafts.csswg.org/cssom/#css-rules) says that both inserting and deleting rule should throw `InvalidStateError` on exception:
>If index is greater than length, then throw an IndexSizeError exception.

At the same time [Web IDL linked page](https://heycam.github.io/webidl/#indexsizeerror) says that `InvalidStateError` is deprecated and `RangeError` should be used instead:
>The DOMException names marked as deprecated are kept for legacy purposes but their usage is discouraged.

What do you think about updating spec to mention `RangeError`?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3828 using your GitHub account
Received on Monday, 15 April 2019 13:40:37 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:46 UTC