script element is not processed when nested

VERIFIED FIXED

Status

()

P1
normal
VERIFIED FIXED
20 years ago
20 years ago

People

(Reporter: rubydoo123, Assigned: karnaze)

Tracking

Trunk
x86
Windows 95
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

20 years ago
build: 2/26/99

other platforms: winNT, mac, linux

expected results: when display the file within app, the dynamically generated
select list should have option elements display in the drop down list.

what happened: the option elements were listed outside of the seelct box
boundaries.

steps to reproduce: copy the following code into a local file, save the file and
display within the app. The select box within the form is not processed
correctly, the option elements are listed outside of the select element
boundaries.

<HTML>
<HEAD>
<TITLE>Step Load</TITLE>

<SCRIPT LANGUAGE="JavaScript">

var urlChoice // index of the currently selected URL

var winArray =
[
"http://www.zdnet.com",
"http://www.auctionuniverse.com",
"http://www.classifieds2000.com",
"http://www.ebay.com",
"http://www.onsale.com",
"http://www.monster.com",
"http://talk.excite.com",
"http://www.icq.com",
"http://www.talkcity.com",
"http://www.tripod.com",
"http://dailynews.yahoo.com",
"http://www.buycomp.com",
"http://www.chumbo.com"
]

</SCRIPT>

</HEAD>

<BODY>

<p>There are <script
language="javascript">document.write(winArray.length);</script> URL's in this
test suite.</p>

<FORM  NAME="Myform">
URL Select List:<BR>
	<SELECT NAME="select1" onchange="Go(this.form)">
	<SCRIPT language="javascript">
		document.write ('<OPTION>pick a URL');
		for (i = 0; i < winArray.length; i++)
		{
			value = winArray[i];
			document.write('<option>' + value);
		}
		document.write ('</SELECT>');
	</script>
	<br>
</FORM>
</BODY>
</HTML>

Updated

20 years ago
Assignee: rickg → karnaze
Component: Parser → XP Toolkit/Widgets

Comment 1

20 years ago
Chris -- I think this works just fine. Please verify and close.
(Reporter)

Updated

20 years ago
Status: NEW → RESOLVED
Last Resolved: 20 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

20 years ago
using the 3/4 build, using apprunner - this now renders correctly, marking
fixed/verified -- something must have gotten checked in in the last couple of
days.
(Reporter)

Updated

20 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.