Closed
Bug 220523
Opened 21 years ago
Closed 21 years ago
parseInt("08") return 0
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
People
(Reporter: p00r0, Assigned: rogerl)
Details
User-Agent: Mozilla/5.0 (Windows; U; Win95; zh-CN; rv:1.3a) Gecko/20021212
Build Identifier: Mozilla/5.0 (Windows; U; Win95; zh-CN; rv:1.3a) Gecko/20021212
if temp is "08" or "09" parseInt return 0
but if temp is "01" "02" "03" "04" "05" "06" "07" parseInt return right
----------------------------
example:
<script>
temp="08";
ti=parseInt(temp);
alert(ti);
</script>
----------------------------
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•21 years ago
|
||
confirming behaviour Firebird 20030925
Simply type in Location bar:
javascript:parseint("08");
Hardware: PC → All
Comment 2•21 years ago
|
||
this is the correct behaviour, read the explanation by Phil Schwartau in bug
43425 comment 3
*** This bug has been marked as a duplicate of 43425 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•