[Webkit-unassigned] [Bug 70304] width/height attributes of input element should be supported when the type of the input element is image.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 19 01:16:26 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70304





--- Comment #13 from Dongwoo Joshua Im <dw.im at samsung.com>  2011-10-19 01:16:25 PST ---
Dear Alexey.

Regarding your comments, 
- setting value to a string that's not a valid non-negative integer (perhaps "5.5pt");
- setting value to a string representing a negative number specifically;

I tested the "iframe" and "image" element.

The width and height attributes of iframe element are DOMString.
The width and height attributes of image element are long.

And, the width and height attributes of input element are DOMString.
So, I think the result of the test of input element should be same as iframe element. 
Am I correct?


*** When I set '5.5px' as width, 
When node is iframe, 
   node.width is '5.5px'.
   node.getAttribute("width") is '5.5px'.

When node is image, 
   node.width is 0.
   node.getAttribute("width") is '0'.



*** When I set '1.2' as width, 
When node is iframe,
   node.width is '1.2'.
   node.getAttribute("width") is '1.2'.

*** And, when I set 1.2 as width, 
When node is image, 
   node.width is 1.
   node.getAttribute("width") is '1'.



*** When I set '-10' as width, 
When node is iframe,
   node.width is '-10'.
   node.getAttribute("width") is '-10'.

When node is image, 
   node.width is 0.
   node.getAttribute("width") is '-10'.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list