Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What purpose do sizcache and sizset serve in jQuery

Tags:

html

jquery

I am using jQuery, and in inspecting the DOM of my page in IE with the Dev Toolbar I see that many elements have sizset and sizcache attributes added to the element. I don't see these in Chrome or Firefox? Also, I see that many elements on the page share the same value for these fields leading me to believe it was a global value, but a few do have different values?

<html xmlns="http://www.w3.org/1999/xhtml" sizcache="66" sizset="0">
    <head>...</head>
    <body sizcache="66" sizset="0">
         <div class="ui-datepicker-group ui-datepicker-group-first" sizcache="18" sizset="0">
    </body>
</html>

Does anyone know why IE only shows these, and what purpose they serve?

like image 817
jaywon Avatar asked Sep 23 '10 21:09

jaywon


1 Answers

http://groups.google.com/group/jquery-en/browse_thread/thread/2382a66a1ce9edf6/168046b517318240?lnk=gst&q=nodeIndex#168046b517318240

it's meant for internal use only. The jQuery core file uses it to
calculate nth-child. Here is the source (with my emphasis):

It looks like nodeIndex and sizcache and sizset are all used internally to calculate the nth-child.

like image 79
meder omuraliev Avatar answered Oct 16 '22 12:10

meder omuraliev