On 7 January 2011 10:17, Peter van der Zee <[email protected]> wrote: > I'm sure there are (edge case?) problems besides overwriting. I haven't > encountered them personally (even though I've used the pattern quite a lot) > so it's not something you'll easily be confronted with. Otoh, I haven't > really used expandos in IE6 so who knows what kind of pitts you'll get > there. The jQuery/Prototype folks probably do. They can chime in :) > Of course, when you do encounter a problem due to expando's, it'll be hard > to figure them out. There's a reason expandos are frowned upon :)
I used expandos extensively and ill-advisedly on DOM elements in IE 4 and above in my (much) younger days, and the issues were the same with those versions as later versions of IE. Be aware that if some code in the page has called `document.expando = false;` (unlikely but possible) then all your expandos for all elements within the document will not work. Tim -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
