Closed
Bug 195663
Opened 22 years ago
Closed 22 years ago
Multiple spaces in a string variable are combined to one space
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
People
(Reporter: spamwahn01, Assigned: rogerl)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
<html>
<head>
</head>
<body>
<script language="JavaScript">
<!--
var part1="aaa";
var part2=" ";
var part3="zzz";
alert(part1 + part2 + part3);
//-->
</script>
<noscript></noscript>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1. Copy example to file
2. Name file space.html
3. Open it with Mozilla
Actual Results:
Mozilla outputs the strings as "aaa zzz"
Expected Results:
It should output "aaa zzz"
![]() |
||
Comment 1•22 years ago
|
||
*** This bug has been marked as a duplicate of 50348 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•