interesting idea.

FWIW, tried with IE 6.x (changed IE element in the conditionals to "IE6") and Moz 1.7x. IE 6 honors the conditional comments; Moz renders the negative conditionals which return true.

Speculating now but Moz behavior may be because it demands w3c standard comments, < followed by two hyphens for open_comment and two hyphens > for close_comment.

(3.2.4) White space is not permitted between the markup declaration open delimiter("<!") and the comment open delimiter ("--"), but is permitted between the comment close delimiter ("--") and the markup declaration close delimiter (">"). A common error is to include a string of hyphens ("---") within a comment. Authors should avoid putting two or more adjacent hyphens inside comments.
from: http://www.w3.org/TR/html4/intro/sgmltut.html#idx-HTML

Would like to know more about which "IE oddities" lead to what thoughts about working around them. A link to a reference on the workings of the square bracket mechanism here would be nice to have, if permitted


In reply to Re: IE's conditional comments by ww
in thread Should we change linking so that conditional comments for IE are not destroyed? by demerphq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.