Today I spent a few hours working on relative positioning the xbCollapsibleList. You’d think it’d be easy, right? After all, there’s an example freely available… which doesn’t work with IEMac. OK, solve the switch, IEMac should have DOM support, it can default to the Gecko switch. Haha, if things were so easy. Well then, how about going to Microsoft and finding some documentation? Yeah, this is Microsoft’s idea of documentation for IEMac. (Honestly, is a little developer documentation too much to ask for? This is one of the reasons why I hate doing front-end development) Apple’s Developer Connection articles unfortunately, weren’t a help in this case. DOM Inspector would have been helpful with my poking around. In any case, after a bit of experimenting, it finally occurs to me that what’s going on is that IEMac and Gecko have disagreements on what the offsetParent is, and hence the different (or in IEMac’s case, zero) offsets (offset isn’t in the DOM so it’s hard to say who’s right in this case). In any case, I figure that I’ll have to write an offset calculating function that’ll sum the offsets to the top parent and it occurs to me that I know I read about this a while ago. After a few Google queries, I end up at Peter-Paul Koch’s Find Position article, which I in fact did read before. I threw in his find position functions, which really only saved me writing one loop, but it does remind us of an important lesson. Always check ppk’s site first. He also has a DOM Compatibility Table and recently updated articles on Window Manipulation and Doctypes.

Gecko users, check out Doctor Unclear’s window properties, methods, events page. Weeeee!