Differences between Mozilla and Internet Explorer
Some time ago I read an article pointing out how to migrate apps from Internet Explorer to Mozilla. The articule is well written and worth a read, but it falls short on explaining all the real problems you can find when making a webapplication that works on both browsers (let alone something that works on Opera, Safari and Konqueror).
So I decided to blog about some of the inconsistencies that I’ve run into.
For this first post, one of my favorites, innerHTML support depends on your browser.
innerHTML is not part of any blessed W3C standard, it was introduced a long time ago in Internet Explorer. It’s so damn useful and so handy compared to using the DOM interfaces that this property was replicated by other browsers.
There is however a difference that you must be aware of, in Internet Explorer you can not change innerHTML on objects of type COL, COLGROUP, FRAMESET, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE or TR. You can do it in Firefox.
If you develop a site looking first how it works on Firefox and fixing it later in explorer, you may fall on this trap, thinking that everything is working ok, just to see that it’s not working at all when you check it later in explorer.
If you want to support several browsers, better do it from the front up, or there may be some design decisions that may be hard to overcome when you discover that this or that trick doesn’t work on one of your browsers.
Archives
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
Categories
- css (2)
- html (8)
- Interaction Design (6)
- javascript (11)
- miscellaneous (25)
- new features / improvements (55)
- panoramio (39)
- personal (2)
- places (25)
- Uncategorized (5)
give me brief explanation its very urgent to me.
well this is ture but u can a simple trick to make it possible
u can put the whole table in a div tag, then change the innerHTML of the div instead of the table, but u have to add the table tag to the new innerHTML…
hope u find this comment usefull