jquery - $.isPlainObject($('...')) == true in IE -


It is not in FF / Chrome and I do not think it should be in IE. Does not return a plain object after all $ (), but an example of $

short Answer: No,

To set up a quick test, see what the difference is:

The list of assets is different in IE (at least 8) in its order, so this part ():

  var key; (Important in Obj) {}  

is grabbing the final asset in the list and checking it on a hasOwnProperty , so it's down to IE Boiling:

  Object.prototype.hasOwnProperty.call ($ (document.body), 'length') // true  

and this is another browser In (test FF / Chrome):

  Object.prototype.hasOwnProperty.call ($ (document.body), 'width') // incorrect  

Since that property list is ordered separately, this length can be trafficked in IE, and other browsers For some of us, we are getting a different result (for kick, click to include, jQuery UI on the left, change it to another custom property, tab ). :

  // Own properties are first mentioned, to be so fast, // if the last one is of self, then all the qualities are self.  

There is a false impression about the property ordering of IE, so I consider it a bug in the form of a 1.4.2 statement.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -