Web browsers differences: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Opera) |
||
Line 11: | Line 11: | ||
* location.hash is bugged when the hash contains a question mark. | * location.hash is bugged when the hash contains a question mark. | ||
* myForm.readAttribute("action") behaves differently in Opera, as it adds the hostname before (which is bad!). | * 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 14:02, 14 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.
- 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.