Bug 56702 - image 'height' attribute is a javascript string
Summary: image 'height' attribute is a javascript string
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: kdelibs
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Petr Rockai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-25 20:35 UTC by Tim Waugh
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-07-17 17:46:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
KDE Software Compilation 129307 0 None None None Never

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).


Note You need to log in before you can comment on or make changes to this bug.