Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4028346
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:12:32+00:00 2026-05-20T11:12:32+00:00

I often suffer from the problem opposite what’s described in this post . That

  • 0

I often suffer from the problem opposite what’s described in this post. That is, I’ve got code in a legacy application designed only for Internet Explorer and I need to get it to work in Firefox.

For example, I recently worked on an app that made heavy use of manually simulating click events, like this:

select.options[0].click();

…which completely broke the application in Firefox. But you wouldn’t find that information in the answers to the other question, because that’s not something you’d ever even attempt if your app first targeted Firefox.

What other things should a developer updating a legacy IE-only application look for when migrating to modern browsers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:12:33+00:00Added an answer on May 20, 2026 at 11:12 am

    Here’s what my previous research uncovered. I’ve seen each of these issues prevent a real-world application from working in Firefox. Please feel free to edit.


    The DOM

    document.createElement should take only a tag name, but IE lets you
    pass arbitrary HTML (with attributes, etc)

    • http://msdn.microsoft.com/en-us/library/ms536389(VS.85).aspx

    document.getElementById should only find elements with the given id,
    but IE also returns elements with the given name

    • http://msdn.microsoft.com/en-us/library/ms536437(VS.85).aspx

    IE creates implicit global variables for DOM elements, but referencing an element this way in Firefox produces the following warning:

    “Element referenced by ID/NAME in the
    global scope. Use W3C standard
    document.getElementById() instead.”

    • http://www.west-wind.com/weblog/posts/677442.aspx
    • http://code.google.com/p/fbug/issues/detail?id=853

    IE’s document.all is a collection of all elements in the document. It is not supported by Firefox.

    • http://msdn.microsoft.com/en-us/library/ms537434(v=vs.85).aspx

    An Element’s text in IE is retrieved using the innerText property. Firefox calls this property textContent.

    • http://msdn.microsoft.com/en-us/library/ms533899(v=vs.85).aspx

    IE allows items in collections to be referenced using function syntax (i.e. with parentheses) instead of the normal array indexing syntax (i.e. with brackets). For example, the following works in IE: document.forms(0). Firefox does not support this usage.

    • http://msdn.microsoft.com/en-us/library/ms537457(v=VS.85).aspx

    HTMLTableElement rows and cells should refer to HTMLCollections, but
    IE allows them to be called as functions; Firefox does not.

    • http://msdn.microsoft.com/en-us/library/ms537484%28VS.85%29.aspx

    IE defaults insertRow‘s index to -1; Firefox errors if the argument is omitted.

    • http://msdn.microsoft.com/en-us/library/ms536457%28VS.85%29.aspx
    • https://developer.mozilla.org/en/DOM/table.insertRow

    The Node.text property is IE-only

    • http://msdn.microsoft.com/en-us/library/ms534677%28VS.85%29.aspx
    • https://developer.mozilla.org/En/DOM/Node.textContent

    Events

    window.event is an IE-specific way to access event information; it’s not
    supported by Firefox.

    • http://msdn.microsoft.com/en-us/library/ms535863(v=vs.85).aspx
    • http://www.quirksmode.org/js/events_access.html#link3

    Events are attached to Elements in IE using attachEvent. Firefox uses addEventListener. Note, also, that the names of events are subtly different in each browser.

    • http://msdn.microsoft.com/en-us/library/ms536343(v=vs.85).aspx

    In IE it’s possible to get the mouse position from non-mouse events, but it’s not in other browsers. In addition, the names of the mouse-coordinate properties are not the same in IE and Firefox.

    • http://msdn.microsoft.com/en-us/library/ms533567(v=vs.85).aspx
    • http://msdn.microsoft.com/en-us/library/ms533568(v=vs.85).aspx
    • http://www.quirksmode.org/js/events_properties.html#position

    IE supports a click method for triggering the onclick event on HTML elements. No such function exists in Firefox.

    • http://msdn.microsoft.com/en-us/library/ms536363(v=vs.85).aspx
    • http://lifescaler.com/2008/04/simulating-mouse-clicks-in-javascript/
    • http://www.devtoolshed.com/content/fix-firefox-click-event-issue

    XML

    Firefox splits text nodes into 4096-char blocks; IE does not. This
    means that things like childNodes will be different in IE and Firefox.

    • Is there a 4096 character limit for JavaScript XML text nodes?

    Internet Explorer defines a parseError.errorCode property on
    XMLDocuments for detecting parser errors. Firefox loads an XML document that contains error information in the document with documentElement.nodeName=="parsererror".

    IE ignores whitespace in XML; firstChild always returns the first
    ELEMENT_NODE

    • http://www.w3schools.com/dom/prop_element_firstchild.asp
    • https://developer.mozilla.org/en/Whitespace_in_the_DOM

    The Node.xml property is IE-only

    • http://www.w3schools.com/dom/prop_node_xml.asp
    • http://www.grange.com.br/dicas-tecnicas/40-lotus/345-dom-xml-wrapper-for-javascript

    Further reading

    • http://www.reloco.com.ar/mozilla/compat.html
    • https://developer.mozilla.org/en/migrate_apps_from_internet_explorer_to_mozilla
    • http://www.impressivewebs.com/7-javascript-differences-between-firefox-ie/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Often, I found OutOfMemoryException on IBM Websphere Application Server. I think this exception occur
Often, programmers write code that generates other code. (The technical term is metaprogramming ,
In my application, I'm retrieving content from the database very often. So I'm likely
Often multiple applications share a large codebase of libraries that change often in development.
Often when I post a comment or answer on a site I like to
I'm working with a Win32 application that needs to create a variety of custom
I am writing a simple Python program. My program seems to suffer from linear
For example, I often use this: [self performSelector:@selector(doSomethingAfterDelay:) withObject:someObject afterDelay:someDelay]; Now, lets say I
Ok, so to explain; I am developing for a system that can suffer a
Is this a technology I should spend much time evaluating? http://code.google.com/chrome/chromeframe/ Chrome Frame is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.