Developers › A Journal from Behind the Trenches
Site compatibility: When being "too compatible" causes problems
The site patching blog had a new update last week about a type of problem that seems all too common:
So what are you going to do when you are, in a way, being "too compatible"?
Well, with Browser JS we can test possible changes to Opera's core while still being able to quickly remove the changes if they turn out to worsen things.
But once again, this shows how incredibly complex site compatibility is. There's no silver bullet. Even trying to be "too compatible" can cause problems!
For some time we have seen compatibility issues because Opera supports both addEventListener and attachEvent. In some cases this causes scripts to be run twice, in other cases attachEvent is simply used as an IE-detector, causing Opera to run the wrong codepath or get IE-only stylesheets or other bad things.
So what are you going to do when you are, in a way, being "too compatible"?
Well, with Browser JS we can test possible changes to Opera's core while still being able to quickly remove the changes if they turn out to worsen things.
But once again, this shows how incredibly complex site compatibility is. There's no silver bullet. Even trying to be "too compatible" can cause problems!
Readers' comments 19
Left under the original article, as archived.
About this article
| Published in | A Journal from Behind the Trenches |
|---|---|
| Date | October 25, 2010 |
| Author | Haavard |
| Tags | compatibility, opera, OtW, Browser JS |
| Original | Internet Archive |
SeldaekMonday, October 25, 2010 9:57:48 AM
And yes, I know in some cases the others are arguably wrong, and maybe even violating the standard, but at the end of the day what matters to people is being able to write stuff that doesn't break in every second browser.
ouzowtfMonday, October 25, 2010 10:49:26 AM
Originally posted by Seldaek:
Its been worked on that in the background. But its a huge effort to put into practice.
prd3Monday, October 25, 2010 11:05:38 AM
Originally posted by Seldaek:
Yay, another smart guy with a silver bullet solution. It's so easy to come up with amazing solutions, isn't it?
pepejeriaMonday, October 25, 2010 11:06:45 AM
This just causes headaches for developers.
prd3Monday, October 25, 2010 11:08:52 AM
Originally posted by pepejeria:
Why even support the proprietary document.all? Could it be to fix compatibility problems?
MyOpera team, please fix this!Monday, October 25, 2010 12:21:04 PM
Originally posted by prd3:
That's legacy stuff. I think we can move on now. We have slowly removed IE compatibility and hopefully it will continue. We ditched document.selection, fixed document.getElementsById and document.getElementsByName (testcase - first 2), hid document.all (which still causes bugs and perhaps can be removed now), and now this. We are slowly making our way towards shrugging off the old stuff.Charles SchlossMonday, October 25, 2010 1:42:09 PM
prd3Monday, October 25, 2010 1:56:45 PM
Originally posted by fearphage:
Sure. Point being that you don't just do that stuff randomly, and especially not everything at once because every little change can have huge consequences. Those consequences need to be figured out before Doing anything.
Kent E. OlssonMonday, October 25, 2010 2:18:45 PM
prd3Monday, October 25, 2010 2:46:21 PM
Originally posted by kentsopera:
In case you didn't notice, Opera now uses the Java plugin exclusively. There's no other way to use Java.
Kent E. OlssonMonday, October 25, 2010 3:18:30 PM
Opera plugin folder:
Java Deployment Toolkit 6.0.210.7application/java-deployment-toolkit C:\Program Files\Java\jre6\bin\new_plugin\npdeployJava1.dll
AND
Java(TM) Platform SE 6 U21
C:\Program Files\Java\jre6\bin\new_plugin\npjp2.dll
to be clear, npdeployJava1.dll & npjp2.dll Java plug-ins are in Java folder not Opera's "plugins"; previously, such plug-ins along with those from Netscape and Firefox resided in Opera/plugins.
It makes sense to me, inasmuch as Java updates are Opera independent, but accessable
Appreciate your interest and concern
Cutting SpoonMonday, October 25, 2010 4:23:59 PM
Kent E. OlssonMonday, October 25, 2010 6:10:32 PM
Cutting SpoonMonday, October 25, 2010 6:23:27 PM
Kent E. OlssonMonday, October 25, 2010 6:40:37 PM
pepejeriaSunday, November 7, 2010 4:10:12 PM
Originally posted by prd3:
You seem to be missing the point. Supporting attachEvent does not make Opera more compatible. Other browsers don't support it and they do just fine.
ChrisSunday, November 7, 2010 4:16:20 PM
Originally posted by pepejeria:
It does (or did) indeed make Opera more compatible. I doubt they added it for the fun of it.
pepejeriaSunday, November 7, 2010 5:46:45 PM
Originally posted by Slamdex:
Do you have any study to back this up or are you just assuming now?
prd3Monday, November 8, 2010 1:17:03 PM
Originally posted by pepejeria:
Of course it makes Opera more compatible. That's why it was added! Why on earth would they add it otherwise? Are you drunk?