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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:33:51+00:00 2026-06-07T22:33:51+00:00

I’m about halfway through Javascript the Definitive guide and realize now that a primary

  • 0

I’m about halfway through “Javascript the Definitive guide” and realize now that a primary reason for something like jquery is because of the extreme inconsistencies in the Javascript/DOM interface on different browsers. On virtually every page is the mention of some document property, with the proviso that (for example) it works on every browser except IE prior to version 8 (or Firefox or whatever).

So, is there a JS library out there that just implements the Javascript DOM exactly as it functions in say Chrome, but so that it can be used for all browsers. If there isn’t, then its seems pointless to learn the DOM – might as well just stick to Jquery it seems.

  • 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-07T22:33:53+00:00Added an answer on June 7, 2026 at 10:33 pm

    No such library exists that just makes all DOMs act the same. Part of the reason for that is that the DOM isn’t easy to patch in a reliable way that won’t conflict with things that other libraries might be doing. And, part of the reason is that some things can be modified in their native form. For example, if an object attribute that can be accessed directly (without a function call) sometimes has the wrong value in some browser, there’s no easy way to patch that to fix it. And, part of the reason is that many projects have blocks of code from many sources, some of which use the DOM directly and some of which uses a library. If the library changes the DOM behavior, then the code that uses the DOM directly and expects it to work the way it works in the native browser may break.

    You can argue that all code should just code to the way the DOM is supposed to work and use this magic shim layer that fixes the DOM, but that’s a practical argument that you just can’t win. There’s way too much code out there that expects the IE6 DOM to work the broken way that it works in IE6. For example, jQuery itself expects the IE6 DOM to be broken. If you want to use this magic DOM fixer shim, then it would be completely incompatible with any jQuery code.

    So instead, libraries have found that it’s better and easier to shadow the DOM with a parallel way of accessing things and the patches and browser fixes go in this parallel layer. Then, any existing code that expects the DOM to work the way that browser makes it work is not affected, but any code written to use the library works how the library expects it to. Both goals can be satisfied. Yes, it’s a “new” API to learn, but it really isn’t all that different. If you know the DOM API, much of jQuery is a direct parallel just expressed in a common jQuery form.

    For example, in jQuery you can access any attribute on a DOM object with .attr("propName") where propName is the DOM property name. If you’ve learned the DOM property names, you now know how to access all of them in jQuery. Similarly you can select any set of objects in the page with jQuery(CSS3selector). So, if you know CSS3 selectors, then you now know how to select any set of objects in jQuery. Yes, there are many enhanced pieces of functionality in jQuery that add new features that don’t exist in the DOM, but you can learn those separately as desired. They aren’t in the regular DOM anyway.

    Lastly, there are some shim libraries that will adding missing features. For example, there are shim libraries to add ES5 methods to standard javascript objects such as Array.indexOf(). These shim libraries do partially work the way you’re talking about. If the method is not present, they add it so it works just like the standard implementation works. They don’t attempt to fix a broken implementation, but they do add things that are missing because it’s an older browser version so that the developer can then just code to ES5 without worry about browser compatibility. This is a much more limited goal than fixing the whole DOM in all browsers and has generally been succcessful.

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

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string

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.