Bug 130845 - image 'height' attribute is a javascript string
Summary: image 'height' attribute is a javascript string
Status: RESOLVED DUPLICATE of bug 129307
Alias: None
Product: konqueror
Classification: Applications
Component: kjs (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
Depends on:
Reported: 2006-07-15 02:21 UTC by Tim
Modified: 2006-07-15 07:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description Tim 2006-07-15 02:21:47 UTC
Version:            (using KDE KDE 3.5.3)
Installed from:    Compiled From Sources
Compiler:          gcc-4.1.1 
OS:                Linux

The 'height' attribute of an img element is treated like a string in javascript.

How Reproducible:

Steps to Reproduce:
1. View the following document:

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

Actual Results:

Expected Results:

Additional Information:
This works properly in Mozilla/firefox
Comment 1 Maksim Orlovich 2006-07-15 02:28:10 UTC
It's not a string, you just get a 0 back here.
Comment 2 Andreas Kling 2006-07-15 07:35:11 UTC

*** This bug has been marked as a duplicate of 129307 ***