Closed Bug 103645 Opened 23 years ago Closed 23 years ago

JS generated options in <select>

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 100511

People

(Reporter: ttodorov, Assigned: rogerl)

References

()

Details

Attachments

(1 file)

Hello to everyone, I encountered a regression in Mozilla for all nightly builds after release 0.9.4 (tested only with Linux), concerning javascript generated options in select forms. The particular example is located at the Borland JBuilder Personal download page at http://www.borland.com/jbuilder/personal/download/jb5personal_steps.html. Another example again in the Borland domain is the Kylix download page http://www.barland.com/kylix/openedition/kylixopenedition_kayanddown_steps.html . After one clicks on the link for Step 1 - Registration, a javascript popup window is presented (html source code included in the bottom). In all nightly builds after release 0.9.4 the entry field for Character Encoding remains emty and no option from the dropdown menu can be selected. Thes leads to denial of login. In Mozilla 0.9.4 the page works perfectly. Note: In my search through the bugs database I've encountered some entries regarding bugs by not unicode escaped characters. Though the charcters here are not unicode escaped, I don't think this issue applies here too, because the page is working in release 0.9.4. <------------- HTML Source of login page --------------> <html> <head><title>Borland Community - Login</title> <script language="javascript"> document.write("<form name=VP_encoding><input name=t type=hidden value='&#1040;&#192;&#260;&#270;&#901;&#287;&#32;&#32;&#45;&#20491;&#32;'></input></form>"); function VP_getEncoding() { var t = document.forms.VP_encoding.t.value.split("-"); if (t[0] == "Ð?Ã?Ä?Ä?Î?Ä? ") return "<option selected value=UTF8>Utf-8"; else if (t[1] == "­Ó ") return "<option selected value=Big5> Chinese (Big5)"; else if (t[1] == "?? ") return "<option selected value=GBK> Chinese (GBK)"; else if (t[1] == "Ô¶ ") return "<option selected value=EUC_TW> Chinese (EUC_TW)"; else if (t[1] == "¸Ä ") return "<option selected value=EUC_JP> Japanese (EUC_JP)"; else if (t[1] == "? ") return "<option selected value=SJIS> Japanese (SJIS)"; else if ((t[0].charAt(2) == "¥Ï ".charAt(0)) && (t[0].charAt(3) == "¥Ï ".charAt(1))) return "<option selected value=Cp1250> Central-European (Cp1250)"; else if ((t[0].charAt(2) == "¡Ï ".charAt(0)) && (t[0].charAt(3) == "¡Ï ".charAt(1))) return "<option selected value=ISO8859_2> Central-European (ISO8859_2)"; else if ((t[0].charAt(2) == "¡ ".charAt(0))) return "<option selected value=ISO8859_4> Baltic (ISO8859_4)"; else if ((t[0].charAt(0) == "? ".charAt(0))) return "<option selected value=Cp866> Cyrillic (Cp866)"; else if ((t[0].charAt(2) == "À ".charAt(0))) return "<option selected value=Cp1257> Baltic (Cp1257)"; else if ((t[0].charAt(0) == "À ".charAt(0))) return "<option selected value=Cp1251> Cyrillic (Cp1251)"; else if ((t[0].charAt(0) == "á ".charAt(0))) return "<option selected value=KOI8_R> Cyrillic (KOI8_R)"; else if ((t[0].charAt(0) == "° ".charAt(0))) return "<option selected value=ISO8859_5> Cyrillic (ISO8859_5)"; else if ((t[0].charAt(1) == "Àð ".charAt(0)) && (t[0].charAt(5) == "Àð ".charAt(1))) return "<option selected value=ISO8859_9> Turkish (ISO8859_9)"; else if ((t[0].charAt(1) == "À ".charAt(0))) return "<option selected value=ISO8859_1> Western (American/European) (ISO8859_1)"; else if ((t[0].charAt(4) == "µ ".charAt(0))) return "<option selected value=ISO8859_7> Greek (ISO8859_7)"; else if ((t[0].charAt(4) == "¡ ".charAt(0))) return "<option selected value=Cp1253> Greek (Cp1253)"; return "<option selected value=>Please Select"; } </script> </head> <!-- Vignette StoryServer 4 Tue Jan 23 15:31:53 2001 --> <link REL="stylesheet" TITLE="Default" HREF="/styles/defaultNew.css/0,1748,,00.css" TYPE="text/css"> <!-- Vignette StoryServer 4 Tue Jan 23 15:31:53 2001 --> <body bgcolor="#ffffff"> <table BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="FFFFFF" WIDTH="100%"> <tr> <td WIDTH="*" BGCOLOR="#c6c6c6"><img SRC="/images/layout/transparent.gif" ALT="" WIDTH="1" HEIGHT="1" BORDER="0"></td> </tr> </table> <table BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="FFFFFF" WIDTH=786> <tr> <td WIDTH="*" BGCOLOR="#c6c6c6"><img SRC="/images/layout/transparent.gif" ALT="" WIDTH="1" HEIGHT="1" BORDER="0"></td> <td ALIGN="left" VALIGN="top"><img SRC="/images/layout/transparent.gif" WIDTH="453" HEIGHT="22" border="0" ALT=""></td> <td VALIGN="top"><img SRC="/images/layout/transparent.gif" ALT="" WIDTH="1" HEIGHT="4" BORDER="0"><br> <a HREF="/cgi-bin/login/"><span CLASS="bigBlack">Login</span></td> </tr> </table> <table BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#FFFFFF" WIDTH="786"> <tr> <td BGCOLOR="#c6c6c6"><img SRC="/images/layout/transparent.gif" ALT="" WIDTH="1" HEIGHT="1" BORDER="0"></td><td VALIGN="top" ALIGN="left"><a HREF="http://www.borland.com/"><img SRC="/images/header/homemural.gif" ALT="Borland" WIDTH="156" HEIGHT="33" BORDER="0"></a><br> <img SRC="/images/layout/transparent.gif" ALT="" WIDTH="2" HEIGHT="20" BORDER="0"></td> <td ALIGN="RIGHT" VALIGN="BOTTOM"><a HREF="http://community.borland.com/"><!-- Vignette StoryServer 4 Tue Jan 23 15:09:26 2001 --> <img SRC="/images/header/community.gif" ALT="Borland Developer Community Home" width='168' height='24' BORDER='0'></a></td> <tr> <td BGCOLOR="#666666"><img SRC="/images/layout/transparent.gif" WIDTH="1" HEIGHT="1" border="0" ALT=""></td> <td BGCOLOR="#666666" COLSPAN="2"><img SRC="/images/layout/transparent.gif" WIDTH="656" HEIGHT="17" border="0" ALT=""></td> <td><img SRC="/images/layout/transparent.gif" WIDTH="129" HEIGHT="1" border="0" ALT=""></td> </tr> </tr> </table> <form action="login.cgi" method="POST" name="frmLogin"> <h2>Community Member Login</h2> <b>Please log in. Or if you are a new user, click the New User button. <br> <font SIZE=4 FACE=Helvetica>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <nobr>Cookies Required.</nobr></font></b> <p> <!-- <font color="#FF0000"> <b>Note: This site will be down for servicing from 5-7am PST Sunday July 29, 2001. Sorry for the inconvenience. </b></font> <img src=/images/layout/transparent.gif width=10 height=10> --> <p> <table> <tr> <td valign=top align=left colspan=2>Please enter your</td> <td></td> </tr> <tr> <td valign=top align=right><b>Login Name</b></td> <td valign=top> <input TYPE=TEXT NAME=edLoginName SIZE=25 MAXLENGTH=60 VALUE=""> </td> </tr> <tr> <td valign=top align=right>or <b>Email Address</b></td> <td valign=top> <input TYPE=TEXT NAME=edEmail SIZE=25 MAXLENGTH=60> </td> </tr> <tr> <td valign=top align=right>and <b>Password</b></td> <td valign=top><input TYPE=PASSWORD NAME=edPassword SIZE=25 MAXLENGTH=60></td> </tr> <tr> <td valign=top align=right>Character Set Encoding you use <!-- <script language="javascript"> --> <!-- document.write("Your encoding is " + VP_getEncoding() + " So there."); --> <!-- </script> --> </td> <td valign=top><select NAME="encode"> <script language="javascript"> document.write(VP_getEncoding()); </script> <option value=UTF8> UTF8 <option value=ISO8859_1> Western (American/European) (ISO8859_1) <option value=Big5> Chinese (Big5) <option value=GBK> Chinese (GBK) <option value=EUC_TW> Chinese (EUC_TW) <option value=EUC_JP> Japanese (EUC_JP) <option value=SJIS> Japanese (SJIS) <option value=Cp1250> Central-European (Cp1250) <option value=ISO8859_2> Central-European (ISO8859_2) <option value=ISO8859_4> Baltic (ISO8859_4) <option value=Cp866> Cyrillic (Cp866) <option value=Cp1257> Baltic (Cp1257) <option value=Cp1251> Cyrillic (Cp1251) <option value=KOI8_R> Cyrillic (KOI8_R) <option value=ISO8859_5> Cyrillic (ISO8859_5) <option value=ISO8859_9> Turkish (ISO8859_9) <option value=ISO8859_7> Greek (ISO8859_7) <option value=Cp1253> Greek (Cp1253) </select></td> </tr> <tr> <td></td> <td valign=top>Save my login information in this browser for <input TYPE=TEXT NAME=edSaveCookie VALUE=90 SIZE=4 MAXLENGTH=4> days<br> (Enter 0 to set the cookie for this browser session <b>only</b>) </td> </tr> <tr></tr> <tr> <td></td> <td valign=top><table border=0><tr> <td><input TYPE=SUBMIT NAME=btnSubmit Value="Login"></td> <td><input TYPE=RESET NAME=btnReset Value="Reset"></td> <input type=hidden name=redirect value="http://community.borland.com/cgi-bin/surveys/survey.cgi?sid=112"> </form><form action=ForgotPassword.cgi method="POST"> <td><input TYPE=SUBMIT NAME=btnForgot Value="Forgot My Password!"></td> <input type=hidden name=redirect value="http://community.borland.com/cgi-bin/surveys/survey.cgi?sid=112"> </form> <form action=new_user.cgi method="POST"> <td><input TYPE=SUBMIT NAME=btnNewUser Value="New User"></td></table></td> <input type=hidden name=redirect value="http://community.borland.com/cgi-bin/surveys/survey.cgi?sid=112"> </form> </tr> <tr> <td></td> </tr> <tr> <td></td> <td> <p>If you're already a community member, click the <b>Login</b> button after providing your password along with either your login name or email address. Please note that login names and passwords are case sensitive.</p> <p>If you don't remember your password, click the <b>Forgot My Password!</b> button and your password will be emailed to the email address entered above. If your email address is not found, try using another email address you currently use (and may have used while registering). If you do not receive an email message with your password, or you need assistance with your membership, please reply to <a href="mailto:accountmgr@borland.com">accountmgr@borland.com</a> and make sure to include your <b>first name</b>, <b>last name</b>, <b>mailing address</b>, <b>phone number</b> and possible <b>email addresses</b> and <b>login names</b>, so we can locate your information. </p> <p> If you are having difficulty logging in, you may possibly need to activate your account. When you register as a community member, you are sent an email message with information on how to activate your account. Until you activate your account, every time you try to log in you will receive another email from the login system. </p> <p>If you are a <b>new user</b>, click the <b>New User</b> button to create your user record.</p> <p><a href="/article/0,1410,22027,00.html"> Privacy Notice for community.borland.com </a> </p> </td> </tr> </table></td></tr></table> <!-- Vignette StoryServer 4 Tue Jan 23 13:43:45 2001 --> <!-- Vignette StoryServer 4 Tue Jan 23 13:43:45 2001 --> <!-- Site level is export --> <!-- 1 {comm_community {AppServer /appserver 6}} {comm_community {C++ /cpp 2}} {comm_community {CORBA /corba 5}} {comm_community {Delphi /delphi 1}} {comm_community {InterBase /interbase 7}} {comm_community {Java /java 3}} {comm_community {Linux /linux 4}} --> <p> <img SRC="/images/leftnav/headers/communities.gif" Width="111" HEIGHT="18" ALT="Communities"><img SRC="/images/content/tail.gif" Width="132" HEIGHT="1" ALT=""><p> <a HREF="http://community.borland.com/appserver/0,1419,6,00.html" CLASS="newHeading">AppServer</a> &nbsp;|&nbsp; <a HREF="http://community.borland.com/cpp/0,1419,2,00.html" CLASS="newHeading">C++</a> &nbsp;|&nbsp; <a HREF="http://community.borland.com/corba/0,1419,5,00.html" CLASS="newHeading">CORBA</a> &nbsp;|&nbsp; <a HREF="http://community.borland.com/delphi/0,1419,1,00.html" CLASS="newHeading">Delphi</a> &nbsp;|&nbsp; <a HREF="http://community.borland.com/interbase/0,1419,7,00.html" CLASS="newHeading">InterBase</a> &nbsp;|&nbsp; <a HREF="http://community.borland.com/java/0,1419,3,00.html" CLASS="newHeading">Java</a> &nbsp;|&nbsp; <a HREF="http://community.borland.com/linux/0,1419,4,00.html" CLASS="newHeading">Linux</a> <p> <div ALIGN="center"> <table BORDER=0 CELLSPACING="0" CELLPADDING="0" BGCOLOR="#FFFFFF"> <tr> <td ALIGN="center"> <span CLASS="bottomlink"> <a HREF="http://community.borland.com/books/" CLASS="bottomlink">Books</a>&nbsp;|&nbsp; <a HREF="http://community.borland.com/chat/" CLASS="bottomlink">Chat</a>&nbsp;|&nbsp; <a HREF="http://community.borland.com/codecentral/1,1479,%252Flinux,00.html" CLASS="bottomlink">Code Central</a>&nbsp;|&nbsp; <a HREF="http://community.borland.com/downloads/" CLASS="bottomlink">Downloads</a>&nbsp;|&nbsp; <a HREF="http://community.borland.com/feedback/" CLASS="bottomlink">Feedback</a><br> <a HREF="http://community.borland.com/info/" CLASS="bottomlink">Help</a>&nbsp;|&nbsp; <a HREF="http://community.borland.com/homepages/" CLASS="bottomlink">Home Pages</a>&nbsp;|&nbsp; <a HREF="http://community.borland.com/museum/" CLASS="bottomlink">Museum</a>&nbsp;|&nbsp; <a HREF="http://newsgroups.borland.com" CLASS="bottomlink">Newsgroups</a>&nbsp;|&nbsp; <a HREF="http://shop.borland.com/" CLASS="bottomlink">Shopping</a> </span> </td> </tr> </table> </div>
For me using a debug build from 10/07, the select element is populated, but clicking on an option does nothing. jkeiser, does this testcase work with your patch? Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** This bug has been marked as a duplicate of 100511 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Depends on: 34297
Resolution: --- → DUPLICATE
No longer depends on: 34297
Attached file Reduced testcase (deleted) —
Verified Duplicate
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: