RESOLVED DUPLICATE of bug 70304 90818
Width and height content attributes are not exposed on image input field
https://bugs.webkit.org/show_bug.cgi?id=90818
Summary Width and height content attributes are not exposed on image input field
Niels Leenheer (HTML5test)
Reported 2012-07-09 13:45:57 PDT
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('input'); e.type = 'image'; Actual results: 'height' in e; > false typeof e.height; > "undefined" 'width' in e; > false typeof e.width; > "undefined" Expected results: 'height' in e; > true typeof e.height; > "number" 'width' in e; > true typeof e.width; > "height"
Attachments
Kent Tamura
Comment 1 2012-07-10 07:13:36 PDT
Would you try WebKit nightly or Google Chrome 21+ please?
Niels Leenheer (HTML5test)
Comment 2 2012-07-10 07:27:48 PDT
(In reply to comment #1) > 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.
Kent Tamura
Comment 3 2012-07-10 07:32:33 PDT
*** This bug has been marked as a duplicate of bug 70304 ***
Note You need to log in before you can comment on or make changes to this bug.