You are here: Re: Correct syntax conditional comment? « HTML « IT news, forums, messages
Re: Correct syntax conditional comment?

Posted by Harlan Messinger on 12/04/07 03:53

Dylan Parry wrote:
> Harlan Messinger wrote:
>
>> Whether or not there's a trailing slash has nothing to do with the
>> conditional comments. If your page is XHTML, you need the trailing
>> slash.
>
> No you don't. It's a comment, so anything within it is simply text as
> far as any non-IE browser or parser is concerned, so it makes no
> difference whether you use the slash or not.
>
> One could in fact argue that the slash should *never* be used, as the
> code within the comment is *only* interpreted by Internet Explorer, and
> as IE doesn't support XHTML it makes little sense to include thu
> trailing slash in IE-specific code that is actually treated as comment
> text by anything else.

Good point. However, if one is making any pretense at having an XHTML
page, there should be a slash or else one should give up the pretense.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация