Bug 19898 - Deprecate TYPE_MISMATCH_ERR in favor of TypeError
Summary: Deprecate TYPE_MISMATCH_ERR in favor of TypeError
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-07 20:41 UTC by Erik Arvidsson
Modified: 2012-11-09 14:38 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Arvidsson 2012-11-07 20:41:35 UTC
It is unclear why we have TYPE_MISMATCH_ERR. In WebKit it is used in places where we have are supposed to throw a TypeError (which is often a violation of the WebIDL spec).
Comment 1 Jonas Sicking 2012-11-07 22:04:20 UTC
I agree. We only use this in 5 places in gecko, all of which seems better to switch to throwing TypeError.

http://mxr.mozilla.org/mozilla-central/ident?i=NS_ERROR_DOM_TYPE_MISMATCH_ERR
Comment 2 Anne 2012-11-09 14:38:29 UTC
https://github.com/whatwg/dom/commit/3c29e293d32945d3a5363bb241d4d215227e0d7b

Filed bug 19921 on HTML. Any other places this is used?