2

Possible Duplicate:
Is jquery a javascript library or framework?

jQuery: The Write Less, Do More, JavaScript Library.

Why do people call it a framework when it clearly isn't? Also, why does jQuery call itself a library and Mootools calls itself a framework?

I'm in a debate. Mootools, jQuery, Prototype, they are libraries. Are they not?

Community
  • 1
  • 1
Robert Ross
  • 1,895
  • 2
  • 23
  • 32

1 Answers1

0

jQuery and other similar JavaScript libraries (my opinion on that one) blur the line between library and framework because they in some or all instances override the DOM functionality in a similar fashion to the way that modern application development frameworks override the default APIs on other platforms.

The are still libraries, but they are robust enough that you can treat them like a framework and never work with the underlying API (in this instance, the DOM).

Jonathan Rich
  • 1,740
  • 10
  • 11
  • In fact jQuery does *not* override DOM methods. The original functions stay intact. – pimvdb Dec 08 '11 at 22:17
  • Yes, of course that's true but there are many people who never interact with the DOM because jQuery provides everything they need. And then when they need something jQuery can't do, they come here. :p – Jonathan Rich Dec 08 '11 at 22:22