瀏覽代碼

2004-06-24 Gonzalo Paniagua Javier <[email protected]>

	* HtmlTextWriter.cs: only create a closing tag for unknown tags. Fixes
	bug #60681.

svn path=/trunk/mcs/; revision=30317
Gonzalo Paniagua Javier 21 年之前
父節點
當前提交
093071fda3
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. 5 0
      mcs/class/System.Web/System.Web.UI/ChangeLog
  2. 3 1
      mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs

+ 5 - 0
mcs/class/System.Web/System.Web.UI/ChangeLog

@@ -1,3 +1,8 @@
+2004-06-24 Gonzalo Paniagua Javier <[email protected]>
+
+	* HtmlTextWriter.cs: only create a closing tag for unknown tags. Fixes
+	bug #60681.
+
 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
 
 	* PageParser.cs:

+ 3 - 1
mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs

@@ -499,8 +499,10 @@ public virtual void RenderBeginTag(HtmlTextWriterTag tagKey){
 		}
 	}
 	TagInformation currentTag = HtmlTextWriter._tagNameLookupArray[_tagIndex];
-	if (currentTag.closingTag == null)
+	if (currentTag.closingTag == null && currentTag.tagType == TagType.Other) {
 		currentTag.closingTag = EndTagLeftChars + _tagName + TagRightChar;
+	}
+
 	if (tagRender) {
 		tagRendered = false;
 		if (tabsPending)