This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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).
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
https://github.com/whatwg/dom/commit/3c29e293d32945d3a5363bb241d4d215227e0d7b Filed bug 19921 on HTML. Any other places this is used?