homepage Welcome to WebmasterWorld Guest from 54.198.224.121
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Opera 7 breaks javascript that works in IE and NN
innerHTML and script elements are broken
ricfink




msg:1486315
 4:32 am on Feb 28, 2003 (gmt 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?

 

Pinetree




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

I care, just because I use Opera.

gph




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

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>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved