https://bugzilla.novell.com/show_bug.cgi?id=367273


           Summary: ASP.Net does not expand runat="server" tags inside
                    conditional comments
           Product: Mono: Class Libraries
           Version: 1.2.6
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: Development


An useful feature, conditional comments, is suboptimally supported by Mono's
ASP.Net implemenation. One may be tempted to do something like this:

<!--[if IE 6]>
<link rel="styleheet" type="text/css" href="~/compat-ie6.css" runat="server"/>
<![endif]-->

in order to serve IE6 a special stylesheet. I find this a convenient way to
cater to the bad IE CSS support, and not a WTF design by itself. In other
words, I think it should be a supported practice.

Unfortunately, Mono's ASP.Net sees the <!-- --> comment and does no parsing or
tag expansion within it, thus serving the runat="server" and the href with ~.

I was able to workaround the problem through hiding the conditional comments
from the XML parser:

<% Response.Write("<!--[if IE 6]>"); %>
<link etc./>
<% Response.Write("<![endif]-->"); %>


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to