[Mono-bugs] [Bug 678705] New: MenuListRender off-by-one fails to close tag
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Mar 10 16:32:42 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=678705
https://bugzilla.novell.com/show_bug.cgi?id=678705#c0
Summary: MenuListRender off-by-one fails to close tag
Classification: Mono
Product: Mono: Class Libraries
Version: 2.10.x
Platform: x86-64
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: web23-sles at steltek.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=418716)
--> (http://bugzilla.novell.com/attachment.cgi?id=418716)
source for test.exe to render System.Web.UI.WebControls.Menu to stdout
The System.Web.Menu class when using list rendering in .NET profile 4 fails to
close the tag on the fist MenuItem at a given depth. This results in, at
least, an unclosed <div> which messes up the formatting of the entire page.
jcohen at jcohen-ubuntu-dev:~$ mono ./test.exe
Usage: test TOP [SUB]
TOP - Integer, number of top level menu items.
SUB - Integer number of sub menu items.
test.exe source attached.
NET produces:
jcohen at lwl-l-jcohen:~$ ./test.exe 2 2
topItems: 2, subItems: 2
<div class="CSSStyleClass" id="TestMenuID">
<ul class="level1">
<li><a title="top0" class="popout level1"
href="top0.aspx">top0</a><ul class="level2">
<li><a title="sub0.0" class="level2"
href="sub0.0.aspx">sub0.0</a></li><li><a title="sub0.1" class="level2"
href="sub0.1.aspx">sub0.1</a></li>
</ul></li><li><a title="top1" class="popout level1"
href="top1.aspx">top1</a><ul class="level2">
<li><a title="sub1.0" class="level2"
href="sub1.0.aspx">sub1.0</a></li><li><a title="sub1.1" class="level2"
href="sub1.1.aspx">sub1.1</a></li>
</ul></li>
</ul>
</div>
And Mono 2.10.1 produces:
jcohen at jcohen-ubuntu-dev:~$ mono ./test.exe 2 2
topItems: 2, subItems: 2
<div id="TestMenuID" class="CSSStyleClass">
<ul class="level1">
<li><a title="top0" class="popout level1"
href="top0.aspx">top0</a><ul class="level2">
<li><a title="sub0.0" class="level2"
href="sub0.0.aspx">sub0.0</a></li><li><a title="sub0.1" class="level2"
href="sub0.1.aspx">sub0.1</a></li>
</ul><li><a title="top1" class="popout level1"
href="top1.aspx">top1</a><ul class="level2">
<li><a title="sub1.0" class="level2"
href="sub1.0.aspx">sub1.0</a></li><li><a title="sub1.1" class="level2"
href="sub1.1.aspx">sub1.1</a></li>
</ul></li></li>
--
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