[Webkit-unassigned] [Bug 65008] REGRESSION(r89535): Form reset doesn't redraw a file upload control

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 22 06:29:09 PDT 2011


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





--- Comment #10 from Kentaro Hara <haraken at google.com>  2011-07-22 06:29:09 PST ---
(From update of attachment 101711)
View in context: https://bugs.webkit.org/attachment.cgi?id=101711&action=review

>>> LayoutTests/fast/forms/file-input-reset.html:24
>>> +    click(reset.offsetLeft + reset.offsetWidth + 10, reset.offsetTop + reset.offsetHeight + 10); // Move a cursor out of the reset button.
>> 
>> Why don't you use getElementById('form').reset()?
> 
> I found that getElementById('form').reset() does not work. Even updateFromElement() is not invoked. This seems to be a regression too. Thus, I would like to commit this patch as it is, and then investigate the problem of reset() in the next patch.

Sorry, this is not a bug. When we write like this

<form id="form">
<input id="reset" type="reset" />
</form>

then getElementById("form").reset is overridden by the reset input element, and thus getElementById("form").reset() does not work as expected.

-- 
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