+2009-04-28 Marek Habersack <mhabersack@novell.com>
+
+ * Makefile (TEST_RESOURCE_FILES): added
+ Test/mainsoft/NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx
+
2009-04-24 Marek Habersack <mhabersack@novell.com>
* System.Web_test.dll.sources: added
Test/mainsoft/NunitWebResources/NoDoubleOnInitOnRemoveAdd.aspx \
Test/mainsoft/NunitWebResources/NoDoubleOnInitOnRemoveAdd.aspx.cs \
Test/mainsoft/NunitWebResources/LoginDisplayRememberMe.aspx \
- Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx
+ Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx \
+ Test/mainsoft/NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx
RESX_DIST = resources/TranslationResources.resx
ifeq (net_2_0, $(PROFILE))
}
}
- if (builder == null && atts != null && atts.IsRunAtServer ()) {
+ bool runatServer = atts != null && atts.IsRunAtServer ();
+ if (builder == null && runatServer) {
string id = htable ["id"] as string;
if (id != null && !CodeGenerator.IsValidLanguageIndependentIdentifier (id))
throw new ParseException (Location, "'" + id + "' is not a valid identifier");
if (builder == null)
return false;
+ if (!runatServer && location.PlainText.IndexOf ("<%") > -1)
+ return false;
#if NET_2_0
PageParserFilter pfilter = PageParserFilter;
if (pfilter != null && !pfilter.AllowControl (builder.ControlType, builder))
+2009-04-28 Marek Habersack <mhabersack@novell.com>
+
+ * AspGenerator.cs: ProcessTag doesn't process a tag which is not
+ server-side and which has declarative expressions embedded. Fixes
+ bug #498637
+
2009-04-24 Marek Habersack <mhabersack@novell.com>
* AspGenerator.cs: ProcessCode should _not_ stop processing the
+2009-04-28 Marek Habersack <mhabersack@novell.com>
+
+ * TemplateControlCompilerTest.cs: added test for bug #498637
+
2009-04-16 Marek Habersack <mhabersack@novell.com>
* TemplateControlCompilerTest.cs: added test for bug #493639
WebTest.CopyResource (GetType (), "ReadWritePropertyControl.ascx", "ReadWritePropertyControl.ascx");
WebTest.CopyResource (GetType (), "ContentPlaceHolderInTemplate.aspx", "ContentPlaceHolderInTemplate.aspx");
WebTest.CopyResource (GetType (), "ContentPlaceHolderInTemplate.master", "ContentPlaceHolderInTemplate.master");
+ WebTest.CopyResource (GetType (), "LinkInHeadWithEmbeddedExpression.aspx", "LinkInHeadWithEmbeddedExpression.aspx");
#endif
}
HtmlDiff.AssertAreEqual (originalHtml, renderedHtml, "#A1");
}
+
+ // bug #498637
+ [Test]
+ public void LinkInHeadWithEmbeddedExpression ()
+ {
+ string pageHtml = new WebTest ("LinkInHeadWithEmbeddedExpression.aspx").Run ();
+ string renderedHtml = HtmlDiff.GetControlFromPageHtml (pageHtml);
+ string originalHtml = "<link href=\"Themes/Default/Content/Site.css\" rel=\"stylesheet\" type=\"text/css\" />";
+
+ HtmlDiff.AssertAreEqual (originalHtml, renderedHtml, "#A1");
+ }
#endif
[Test]
+2009-04-28 Marek Habersack <mhabersack@novell.com>
+
+ * NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx: added
+
2009-02-05 Marek Habersack <mhabersack@novell.com>
* NunitWebResources/NoDoubleOnInitOnRemoveAdd.aspx,
--- /dev/null
+<%@ Page Language="C#" %>
+<html>
+<head runat="server"><title>Bug #498637</title>
+<%= MonoTests.stand_alone.WebHarness.HtmlDiff.BEGIN_TAG %><link href="<%= Page.ResolveClientUrl("~/Themes/Default/Content/Site.css") %>" rel="stylesheet" type="text/css" /><%= MonoTests.stand_alone.WebHarness.HtmlDiff.END_TAG %>
+</head>
+<body>
+</body>
+</html>