function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PaulDysonPaulDyson 

URGENT - HTML formatting error appearing on login screen

I have an HTML formatting error appearing on a Sites login screen. The problem appears to be due to the Visualforce compiler setting a warning because of badly formatted HTML as described in this thread: http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=17009. However, the poor HTML formatting is deliberate in order to be able to do conditional inclusion of styles sheets, as described in this thread: http://community.salesforce.com/sforce/board/message?message.uid=146753.

 

Is there a way either to do conditional inclusion of style sheets without bad HTML formatting or else to ensure that the <apex:messages> tag doesn't display HTML warnings?

AvromAvrom

Probably the easiest thing to do is to actually move the <!--[if IE...] --> syntax *into* your stylesheet, save the stylesheet as a static resource, and import it. Static resources don't get compiled, so you shouldn't get compiler warnings about iffy XML.

 

Hope this helps,

Avrom