Closed
Bug 260792
Opened 21 years ago
Closed 21 years ago
screen.height seems to be case sensitive
Categories
(Toolkit Graveyard :: Error Console, defect)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: lou, Assigned: bugs)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; rv:1.7.3) Gecko/20040913 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; rv:1.7.3) Gecko/20040913 Firefox/0.10
javascript - screen.height seems to be case sensitive
Reproducible: Always
Steps to Reproduce:
1.<SCRIPT LANGUAGE="javascript">
<!--
// check screen height in order to maximize real estate
function ScreenHeight(){
var strScreenHeight
if (self.screen.Height > 900){
//adjust screen;
}
else{
//adjust screen;
}
}
//-->
</SCRIPT>
2. if you change screen.Height to screen.height it works
3. seem to be tripping on case
Actual Results:
it did not adjust the screen yet firebird did
Expected Results:
seem like height did not pasrse correctly
Comment 1•21 years ago
|
||
Javascript is a case sensitive language. IE forgives wrongly written code.
Opera and Mozilla returns undefined since its wrongly written, should be
lowercase height.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Updated•17 years ago
|
Product: Firefox → Toolkit
Updated•9 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•