Closed
Bug 337158
Opened 19 years ago
Closed 19 years ago
the word 'location' in JavaScript is automatically interpreted as document.location
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 131212
People
(Reporter: tvh_austin, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
In JavaScript the word 'location' is being used as a reserved word. For example:
<html>
<head>
<script language="javaScript">
var justAString = 'This is a string';
var location = justAString.indexOf('a');
alert(location); // should show 8
</script>
</head>
<body>
hello world
</body>
</html>
causes the browser to load the following url:
Desktop/testscripts/8 (Note the number 8, this is the result from the IndexOf() clause)
Reproducible: Always
Steps to Reproduce:
1.Run code from above
2.
3.
Actual Results:
browser redirect, or the browser hangs
Expected Results:
JavaScript to run as expected
Comment 1•19 years ago
|
||
*** This bug has been marked as a duplicate of 131212 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Updated•7 years ago
|
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•