[Mono-bugs] [Bug 35673][Nor] New - asp.net: the name attribute of html elements overrides the id-attribute if both are present
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
16 Dec 2002 16:16:56 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by henrik.ingo@tieturi.fi.
http://bugzilla.ximian.com/show_bug.cgi?id=35673
--- shadow/35673 Mon Dec 16 11:16:56 2002
+++ shadow/35673.tmp.24739 Mon Dec 16 11:16:56 2002
@@ -0,0 +1,88 @@
+Bug#: 35673
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 7.3
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: henrik.ingo@tieturi.fi
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: asp.net: the name attribute of html elements overrides the id-attribute if both are present
+
+Description of Problem:
+If you use both a name="" and (a different) id="" attribute in html form
+elements, when the page is sent to the browser, they will both contain the
+value that name="" originally was. The original value of id="" is lost.
+
+Using MS .net as a reference implementation, it looks like both should
+stay as they are.
+
+Steps to reproduce the problem:
+1. open xsp-2.0/server/test/htmlinputtext.aspx in an editor
+2. insert name="Text1" for the textfield and name="Text2" for the password
+field. (Complete aspx given below)
+3. save
+4. Open in browser (Result given below.)
+
+Actual Results:
+the id attribute now contains the same value as the name attribute.
+
+Expected Results:
+Using MS .net as a reference implementation, it looks like both should
+stay as they where.
+
+How often does this happen?
+every time i tried
+
+Additional Information:
+
+The aspx source:
+
+<%@ Page Language="C#" %>
+<html>
+<title>HtmlInputText: text and password</title>
+<body>
+<form method=post runat="server">
+<input type="text" name="Text1" id="asText" maxlength=40 size=40
+value="Your name goes here"
+runat="server"/>
+<br>
+<input type="password" name="Text2" id="asPassword" maxlength=8 size=8
+value="Your name goes here"
+runat="server"/>
+</form>
+</body>
+</html>
+
+
+HTML sent to browser:
+
+
+<html>
+<title>HtmlInputText: text and password</title>
+<body>
+<form name="_control13" method="post" id="_control13">
+ <input type="hidden" name="__VIEWSTATE"
+value="cDx0PDtMPHM8X2N0cmxfMD47czxfY3RybF8xPjtzPF9jdHJsXzI+O3M8X2N0cmxfMz47
+czxfY3RybF80PjtzPF9jdHJsXzU+O3M8X2N0cmxfNj47czxfY3RybF83PjtzPF9jdHJsXzg+O3M
+8X2NvbnRyb2wxMz47czxfY3RybF85PjtzPF9jdHJsXzEwPjtzPF9jdHJsXzExPjtzPF9jdHJsXz
+EyPjtzPF9jdHJsXzEzPj47TDx0PDs7Pjt0PDs7Pjt0PDs7Pjt0PDs7Pjt0PDs7Pjt0PDs7Pjt0P
+Ds7Pjt0PDs7Pjt0PDs7Pjt0PDtMPHM8X2N0cmxfMD47czxUZXh0MT47czxfY3RybF8xPjtzPF9j
+dHJsXzI+O3M8X2N0cmxfMz47czxUZXh0Mj47czxfY3RybF80Pj47TDx0PDs7Pjt0PDs7Pjt0PDs
+7Pjt0PDs7Pjt0PDs7Pjt0PDs7Pjt0PDs7Pj4+O3Q8Ozs+O3Q8Ozs+O3Q8Ozs+O3Q8Ozs+O3Q8Oz
+s+Pj47Pg==" />
+
+<input name="Text1" id="Text1" type="text" size="40" maxlength="40" />
+<br>
+<input name="Text2" id="Text2" type="password" value="Your name goes here"
+size="8" maxlength="8" />
+</form>
+</body>
+</html>