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

  • SEARCH
  • Home
  • 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 8206579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:43:26+00:00 2026-06-07T08:43:26+00:00

This is not a duplicate of the JS library to simulate Internet Explorer? question

  • 0

This is not a duplicate of the JS library to simulate Internet Explorer? question about simulating Internet Explorer’s CSS support; this is about JavaScript functions.

Does a JavaScript library exist which can simulate an environment like Internet Explorer’s, whereas JavaScript functions are concerned?

Basically, it would remove/overwrite the functions not supported by older versions of IE (like indexOf, etc.) or at least force any call to them to be ignored somehow.

Effectively, what I’m looking for is something almost like the opposite of Underscore.js and which theoretically could even be used to test (in non-IE browsers) that Underscore.js is doing what it’s meant to do.

Or is the amount of effort needed to simulate the environment so small that I can do it quickly myself? If so, how?


The use case I’m imagining:

Using this script to simulate an IE7 environment in Phantom.js‘s WebKit browser for automated (by Jenkins) JavaScript unit-testing with Jasmine / QUnit / etc (undecided).

  • 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-06-07T08:43:29+00:00Added an answer on June 7, 2026 at 8:43 am

    I’d advise against that, because you’d be testing how well you support this simulation then, not IE7 itself. IE7 engine is mostly compliant with standards, save for a few quirks (like bad reaction at dangling commas) and of course, missing environment from most recent standards. Most of those quirks are either in line with other browsers or cannot be easily emulated without writing complete JS engine in JS. You may want to consult a list on ES wiki for more details (and note “FF/Opera/Safari: same” sections, where you will likely want not to account for IE’s discrepancies with ES).

    Your best bet would be to either use a real IE7, that, BTW, have very good automation interface for pretty much any testing, or, at very least, more recent IE version with compatibility mode turned on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is about the specification of several functions in the C++11 Standard Library,
This is NOT a duplicate question, and the problem is driving me crazy. I
Note, this is not a duplicate of .prop() vs .attr() ; that question refers
I hope this question is not a duplicate but I didn't find anything equivalent
Please do not flag this as a duplicate, I'm not asking about what is
Possible Duplicate: Why does this intentionally incorrect use of strcpy not fail horribly? Below
I can't find a duplicate for this question, but I honestly hope I'm not
Possible Duplicate: Javascript library: to obfuscate or not to obfuscate - that is the
This is not a duplicate post, i just done research but not helping. First,
Nota: this is not a duplicate of Translating PHP date() for Multilingual Site .

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.