[Mono-bugs] [Bug 367273] New: ASP.Net does not expand runat="server" tags inside conditional comments
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Mar 5 05:41:30 EST 2008
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: mhabersack at novell.com
ReportedBy: alankila at bel.fi
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list