3

In internet explorer 8, emit strange jquery attributes that sometimes can cause problem and when I need to select them, the selector won't work.

I don't know if this is related to my rendering problem, but I've never noticed it before, in IE8 or any other browser. Can someone explain what these attributes are?

sizzle-1377765392290 ="[object Object]"

also it creates unique id for each element

i.e: jQuery110201441698622493836

https://www.dropbox.com/s/e5l0r9weht23mhn/Ie8.PNG

Thanks You

TED
  • 1,829
  • 5
  • 18
  • 36

3 Answers3

0

See the answer here, jQuery uses it to attach event handlers etc in IE.: https://stackoverflow.com/a/16341470/1371408

Community
  • 1
  • 1
Matty J
  • 3,116
  • 32
  • 31
-1

As i can see in this bugs.jquery.com/ticket/8539 that sizzle cache bug was fixed in 1.7 version of jquery . And as per your comment you included older version of jquery 1.1.0 so updating it to latest release of jquery will solve your issue .

kaushik gandhi
  • 768
  • 8
  • 14
-3

You can remove this by,

var re = /\s*(sizset|sizcache)\d*="[^"]*"/gi;
source = source.replace(re,'');

http://jsfiddle.net/mblase75/fMdVc/

Alternatively, jQuery has a .removeAttr() method, but you'll have to apply it to specific tags:

jQobj.removeAttr('sizset').removeAttr('sizcache');

Have a look

Community
  • 1
  • 1
Prashant Shilimkar
  • 533
  • 1
  • 3
  • 10
  • fine how can i remove all the sizzle elements when the document is loading? not by single attribute it replaces random elements. – TED Aug 29 '13 at 08:50