[Mono-bugs] [Bug 636709] New: [Regression] xsp2 IDs are not created correctly. Not unique in webcontrols/web_checkboxlist.aspx

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 2 11:49:36 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=636709

https://bugzilla.novell.com/show_bug.cgi?id=636709#c0


           Summary: [Regression] xsp2 IDs are not created correctly.  Not
                    unique in webcontrols/web_checkboxlist.aspx
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86-64
        OS/Version: openSUSE 11.3
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: mchristensen at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Component Test
           Blocker: ---


openSUSE 11.3 x85_64

mono-core-2.8-38.1.x86_64
xsp-2.8-32.4.noarch

The IDs for input elements are not created correctly in the
webcontrols/web_checkboxlist.aspx test under xsp2 in xsp-2.8-32 (mono-2.8p1),
however, they are correct when the same test is run under xsp4 and in previous
versions of mono so this is a regression.

IDs for the input elements are all the same:

ID = "l1_0" but should be l1_0, l1_1, l1_2, etc.:

<span id="l1"><input id="l1_0" type="checkbox" name="l1$0" /><label
for="l1_0">One</label><br /><input id="l1_0" type="checkbox" name="l1$1"
/><label for="l1_0">Two</label><br /><input id="l1_0" type="checkbox"
name="l1$2" /><label for="l1_0">Three</label><br /><input id="l1_0"
type="checkbox" name="l1$3" /><label for="l1_0">Five</label></span>
<p>



ID = "l2_0" but should be l2_0, l2_1, l2_2, etc.:

<table id="l2" border="0">

    <tr>
        <td><input id="l2_0" type="checkbox" name="l2$0" /><label
for="l2_0">One</label></td>
    </tr><tr>
        <td><input id="l2_0" type="checkbox" name="l2$1" /><label
for="l2_0">Two</label></td>
    </tr><tr>
        <td><input id="l2_0" type="checkbox" name="l2$2" /><label
for="l2_0">Three</label></td>
    </tr><tr>

        <td><input id="l2_0" type="checkbox" name="l2$3" /><label
for="l2_0">Five</label></td>
    </tr>
</table>


This failure makes it impossible to navigate the elements using XPATH in our
testing infrastructure since the xpath
"/html/body/form[@id='ctl01']/p[1]/span[@id='l1']/input[@id='l1_0']" or
/html/body/form[@id='ctl01']/p[1]/span[@id='l1']/input[@id='l2_0'] both return
4 elements, rather than one when run under xsp2.  Under xsp4 in mono-2.8 and
xsp1/2 in previous releases of mono, both xpaths return only one element and
the IDs are unique.

-- 
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