Opera: please use bug detection, not browser detection
dev.opera.com
dev.opera.com
On the bright side, it is often possible to write your fix in a non-invasive way, or adjust your code to not depend on the buggy behaviour. (For example, some browsers will still fire a keypress event if you cancel the corresponding keydown event. My code editor[1] ended up checking again in the keypress handler for keys that should have been handled, and cancelling them again.)
Respect to Opera for blogging about this.
This is exactly as it should be: the burden should be on the browser developers to investigate bugs and write the tests they want web developers to use in their workarounds.
To their credit, they did eventually fix it.