diff options
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs b/mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs index f2858da6ef3..30cca3967a6 100644 --- a/mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs +++ b/mcs/class/System.Web/System.Web.UI/HtmlTextWriter.cs @@ -204,11 +204,11 @@ namespace System.Web.UI { // faster than a linear search? foreach (HtmlAttribute t in htmlattrs) { - if (String.Compare(t.name, attrName, true, CultureInfo.InvariantCulture) == 0) + if (t.name == attrName) return t.key; } - return (HtmlTextWriterAttribute)(-1); + return 0; } [MonoTODO] @@ -229,11 +229,11 @@ namespace System.Web.UI { // faster than a linear search? foreach (HtmlStyle t in htmlstyles) { - if (String.Compare(t.name, styleName, true, CultureInfo.InvariantCulture) == 0) + if (t.name == styleName) return t.key; } - return (HtmlTextWriterStyle)(-1); + return 0; } [MonoTODO] @@ -251,7 +251,7 @@ namespace System.Web.UI { // faster than a linear search? foreach (HtmlTag t in tags) { - if (String.Compare(t.name, tagName, true, CultureInfo.InvariantCulture) == 0) + if (t.name == tagName) return t.key; } @@ -333,7 +333,7 @@ namespace System.Web.UI { if (! newline) return; newline = false; - + for (int i = 0; i < Indent; i ++) b.Write (tab_string); } @@ -1113,25 +1113,5 @@ namespace System.Web.UI { new HtmlStyle (HtmlTextWriterStyle.ZIndex, "z-index"), #endif }; - -#if NET_2_0 - public virtual bool IsValidFormAttribute (string attribute) - { - return true; - } - - // writes <br /> - public virtual void WriteBreak () - { - string br = GetTagName (HtmlTextWriterTag.Br); - WriteBeginTag (br); - Write (SelfClosingTagEnd); - } - - public virtual void WriteEncodedText (string text) - { - Write (HttpUtility.HtmlEncode (text)); - } -#endif } } |