Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Opera 7 breaks javascript that works in IE and NN

innerHTML and script elements are broken

4:32 am on Feb 28, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 10, 2003
votes: 0

As a developer, I ignored Opera until version 7 because getting things to work was just impossible. OK for static pages, but when anything but the most rudimentary scripting was involved, until 7 it was impossible.
However, even though they've implemented most of the DOM and the core Javascript implementation is complete, there's still a lot of problems - mostly in the way they deviate from norms established by IE and NN.
I like version 7 for a lot of reasons and feel that if they can just bring the Javascript/DOM support more into line with the industry norm, they'll have a product that a lot more developers are willing to take into account.

I was wondering if anyone else was bothering to check their script in Opera7 and how are they finding it?

Two quick peeves from me to start the ball rolling:

1) The innerHTML property does not pick up the contents of style elements, comments, or script elements. Why not? IE and NN and Moz all do this.

2) Creating a script element using the DOM seems to create a script element but it does not load and execute the file specified by the src attribute. This defies common sense and defeats the purpose of being able to create the element in the first place.
Once again, IE, NN, Moz do this.

Does anybody else out there care?

7:10 am on Feb 28, 2003 (gmt 0)

New User

10+ Year Member

joined:Feb 27, 2003
votes: 0

I care, just because I use Opera.


10:49 pm on Mar 15, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Jan 31, 2002
votes: 0

All in all I think it's a huge improvement. It's nice to have a 3rd browser to test DOM stuff in.

<style type="text/css">
h1 {
color: blue;
<style type="text/css" id="red">
h1 {
color: red;
<script type="text/javascript">
document.getElementById('red').disabled = true

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members