Bug 56702

Summary: image 'height' attribute is a javascript string
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: kdelibsAssignee: Petr Rockai <prockai>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-17 17:46:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Waugh 2001-11-25 20:35:15 UTC
Description of Problem:
The 'height' attribute of an img element is treated like a string in 
javascript.

Version-Release number of selected component (if applicable):
kdelibs-2.2-11
kdebase-2.2-12

How Reproducible:
100%

Steps to Reproduce:
1. View the following document:

<html>
<head>
<script language="javascript"><!--
function init (Id) {
alert(document.getElementById(Id).height + 1 + 2 + 3);
}
--></script>
</head>
<body onLoad="init('id1')">
<img id="id1" src="/dev/null" height="50">
</body>
</html>

Actual Results:
'50123'

Expected Results:
'56'

Additional Information:
This works properly in Mozilla.

bugs.kde.org is down, so I'm putting this here instead. :-)

Comment 1 Tim Waugh 2002-03-18 09:59:10 UTC
In KDE3:

Actual results:
'6'

Expected results:
'56'

Comment 2 Than Ngo 2004-09-14 09:01:08 UTC
Please verify this with a newer version of Red Hat Enterprise Linux or
Fedora Core and reopen it against the new version if it still occurs.

Closing as "CURRENTRELEASE" for now.

Comment 3 Tim Waugh 2004-09-14 09:05:52 UTC
Still occurs with:

kdelibs-3.3.0-2
kdebase-3.3.0-3



Comment 4 Petr Rockai 2006-07-17 17:46:18 UTC
Moving upstream (and trying to add an inter-bugzilla reference, let's see 
what happens).