/    Sign up×
Community /Pin to ProfileBookmark

Suggestion to solve all the IE only websites.

Hello

As you know, there are many websites which are not write good and contain bed Javascript.

The main problem with Javascript is the “expando” which allow create custom attributes and methods to exist objects.
Therefore IE only Javascript code is not mark as mistake and the page is not work as except.

There are two possible solutions:

  • 1.

    Create Javascript script which build all the non w3c attributes and methods.

  • 2.

    Create a script which change all the the non supported to the corresponding methods and attributes.

  • The second is better.

    Although both are not simple, you can suggest it to Google summer of code and get pay of the work.

    After that, there will no excuse to any website to have bad Javascript.

    Nadav

    [url]https://bugzilla.mozilla.org/show_bug.cgi?id=363048[/url]

    I also posted this here:
    [url]http://wiki.mozilla.org/Talk:Community:SummerOfCode06[/url]

    to post a comment
    JavaScript

    4 Comments(s)

    Copy linkTweet thisAlerts:
    @konithomimoMar 04.2007 — There is no such thing as IE only JS code, since IE doesn't use JavaScript. It uses JScript, which is M$ version of JavaScript, which they created because they were upset that they didnt create JavaScript first. So, IE will never fully integrate with JS. M$ won't take another ego blow and admit that JS is better the JScript. Either way, when a cross-browser version is not available, it is better to code for non-IE browsers and then apply small fixes for IE. No matter how hard you try, you will never be able to apply fixes for all of IEs f-ups.
    Copy linkTweet thisAlerts:
    @nadavvinauthorMar 05.2007 — It doesn't matter how Microsoft call to it.

    I suggested to create a program which transform from Jscript to JavaScript.

    The syntax is the same and there are only differences in objects and their methods and properties.
    Copy linkTweet thisAlerts:
    @nadavvinauthorMar 08.2007 — I guess you didn't understand good what I suggest.

    For example that any 'document.all.something' will convert to 'document.getElementById("something")'

    For advance case like 'innerHTML' will convert to methods to perform that.

    If there projects for converting one language to another, why not to make project to convert from Jscript to JavaScript.

    For example:

    http://code.google.com/p/java2python/
    Copy linkTweet thisAlerts:
    @nadavvinauthorMar 18.2007 — I found script which convert from vbscript to javascript:

    http://slingfive.com/pages/code/scriptConverter/demo.html

    Work on IE only.
    ×

    Success!

    Help @nadavvin spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.25,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...