formenctype to have empty string as default value.
authorrgf748@motorola.com <rgf748@motorola.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Feb 2013 00:05:31 +0000 (00:05 +0000)
committerrgf748@motorola.com <rgf748@motorola.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Feb 2013 00:05:31 +0000 (00:05 +0000)
commit31ba634b8d669738511db54e22c71fd983765197
treee8a293e3c3765c7f6b9fbb29f1d9cfb9968ee674
parentcb3648f86d0d891a27aa9261ca52cfbbbfa4ac6d
formenctype to have empty string as default value.
https://bugs.webkit.org/show_bug.cgi?id=108969

Reviewed by Kent Tamura.

The spec says formEnctype should only have an invalid value default, not a missing value default.
Spec: http://www.w3.org/html/wg/drafts/html/master/forms.html#attr-fs-formenctype
      http://www.whatwg.org/specs/web-apps/current-work/#attr-fs-formenctype

Source/WebCore:

No new tests. Covered by existing test case fast/forms/submit-form-attributes.html

* html/HTMLFormControlElement.cpp: For the missing formEnctype attr return empty string.
(WebCore::HTMLFormControlElement::formEnctype):

LayoutTests:

* fast/forms/submit-form-attributes-expected.txt:
* fast/forms/submit-form-attributes.html: Modified test to behave as expected.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/submit-form-attributes-expected.txt
LayoutTests/fast/forms/submit-form-attributes.html
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLFormControlElement.cpp