-
https://bugs.webkit.org/show_bug.cgi?id=27452pkasting@chromium.org authored
Add support for checkValidity() method and invalid event, from HTML5 specs: http://www.whatwg.org/specs/web-apps/current-work/#dom-form-checkvalidity Patch by Michelangelo De Simone <micdesim@gmail.com> on 2009-08-21 Reviewed by Adele Peterson. Tests: fast/events/invalid-001.html fast/events/invalid-002.html fast/events/invalid-003.html fast/events/invalid-004.html fast/events/invalid-005.html fast/forms/checkValidity-001.html fast/forms/checkValidity-002.html fast/forms/checkValidity-003.html fast/forms/checkValidity-004.html * dom/Document.idl: oninvalid event handler * dom/Element.idl: ditto * dom/EventNames.h: added invalid event * dom/Node.cpp: (WebCore::Node::oninvalid): ditto (WebCore::Node::setOninvalid): ditto * dom/Node.h: ditto * html/HTMLAttributeNames.in: oninvalid attribute * html/HTMLButtonElement.idl: added checkValidity() method * html/HTMLElement.cpp: (WebCore::HTMLElement::parseMappedAttribute): parses oninvalid * html/HTMLFieldSetElement.idl: added checkValidity() method * html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::checkValidity): checkValidity() implementation * html/HTMLFormControlElement.h: * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::checkValidity): checkValidity() implementation for form elements * html/HTMLFormElement.h: checkValidity() definition * html/HTMLFormElement.idl: added checkValidity() method * html/HTMLInputElement.idl: added checkValidity() method * html/HTMLSelectElement.idl: added checkValidity() method * html/HTMLTextAreaElement.idl: added checkValidity() method * page/DOMWindow.cpp: (WebCore::DOMWindow::oninvalid): oninvalid event handler (WebCore::DOMWindow::setOninvalid): ditto * page/DOMWindow.h: ditto * page/DOMWindow.idl: ditto LayoutTests: https://bugs.webkit.org/show_bug.cgi?id=27452 Tests for checkValidity() method and invalid event, from HTML5 specs: http://www.whatwg.org/specs/web-apps/current-work/#dom-form-checkvalidity Patch by Michelangelo De Simone <micdesim@gmail.com> on 2009-08-21 Reviewed by Adele Peterson. * fast/events/invalid-001-expected.txt: Added. * fast/events/invalid-001.html: Added. * fast/events/invalid-002-expected.txt: Added. * fast/events/invalid-002.html: Added. * fast/events/invalid-003-expected.txt: Added. * fast/events/invalid-003.html: Added. * fast/events/invalid-004-expected.txt: Added. * fast/events/invalid-004.html: Added. * fast/events/invalid-005-expected.txt: Added. * fast/events/invalid-005.html: Added. * fast/forms/checkValidity-001-expected.txt: Added. * fast/forms/checkValidity-001.html: Added. * fast/forms/checkValidity-002-expected.txt: Added. * fast/forms/checkValidity-002.html: Added. * fast/forms/checkValidity-003-expected.txt: Added. * fast/forms/checkValidity-003.html: Added. * fast/forms/checkValidity-004-expected.txt: Added. * fast/forms/checkValidity-004.html: Added. * fast/dom/Window/window-properties-expected.txt: * fast/dom/domListEnumeration-expected.txt: * fast/dom/resources/domListEnumeration.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a3cf5d9e