Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
637 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...