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 8429665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:23:59+00:00 2026-06-10T05:23:59+00:00

I want to build a library in JavaScript/JScript/ECMAScript…whatever you want to call it, which

  • 0

I want to build a library in JavaScript/JScript/ECMAScript…whatever you want to call it, which will target modern standards (HTML5, CSS3, ESv5) with that in mind, any browser that supports the standard! Now I know there are already plenty of useful libraries out there, i.e. jQuery and MooTools. Of course they’re great and I already use those where necessary, but I should not be forced to jump on the same bandwagon as every other developer just because it’s popular!

So for the sake of the following questions, let us not concern ourselves with 3rd party libraries such as jQuery and MooTools. Lets get down to nitty-gritty JavaScript/JScript/ECMAScript.

Firstly, I asked a question prior to this (What's the difference between JavaScript, JScript & ECMAScript?), as I did not know what the difference was.

Thankfully I concluded the following:

ECMAScript is the language specification. JavaScript and JScript are dialects of ECMAScript.

JavaScript is Mozilla’s implementation of ECMAScript.

JScript is Microsoft’s implementation of ECMAScript.

OK, that was a nice simple answer wasn’t it? But here’s some questions which stem from that:

  1. is “JavaScript” supported in non-mozilla browsers, and to what extent?
  2. is “JScript” supported in non-microsoft browsers, and to what extent?

Based on those two questions, I did a little digging and ran a simple test on IE9, FF14 and GC19.

Here is the test code:

<!DOCTYPE html>
<html>
    <head>
        <title>HTML 5 Template</title>
        <script language="JavaScript1.3">
            jsver = "1.3";
        </script>
        <script language="JavaScript1.4">
            jsver = "1.4";
        </script>
        <script language="JavaScript1.5">
            jsver = "1.5";
        </script>
        <script language="JavaScript1.6">
            jsver = "1.6";
        </script>
        <script language="JavaScript1.7">
            jsver = "1.7";
        </script>
        <script language="JavaScript1.8">
            jsver = "1.8";
        </script>
        <script type="text/javascript">
            document.write("<B>Your browser supports JavaScript version " + jsver + ".</B>")
        </script>
    </head>
    <body>
    </body>
</html>

The results were: IE9 = JSv1.3, FF14 = JSv1.8, GC19 = JSv1.7

OK, then I ran this test, which tests for ECMAScript version 5 support:
http://kangax.github.com/es5-compat-table/#showold

Again using the same browsers (IE9, FF14, GC19), ESv5 seems to be fairly well supported!

Now comes the tricky bit! I come from a Microsoft background, and write software using languages like C#, ASP.NET etc, so naturally, my IDE of choice is Visual Studio (currently 2010). When I look through the JavaScript intellisense I see things like ActiveXObject, Array, Object, etc.

  1. Should I trust VS2010’s intellisense?
  2. Where can I find a reference of ESv5 supported objects and features?
  3. How do I detect if a browser supports a particular object or feature?
  4. Is there anything better than VS2010 out there that will help me write compliant ESv5 code?
  5. Is it safe to override implementations of existing objects like Object, Number, Boolean etc, or should I just extend the existing implementation?

Finally, concerning myself with jQuery. Let’s say I can’t be bothered to write the core compliancy & functionality myself, can I just write my library to sit on top of jQuery…or is this just a copout?

  • 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-10T05:24:00+00:00Added an answer on June 10, 2026 at 5:24 am

    1) Nope. Certainly it won’t restrict to just valid ECMAScript.

    2) http://kangax.github.com/es5-compat-table/ is always useful.

    3) You can just check to see if it’s defined. E.g.

    typeof(Array.isArray) === 'function'; // true in newer browsers, false in IE8
    

    4) Your best bet is to read the spec! Using "use strict"; in your code will also catch some classes of errors and it good practise. More explanation on strict mode at http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/

    5) Certainly I wouldn’t replace the original objects. If you’re going to extend properties I’d first double-check that a compliant implementation doesn’t already exist. E.g. PrototypeJS added (before browsers implemented it) a document.getElementsByClassName. When browsers started implementing it natively they found out that sites using Prototype were still using the slow JS-based version. The fix was just to wrap Prototype’s definition in a if (document.getElementsByClassName == undefined) { }

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

Sidebar

Related Questions

I want to build a shared library. GNU/Linux is the development and target platform.
I want to build some statistics on which Java standard library classes (those in
We want to build a google map liked javascript library to show our map
I write a small javascript library, it use a image. I want to build
I want to build a DLL Class Library use COM Interop, with C#, target
I want to build my own Javascript library for this I need to master
I want to build a form_tag that will allow me to post a new
I want to build a static library for iphone. I want to give my
I want to build a static library (*.LIB file) GNU libiconv on windows to
I want to build a static library that requires openssl for iPhone. It can't

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.