-
tkent@chromium.org authored
Reviewed by Darin Adler. Add tests for reading/writing .type property of HTMLInputElement. https://bugs.webkit.org/show_bug.cgi?id=29004 * fast/forms/input-type-change3-expected.txt: Added. * fast/forms/input-type-change3.html: Added. * fast/forms/script-tests/input-type-change3.js: Added. 2009-11-14 Kent Tamura <tkent@chromium.org> Reviewed by Darin Adler. - Recognizes date/datetime/datetime-local/month/time/week types of INPUT element. They have no dedicated UI and no type validation for now. - Clean up setInputType() and formControlType() of HTMLInputElement. https://bugs.webkit.org/show_bug.cgi?id=29004 Test: fast/forms/input-type-change3.html * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::valueMissing): (WebCore::HTMLInputElement::patternMismatch): (WebCore::HTMLInputElement::tooLong): (WebCore::createTypeMap): Initializer for a static local variable. (WebCore::HTMLInputElement::setInputType): (WebCore::createFormControlTypes): Initializer for a static local variable. (WebCore::HTMLInputElement::formControlType): (WebCore::HTMLInputElement::saveFormControlState): (WebCore::HTMLInputElement::restoreFormControlState): (WebCore::HTMLInputElement::accessKeyAction): (WebCore::HTMLInputElement::rendererIsNeeded): (WebCore::HTMLInputElement::createRenderer): (WebCore::HTMLInputElement::appendFormData): (WebCore::HTMLInputElement::isTextField): (WebCore::HTMLInputElement::valueWithDefault): (WebCore::HTMLInputElement::storesValueSeparateFromAttribute): (WebCore::HTMLInputElement::defaultEventHandler): (WebCore::HTMLInputElement::isRequiredFormControl): (WebCore::HTMLInputElement::dataList): * html/HTMLInputElement.h: Add new values to InputType enum, and define numberOfTypes. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fe6c71e0