Web browsers differences

From Elvanör's Technical Wiki
Revision as of 12:36, 3 December 2007 by Elvanor (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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!).
  • Opera automatically adds margins to forms.