Hi folks, I've been mucking around with the beginnings of a DOM manipulation friendly framework, and have basically come to the conclusion that backwards compatibility for IE6 really screws things up. A number of DRY-friendly solutions don't work if we need to support IE6. Right now I do support IE6 for clients, but it's a pain. I question the wisdom of basing the structure of a framework on something that will be dead soon anyway.
A concrete example of this is that I'm thinking geometric layout is handled by 'regions'. Regions are sized, and are some combination of fluid/fixed x/y. Resizing your layout should be done *only* on regions and that's all they're used for. 'containers' live in regions, they are what you give borders, margins, and padding to. They are never sized, only offset and squeezed or pulled. This means we bypass the stupidly inconsistent interactions of borders, margins, padding, and it's always safe to swap out one container for another with predictable results. The above is possible for fixed regions fairly elegantly in IE7+ and everyone else by using stretched absolute boxes for the inner containers, but stretching does not work at all in IE6. The workarounds basically screw up the whole notion of breaking the div layers into consistently defined roles. So I'm thinking I could: - write the core assuming that the standards compliant box model is in effect - if you need to support IE6 you use either: - provided examples of the extra lines needed in the 'wrong' places ( ie putting absolute dimensions on inner containers where your padding and margins will muck them up ) - provided a jquery script that uses document.ready to find elements that are supposed to work and correct them for ie6. Neither are 'nice', but nor is assuming we're working with bags over our heads for next year. Thoughts and feedback much appreciated. Iain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
