2010-11-15 Dai Mikurube <dmikurube@google.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Nov 2010 12:43:05 +0000 (12:43 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Nov 2010 12:43:05 +0000 (12:43 +0000)
commit8866fc08ce4f446bb8cd31fd25ee3e2a0b36a8ab
tree4e2a7bc22d809eb006c030b2e532e48e2e188373
parent6446669f38f9e2fcbaed77fe6e09ff20368d0faa
2010-11-15  Dai Mikurube  <dmikurube@google.com>

        Reviewed by Kent Tamura.

        Implement formaction, formenctype, formmethod and formtarget attributes for input and button tags
        https://bugs.webkit.org/show_bug.cgi?id=49240

        * fast/forms/formaction-attribute-expected.txt: Added.
        * fast/forms/formaction-attribute.html: Added.
        * fast/forms/formmethod-attribute-button-html-expected.txt: Added.
        * fast/forms/formmethod-attribute-button-html.html: Added.
        * fast/forms/formmethod-attribute-input-html-expected.txt: Added.
        * fast/forms/formmethod-attribute-input-html.html: Added.
        * fast/forms/formtarget-attribute-button-html-expected.txt: Added.
        * fast/forms/formtarget-attribute-button-html.html: Added.
        * fast/forms/formtarget-attribute-input-html-expected.txt: Added.
        * fast/forms/formtarget-attribute-input-html.html: Added.
        * fast/forms/mailto/formenctype-attribute-button-html-expected.txt: Added.
        * fast/forms/mailto/formenctype-attribute-button-html.html: Added.
        * fast/forms/mailto/formenctype-attribute-input-html-expected.txt: Added.
        * fast/forms/mailto/formenctype-attribute-input-html.html: Added.
        * fast/forms/script-tests/submit-form-attributes.js: Added.
        * fast/forms/submit-form-attributes-expected.txt: Added.
        * fast/forms/submit-form-attributes.html: Added.
2010-11-15  Dai Mikurube  <dmikurube@google.com>

        Reviewed by Kent Tamura.

        Implement formaction, formenctype, formmethod and formtarget attributes for input and button tags
        https://bugs.webkit.org/show_bug.cgi?id=49240

        Tests: fast/forms/formaction-attribute.html
               fast/forms/formmethod-attribute-button-html.html
               fast/forms/formmethod-attribute-input-html.html
               fast/forms/formtarget-attribute-button-html.html
               fast/forms/formtarget-attribute-input-html.html
               fast/forms/mailto/formenctype-attribute-button-html.html
               fast/forms/mailto/formenctype-attribute-input-html.html
               fast/forms/submit-form-attributes.html

        * html/HTMLAttributeNames.in: Added formaction, formmethod, formtarget and formenctype attributes
        * html/HTMLButtonElement.idl:
        * html/HTMLInputElement.idl:
        * loader/FormSubmission.cpp: Modified to check the pressed button and its attributes
        (WebCore::FormSubmission::Attributes::copyFrom):
        (WebCore::FormSubmission::create):
        * loader/FormSubmission.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/forms/formaction-attribute-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/formaction-attribute.html [new file with mode: 0644]
LayoutTests/fast/forms/formmethod-attribute-button-html-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/formmethod-attribute-button-html.html [new file with mode: 0644]
LayoutTests/fast/forms/formmethod-attribute-input-html-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/formmethod-attribute-input-html.html [new file with mode: 0644]
LayoutTests/fast/forms/formtarget-attribute-button-html-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/formtarget-attribute-button-html.html [new file with mode: 0644]
LayoutTests/fast/forms/formtarget-attribute-input-html-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/formtarget-attribute-input-html.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/formenctype-attribute-button-html-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/formenctype-attribute-button-html.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/formenctype-attribute-input-html-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/formenctype-attribute-input-html.html [new file with mode: 0644]
LayoutTests/fast/forms/script-tests/submit-form-attributes.js [new file with mode: 0644]
LayoutTests/fast/forms/submit-form-attributes-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/submit-form-attributes.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLAttributeNames.in
WebCore/html/HTMLButtonElement.idl
WebCore/html/HTMLInputElement.idl
WebCore/loader/FormSubmission.cpp
WebCore/loader/FormSubmission.h