[Mono-bugs] [Bug 473303] New: Null CssClass handling inconsistency between Mono and MS.NET implementations
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Feb 6 08:58:40 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=473303
Summary: Null CssClass handling inconsistency between Mono and
MS.NET implementations
Classification: Mono
Product: Mono: Class Libraries
Version: 2.2.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: sergey.hakobyan at gaiaware.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=270817)
--> (https://bugzilla.novell.com/attachment.cgi?id=270817)
Failing testcase
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5)
Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729)
NullReferenceException occurs when setting CssClass property to null for almost
any WebControl.
The issue seems to occur because of style.AddAttributesToRender(writer, this)
call in AddAttributesToRender() method of WebControl.
Testcase is attached.
Reproducible: Always
Steps to Reproduce:
1. Create a WebControl, eg. Label
2. Set CssClass to null in code
Actual Results:
NullReferenceException occurs.
Expected Results:
WebControl should render without "class" attribute, as it does in MS.NET
implementation.
--
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