<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>130845</bug_id>
          
          <creation_ts>2006-07-15 02:21:46 +0000</creation_ts>
          <short_desc>image &apos;height&apos; attribute is a javascript string</short_desc>
          <delta_ts>2006-07-15 07:35:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>kjs</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>129307</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Tim">lecit</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>453767</commentid>
    <comment_count>0</comment_count>
    <who name="Tim">lecit</who>
    <bug_when>2006-07-15 02:21:47 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.5.3)
Installed from:    Compiled From Sources
Compiler:          gcc-4.1.1 
OS:                Linux

The &apos;height&apos; attribute of an img element is treated like a string in javascript.

How Reproducible:
100%

Steps to Reproduce:
1. View the following document:

&lt;html&gt;
&lt;head&gt;
&lt;script language=&quot;javascript&quot;&gt;&lt;!--
function init (Id) {
alert(document.getElementById(Id).height + 1 + 2 + 3);
}
--&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body onLoad=&quot;init(&apos;id1&apos;)&quot;&gt;
&lt;img id=&quot;id1&quot; src=&quot;/dev/null&quot; height=&quot;50&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;

Actual Results:
&apos;6&apos;

Expected Results:
&apos;56&apos;

Additional Information:
This works properly in Mozilla/firefox</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453769</commentid>
    <comment_count>1</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-07-15 02:28:10 +0000</bug_when>
    <thetext>It&apos;s not a string, you just get a 0 back here.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453778</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Kling">info</who>
    <bug_when>2006-07-15 07:35:11 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 129307 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>