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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>90818</bug_id>
          
          <creation_ts>2012-07-09 13:45:57 -0700</creation_ts>
          <short_desc>Width and height content attributes are not exposed on image input field</short_desc>
          <delta_ts>2012-07-10 07:32:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>70304</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Niels Leenheer (HTML5test)">info</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>jonlee</cc>
    
    <cc>tkent</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>665130</commentid>
    <comment_count>0</comment_count>
    <who name="Niels Leenheer (HTML5test)">info</who>
    <bug_when>2012-07-09 13:45:57 -0700</bug_when>
    <thetext>According to the HTML5 spec, both the width and height property of an image field should return the dimensions of the rendered image or 0 if the dimensions are not known:
http://www.w3.org/TR/html5/states-of-the-type-attribute.html#image-button-state-type-image

e = document.createElement(&apos;input&apos;);
e.type = &apos;image&apos;;


Actual results:

&apos;height&apos; in e;
&gt; false

typeof e.height;
&gt; &quot;undefined&quot;

&apos;width&apos; in e;
&gt; false

typeof e.width;
&gt; &quot;undefined&quot;


Expected results:

&apos;height&apos; in e;
&gt; true

typeof e.height;
&gt; &quot;number&quot;

&apos;width&apos; in e;
&gt; true

typeof e.width;
&gt; &quot;height&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>665738</commentid>
    <comment_count>1</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-07-10 07:13:36 -0700</bug_when>
    <thetext>Would you try WebKit nightly or Google Chrome 21+ please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>665750</commentid>
    <comment_count>2</comment_count>
    <who name="Niels Leenheer (HTML5test)">info</who>
    <bug_when>2012-07-10 07:27:48 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Would you try WebKit nightly or Google Chrome 21+ please?

Seems to work (with some issues) on Chrome 22. 
Filed bug #90885 for a crash that I experienced while accessing the width and height property.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>665754</commentid>
    <comment_count>3</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-07-10 07:32:33 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>