James Ellis wrote:
comments in code are not meant to be parsed as code.
...
> 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.

Then the software is broken, i.e. it does not adhere to spec. As with any other hack, you're exploiting that broken behaviour...compliant software will be unaffected.

This is a 2005 version of mid 90's browser sniffing

However, we still have to contend with pre-90's adherence to standards from the likes of IE5.x.

Better to get the browsers actually rendering things to the published spec (hard, yes, but a better outcome).

In certain situations, that requires dirtier markup, like additional wrapping divs and such. One or two, perhaps...but if it threatens to go out of hand, a conditional comment is, imho, a lot cleaner than convoluted extra markup.

--
Patrick H. Lauke
__________________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__________________________________________________________
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__________________________________________________________
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to