Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why jQuery is not a W3C standard? [closed]

I've read and heard that jQuery is not a W3C standard but at the same time I couldn't find the reason why it is so. Any explanation with reasoning are appreciated.

EDIT: OK, may be I should reword/rephrase my original question. Actually, the question I had in my mind was -- Does jQuery follow W3C standards? but while posting it just got reworded.

like image 619
Gnanam Avatar asked Jul 03 '12 14:07

Gnanam


1 Answers

There are already W3 standards for selecting and manipulating elements, jQuery is just a library that facilitates that. In other words, it is possible to do everything jQuery can do with regular JavaScript, so there is no reason to make it any kind of standard.

As to the edited version "does jQuery follow W3C standards", the answer is no. It uses non-standard properties and methods like innerHTML, as well as some browser-specific properties. Though it does this in a way that is useful and creates an "abstraction layer" that helps developers access these properties easily without worrying as much about browser compatibility, jQuery still does go against certain standards.

like image 103
Ashley Strout Avatar answered Sep 22 '22 20:09

Ashley Strout