Skip to content
  • pkasting@chromium.org's avatar
    WebCore: · b8661d0e
    pkasting@chromium.org authored
    2009-07-27  Michelangelo De Simone  <micdesim@gmail.com>
    
            Reviewed by Darin Adler.
    
            https://bugs.webkit.org/show_bug.cgi?id=25552
            Added new "pattern" attribute to HTMLInputElement and validation code
            (validity.patternMismatch) as per HTML5 specs.
            http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#attr-input-pattern
    
            Tests: fast/forms/ValidityState-002.html
                   fast/forms/ValidityState-patternMismatch-001.html
                   fast/forms/ValidityState-patternMismatch-002.html
                   fast/forms/ValidityState-patternMismatch-003.html
                   fast/forms/ValidityState-patternMismatch-004.html
                   fast/forms/ValidityState-patternMismatch-005.html
                   fast/forms/ValidityState-patternMismatch-006.html
                   fast/forms/ValidityState-patternMismatch-007.html
                   fast/forms/pattern-attribute-001.html
                   fast/forms/pattern-attribute-002.html
                   fast/forms/pattern-attribute-003.html
    
            * html/HTMLAttributeNames.in: pattern attribute
            * html/HTMLFormControlElement.h:
            (WebCore::HTMLFormControlElement::patternMismatch): method definition
            * html/HTMLInputElement.cpp:
            (WebCore::HTMLInputElement::patternMismatch): validation method
            * html/HTMLInputElement.h:
            * html/HTMLInputElement.idl:
            * html/ValidityState.h:
            (WebCore::ValidityState::patternMismatch): validation flag
    
    LayoutTests:
    
    2009-07-27  Michelangelo De Simone  <micdesim@gmail.com>
    
            Reviewed by Darin Adler.
    
            https://bugs.webkit.org/show_bug.cgi?id=25552
            First series of tests for the "pattern" attribute and related validation
            code
    
            * fast/forms/ValidityState-002-expected.txt: Copied from LayoutTests/fast/forms/willvalidate-001-expected.txt.
            * fast/forms/ValidityState-002.html: Added.
            * fast/forms/ValidityState-patternMismatch-001-expected.txt: Added.
            * fast/forms/ValidityState-patternMismatch-001.html: Added.
            * fast/forms/ValidityState-patternMismatch-002-expected.txt: Added.
            * fast/forms/ValidityState-patternMismatch-002.html: Added.
            * fast/forms/ValidityState-patternMismatch-003-expected.txt: Added.
            * fast/forms/ValidityState-patternMismatch-003.html: Added.
            * fast/forms/ValidityState-patternMismatch-004-expected.txt: Added.
            * fast/forms/ValidityState-patternMismatch-004.html: Added.
            * fast/forms/ValidityState-patternMismatch-005-expected.txt: Added.
            * fast/forms/ValidityState-patternMismatch-005.html: Added.
            * fast/forms/ValidityState-patternMismatch-006-expected.txt: Added.
            * fast/forms/ValidityState-patternMismatch-006.html: Added.
            * fast/forms/ValidityState-patternMismatch-007-expected.txt: Added.
            * fast/forms/ValidityState-patternMismatch-007.html: Added.
            * fast/forms/pattern-attribute-001-expected.txt: Added.
            * fast/forms/pattern-attribute-001.html: Added.
            * fast/forms/pattern-attribute-002-expected.txt: Added.
            * fast/forms/pattern-attribute-002.html: Added.
            * fast/forms/pattern-attribute-003-expected.txt: Added.
            * fast/forms/pattern-attribute-003.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b8661d0e