Skip to content
  • eric@webkit.org's avatar
    2009-09-30 Kent Tamura <tkent@chromium.org> · 03159e8a
    eric@webkit.org authored
            Reviewed by Darin Adler.
    
            Add ValidityState.tooLong support for <input> and <textarea>.
            https://bugs.webkit.org/show_bug.cgi?id=27454
    
            * fast/forms/ValidityState-tooLong-input-expected.txt: Added.
            * fast/forms/ValidityState-tooLong-input.html: Added.
            * fast/forms/ValidityState-tooLong-textarea-expected.txt: Added.
            * fast/forms/ValidityState-tooLong-textarea.html: Added.
            * fast/forms/script-tests/ValidityState-tooLong-input.js: Added.
            * fast/forms/script-tests/ValidityState-tooLong-textarea.js: Added.
    2009-09-30  Kent Tamura  <tkent@chromium.org>
    
            Reviewed by Darin Adler.
    
            Adds ValidityState.tooLong support for <input> and <textarea>.
    
            Introduces tooLong() in HTMLFormControlElement and it always returns false.
            HTMLInputElement and HTMLTextAreaElement overrides it and checks the text
            length and maxLength.  tooLong() should work only for `dirty' values.
            So, introduces m_isDirty flag for HTMLTextAreaElement, and
            !m_data.value().isNull() works as a dirty flag for HTMLInputElement.
    
            Renames parameter names of setMaxLength().
    
            https://bugs.webkit.org/show_bug.cgi?id=27454
    
            Tests: fast/forms/ValidityState-tooLong-input.html
                   fast/forms/ValidityState-tooLong-textarea.html
    
            * html/HTMLFormControlElement.h:
            (WebCore::HTMLFormControlElement::tooLong):
            * html/HTMLInputElement.cpp:
            (WebCore::HTMLInputElement::tooLong):
            (WebCore::HTMLInputElement::setMaxLength):
            * html/HTMLInputElement.h:
            * html/HTMLTextAreaElement.cpp:
            (WebCore::HTMLTextAreaElement::HTMLTextAreaElement):
            (WebCore::HTMLTextAreaElement::reset):
            (WebCore::HTMLTextAreaElement::updateValue):
            (WebCore::HTMLTextAreaElement::setMaxLength):
            (WebCore::HTMLTextAreaElement::tooLong):
            * html/HTMLTextAreaElement.h:
            * html/ValidityState.h:
            (WebCore::ValidityState::tooLong):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48959 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    03159e8a