Web browsers differences: Difference between revisions
Jump to navigation
Jump to search
(→Opera) |
(→Opera) |
||
Line 9: | Line 9: | ||
== Opera == | == Opera == | ||
* location.hash is bugged when the hash contains a question mark. | * location.hash is bugged when the hash contains a question mark. '''Update:''' this seems to have been fixed. | ||
* myForm.readAttribute("action") behaves differently in Opera, as it adds the hostname before (which is bad!). The bug was apparently fixed in Opera 9.50 ([http://dev.rubyonrails.org/ticket/10345 see this bug reference]). | * myForm.readAttribute("action") behaves differently in Opera, as it adds the hostname before (which is bad!). The bug was apparently fixed in Opera 9.50 ([http://dev.rubyonrails.org/ticket/10345 see this bug reference]). | ||
* Opera automatically adds margins to forms. | * Opera automatically adds margins to forms. |
Revision as of 19:08, 15 March 2008
Internet Explorer
- Debugging JavaScript on IE is a lot harder than on FF. The best is to install Firebug Lite. However, you must not use console.log() before the window is loaded (else you'll get a very annoying fatal error saying IE cannot open the page).
- Only use Prototype JS code or you'll run into troubles (mainly because all elements should be extended Prototype elements to ensure cross-browser behavior).
- IE 7 automatically adds margins to forms. You can override that behavior with CSS.
Opera
- location.hash is bugged when the hash contains a question mark. Update: this seems to have been fixed.
- myForm.readAttribute("action") behaves differently in Opera, as it adds the hostname before (which is bad!). The bug was apparently fixed in Opera 9.50 (see this bug reference).
- Opera automatically adds margins to forms.