On 7/6/2011 6:06 PM, Allen Wirfs-Brock wrote:
Any work with DOM API (at least in Firefox) makes even this case impractical. You'll be luck if the exception has *any* meaningful content.I'd much prefer to see code that looks like: try {doSomeDOMStuff() } catch (e) { switch (e.name) { case "NoNotificationAllowedError": ...; break; case "HierarchyRequestError": ...; break; default: throw e } }
jjb