* AspGenerator.cs: do not ignore directives inside HTML comments.
svn path=/trunk/mcs/; revision=110516
if (ignore_text)
return;
- bool isComment = text.StartsWith ("<!--"
-#if NET_2_0
- , StringComparison.OrdinalIgnoreCase
-#endif
- );
- if (!isComment && text.IndexOf ("<%") != -1 && !inScript) {
+ if (text.IndexOf ("<%") != -1 && !inScript) {
if (this.text.Length > 0)
FlushText (true);
CodeRenderParser r = new CodeRenderParser (text, stack.Builder);
2008-08-14 Marek Habersack <mhabersack@novell.com>
+ * AspGenerator.cs: do not ignore directives inside HTML comments.
+
* TemplateControlCompiler.cs: .NET allows for whitespace between
the directive start (<%) and the directive type character. Added
code which copes with such situations correctly.