James Ellis wrote: > Conditional statements in HTML such as those used by IE/Windows are a > slippery slope and they seriously break a central tenet of > programming. They are contained with <!-- HTML comments --> and > comments in code are not meant to be parsed as code. It's just plain > badness.
I don't follow you here. These comments *are meant to be* parsed by IE/Win. > What happens if someone adds a comment that happens to be > parsed by some piece of software? the software then goes on and does > some unexpected things. Anything inside coments is supposed to be ignored by UAs so if something goes wrong it would be because of the browser and not because of what's inside these comments. > Comments, of course, can be machine readable such as those used to > provide code documentation or CVS/SVN keywords, but these don't > actually run anything or fork the code base. > > This is a 2005 version of mid 90's browser sniffing - forking the > codebase to provide slighlty different content based on the client in > use. Better to get the browsers actually rendering things to the > published spec (hard, yes, but a better outcome). IMHO, this is a nice idea, but not very realistic. Thierry | www.TJKDesign.com ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
