Welcome to WebmasterWorld Guest from 54.227.125.200

Forum Moderators: open

Message Too Old, No Replies

Opera 7 breaks javascript that works in IE and NN

innerHTML and script elements are broken

     

ricfink

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

10+ Year Member



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?

Pinetree

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

10+ Year Member



I care, just because I use Opera.

gph

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

10+ Year Member



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

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

Featured Threads

Hot Threads This Week

Hot Threads This Month