Announcement

Collapse
No announcement yet.

Actinic not loving HTML Comments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Actinic not loving HTML Comments

    Hi,

    Actinic is throwing up an error when I place conditional comments around our pages html tag, in fact it does it if i place them around any tag.

    It seems to believe the tag is nolonger being opened and closed correctly.

    The conditional statements are as follows:

    HTML Code:
    <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
    <!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
    <!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
    <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
    They essentialy let you detect IE 6-8 and add styles to target them.

    Is their a way of stopping the error:

    "Opening and closing HTML comment signs are not matching on the page"

    or another way around would be great.

    Guy
    Regards,

    Guy

    Lead Developer - Lock Shop Warehouse
    Offering discounted padlocks, and a huge range from the best door lock suppliers, all alongside other essential security products.

    #2
    This is a related post that may help (or hinder):
    http://community.actinic.com/showthread.php?t=28025

    Comment


      #3
      I can see one problem... your last statement is coded differently to all the rest.
      Without rying the code I'm not positive but I would suggest that may be your problem.
      I have used this in the past without a problem.
      Further to Duncans post dont miss looking at http://community.actinic.com/showthr...ie+conditional as this is an important thread relating to this topic.
      Steve Griggs.

      "People in business often miss opportunities, mainly because they usually arrive dressed in overalls and looking like work."



      www.kitchenwareonline.com
      www.microwave-repair.co.uk

      Comment


        #4
        Hi Guys,

        Thank you for the responses, unfortunately I was working without compacting the HTML allready so I have no issue with Actinic striping out the comments. It simply doesn't recognise the code within them so can not see how I have opened the pages html tag.

        Appreciate the links, however I need to look into other alternatives as don't like the idea of a js workaround.

        The coded itself is fine, the final conditional comment is seen by IE > 8 & all other browsers, hence the conditions are essentially all closed prior to the tag, the closing though is not seen by IE so it reads the block condition.

        Was rather hoping there was a way of telling actinic to stop error checking the HTML....
        Regards,

        Guy

        Lead Developer - Lock Shop Warehouse
        Offering discounted padlocks, and a huge range from the best door lock suppliers, all alongside other essential security products.

        Comment

        Working...
        X