[Webkit-unassigned] [Bug 26141] Implement onformchange and onforminput event handlers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 18 17:14:47 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=26141
--- Comment #22 from Dai Mikurube <dmikurube at google.com> 2011-01-18 17:14:47 PST ---
(From update of attachment 79261)
View in context: https://bugs.webkit.org/attachment.cgi?id=79261&action=review
>> LayoutTests/fast/forms/script-tests/formchange-event.js:64
>> + result_removing_input = 'Delivered';
>
> We don't use '_' for variable names even in JavaScript. it should be resultRemovingInput.
Thank you. Done.
>>> Source/WebCore/html/HTMLFormElement.cpp:598
>>> + Vector<RefPtr<FormAssociatedElement> > elements;
>>
>> Would it make sense to add an accessor for Resettable Elements?
>>
>> I think these collections come up a lot in forms handling and I think it would be better to expose these better.
>>
>> http://www.w3.org/TR/html5/forms.html#categories
>
> I don't think the resettable element collection is needed by other classes.
Erik :
Thank you for the comments.
Does it mean the current handling may be slow for a lot of elements in forms? Or another way to expose resettable properties would be better for other purpose?
>> Source/WebCore/html/HTMLFormElement.cpp:601
>> + elements.append(m_associatedElements[i]);
>
> We can avoid to append non-resettable elements by checking isResettable() here.
Kent-san:
Thanks. Moved the checking.
--
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