All the hacks that I am aware of are targeted at specific browsers, often requiring several hacks to weed out browsers that choke on your design. I try my darnedest not to use hacks but I have used tantek's voice hack for around two years now and have not had any adverse effects in browsers that have come out since then.

To continue Stephen's example a little further. This particular hack uses one bug in specific versions of a specific browser on a specific platform to deal with another bug in that same versions of that same browser on that same platform. The brilliance of this hack lies in the facts that (1) both bugs only existed in that browser/versions/platform and that (2) both bugs were resolved in a later version of that browser on that platform.


In general, I think that hacks should be avoided, but, if you do need to use them, then you should certainly document them. The hack above is usually surrounded by comments, including the otherwise inexplicable code to make sure that all is right for CSS2-compliant browsers.

(Isn't it appalling that I find myself arguing specifically for the documentation of hacks, as it shows that I've given up trying to persuade people to document all their code?)

Regards,
David


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub


________________ http://www.wdvl.com _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to