formaction must return document's address when formaction is missing
[WebKit-https.git] / Source / WebCore / ChangeLog
index 9801e3a..d5c0fbe 100644 (file)
@@ -1,3 +1,21 @@
+2016-01-12  Ryosuke Niwa  <rniwa@webkit.org>
+
+        formaction must return document's address when formaction is missing
+        https://bugs.webkit.org/show_bug.cgi?id=148874
+
+        Reviewed by Chris Dumez.
+
+        Fixed the bug by falling back to document.url() when the attribute is not set or is empty in formAction getter.
+
+        Test: fast/forms/formaction-attribute-with-empty-value.html
+
+        * html/HTMLButtonElement.idl:
+        * html/HTMLFormControlElement.cpp:
+        (WebCore::HTMLFormControlElement::formAction): Added.
+        (WebCore::HTMLFormControlElement::setFormAction): Added.
+        * html/HTMLFormControlElement.h:
+        * html/HTMLInputElement.idl:
+
 2016-01-13  Chris Dumez  <cdumez@apple.com>
 
         Unreviewed, rolling out r194900.