<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[194999] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/194999">194999</a></dd>
<dt>Author</dt> <dd>rniwa@webkit.org</dd>
<dt>Date</dt> <dd>2016-01-13 16:04:56 -0800 (Wed, 13 Jan 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>formaction must return document's address when formaction is missing
https://bugs.webkit.org/show_bug.cgi?id=148874

Reviewed by Chris Dumez.

LayoutTests/imported/w3c:

Rebaselined the tests now that more test cases are passing.

* web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address-expected.txt:
* web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction-expected.txt:

Source/WebCore:

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:

LayoutTests:

Added a regression test and rebaselined imported W3C tests.

* fast/forms/formaction-attribute-with-empty-value-expected.txt: Added.
* fast/forms/formaction-attribute-with-empty-value.html: Added.
* fast/forms/submit-form-attributes-expected.txt:
* fast/forms/submit-form-attributes.html:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastformssubmitformattributesexpectedtxt">trunk/LayoutTests/fast/forms/submit-form-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastformssubmitformattributeshtml">trunk/LayoutTests/fast/forms/submit-form-attributes.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlsemanticsformsattributescommontoformcontrolsformAction_document_addressexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlsemanticsformsattributescommontoformcontrolsformactionexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLButtonElementidl">trunk/Source/WebCore/html/HTMLButtonElement.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFormControlElementcpp">trunk/Source/WebCore/html/HTMLFormControlElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFormControlElementh">trunk/Source/WebCore/html/HTMLFormControlElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLInputElementidl">trunk/Source/WebCore/html/HTMLInputElement.idl</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastformsformactionattributewithemptyvalueexpectedtxt">trunk/LayoutTests/fast/forms/formaction-attribute-with-empty-value-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastformsformactionattributewithemptyvaluehtml">trunk/LayoutTests/fast/forms/formaction-attribute-with-empty-value.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/LayoutTests/ChangeLog        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-01-12  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
+
+        formaction must return document's address when formaction is missing
+        https://bugs.webkit.org/show_bug.cgi?id=148874
+
+        Reviewed by Chris Dumez.
+
+        Added a regression test and rebaselined imported W3C tests.
+
+        * fast/forms/formaction-attribute-with-empty-value-expected.txt: Added.
+        * fast/forms/formaction-attribute-with-empty-value.html: Added.
+        * fast/forms/submit-form-attributes-expected.txt:
+        * fast/forms/submit-form-attributes.html:
+
</ins><span class="cx"> 2016-01-13  Mark Lam  &lt;mark.lam@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         The StringFromCharCode DFG intrinsic should support untyped operands.
</span></span></pre></div>
<a id="trunkLayoutTestsfastformsformactionattributewithemptyvalueexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/formaction-attribute-with-empty-value-expected.txt (0 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/formaction-attribute-with-empty-value-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/forms/formaction-attribute-with-empty-value-expected.txt        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+Test to ensure formAction attribute returns the URL of the document when the attribute is not specified or empty.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+element = document.createElement(&quot;input&quot;);
+PASS element.formAction is location.href
+PASS element.setAttribute(&quot;formaction&quot;, &quot;http://webkit.org/foo.html&quot;); element.formAction is &quot;http://webkit.org/foo.html&quot;
+PASS element.setAttribute(&quot;formaction&quot;, &quot;&quot;); element.formAction is location.href
+base = document.createElement(&quot;base&quot;); document.head.appendChild(base); base.href = &quot;https://bugs.webkit.org/&quot;;
+PASS element.formAction is location.href
+PASS element.setAttribute(&quot;formaction&quot;, &quot;foo.html&quot;); element.formAction is &quot;https://bugs.webkit.org/foo.html&quot;
+PASS element.setAttribute(&quot;formaction&quot;, &quot;&quot;); element.formAction is location.href
+
+element = document.createElement(&quot;button&quot;);
+PASS element.formAction is location.href
+PASS element.setAttribute(&quot;formaction&quot;, &quot;http://webkit.org/foo.html&quot;); element.formAction is &quot;http://webkit.org/foo.html&quot;
+PASS element.setAttribute(&quot;formaction&quot;, &quot;&quot;); element.formAction is location.href
+base = document.createElement(&quot;base&quot;); document.head.appendChild(base); base.href = &quot;https://bugs.webkit.org/&quot;;
+PASS element.formAction is location.href
+PASS element.setAttribute(&quot;formaction&quot;, &quot;foo.html&quot;); element.formAction is &quot;https://bugs.webkit.org/foo.html&quot;
+PASS element.setAttribute(&quot;formaction&quot;, &quot;&quot;); element.formAction is location.href
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformsformactionattributewithemptyvaluehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/forms/formaction-attribute-with-empty-value.html (0 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/formaction-attribute-with-empty-value.html                                (rev 0)
+++ trunk/LayoutTests/fast/forms/formaction-attribute-with-empty-value.html        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+
+description('Test to ensure formAction attribute returns the URL of the document when the attribute is not specified or empty.');
+
+function runTests() {
+    shouldBe('element.formAction', 'location.href');
+    shouldBe('element.setAttribute(&quot;formaction&quot;, &quot;http://webkit.org/foo.html&quot;); element.formAction', '&quot;http://webkit.org/foo.html&quot;');
+    shouldBe('element.setAttribute(&quot;formaction&quot;, &quot;&quot;); element.formAction', 'location.href');
+
+    evalAndLog('base = document.createElement(&quot;base&quot;); document.head.appendChild(base); base.href = &quot;https://bugs.webkit.org/&quot;;');
+    shouldBe('element.formAction', 'location.href');
+    shouldBe('element.setAttribute(&quot;formaction&quot;, &quot;foo.html&quot;); element.formAction', '&quot;https://bugs.webkit.org/foo.html&quot;');
+    shouldBe('element.setAttribute(&quot;formaction&quot;, &quot;&quot;); element.formAction', 'location.href');
+}
+
+evalAndLog('element = document.createElement(&quot;input&quot;);');
+runTests();
+
+debug('');
+evalAndLog('element = document.createElement(&quot;button&quot;);');
+runTests();
+
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformssubmitformattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/forms/submit-form-attributes-expected.txt (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/submit-form-attributes-expected.txt        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/LayoutTests/fast/forms/submit-form-attributes-expected.txt        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> Ordinary values for input:
</span><del>-PASS input.formAction is &quot;&quot;
</del><ins>+PASS input.formAction is location.href
</ins><span class="cx"> PASS input.formEnctype is &quot;&quot;
</span><span class="cx"> PASS input.formMethod is &quot;&quot;
</span><span class="cx"> PASS input.formTarget is &quot;&quot;
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx"> PASS input.formTarget is &quot;256&quot;
</span><span class="cx"> 
</span><span class="cx"> Ordinary values for button:
</span><del>-PASS button.formAction is &quot;&quot;
</del><ins>+PASS button.formAction is location.href
</ins><span class="cx"> PASS button.formEnctype is &quot;&quot;
</span><span class="cx"> PASS button.formMethod is &quot;&quot;
</span><span class="cx"> PASS button.formTarget is &quot;&quot;
</span></span></pre></div>
<a id="trunkLayoutTestsfastformssubmitformattributeshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/forms/submit-form-attributes.html (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/submit-form-attributes.html        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/LayoutTests/fast/forms/submit-form-attributes.html        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx"> 
</span><span class="cx"> debug('Ordinary values for input:');
</span><span class="cx"> input.type = &quot;submit&quot;;
</span><del>-shouldBeEqualToString('input.formAction', '');
</del><ins>+shouldBe('input.formAction', 'location.href');
</ins><span class="cx"> shouldBeEqualToString('input.formEnctype', '');
</span><span class="cx"> shouldBeEqualToString('input.formMethod', '');
</span><span class="cx"> shouldBeEqualToString('input.formTarget', '');
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx"> debug('');
</span><span class="cx"> debug('Ordinary values for button:');
</span><span class="cx"> button.type = &quot;submit&quot;;
</span><del>-shouldBeEqualToString('button.formAction', '');
</del><ins>+shouldBe('button.formAction', 'location.href');
</ins><span class="cx"> shouldBeEqualToString('button.formEnctype', '');
</span><span class="cx"> shouldBeEqualToString('button.formMethod', '');
</span><span class="cx"> shouldBeEqualToString('button.formTarget', '');
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-01-12  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
+
+        formaction must return document's address when formaction is missing
+        https://bugs.webkit.org/show_bug.cgi?id=148874
+
+        Reviewed by Chris Dumez.
+
+        Rebaselined the tests now that more test cases are passing.
+
+        * web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address-expected.txt:
+        * web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction-expected.txt:
+
</ins><span class="cx"> 2016-01-11  Brady Eidson  &lt;beidson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Modern IDB: IDBBindingUtilities chokes on unicode strings for get/set.
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlsemanticsformsattributescommontoformcontrolsformAction_document_addressexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address-expected.txt (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address-expected.txt        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address-expected.txt        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> 
</span><del>-FAIL Check if button.formAction is the document's address when formaction content attribute is missing assert_equals: expected &quot;http://localhost:8800/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address.html&quot; but got &quot;&quot;
-FAIL Check if input.formAction is the document's address when formaction content attribute is missing assert_equals: expected &quot;http://localhost:8800/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address.html&quot; but got &quot;&quot;
</del><ins>+PASS Check if button.formAction is the document's address when formaction content attribute is missing 
+PASS Check if input.formAction is the document's address when formaction content attribute is missing 
</ins><span class="cx"> PASS Check if button.formAction is the document's address when formaction content attribute value is empty string 
</span><span class="cx"> PASS Check if input.formAction is the document's address when formaction content attribute value is empty string 
</span><span class="cx"> PASS Check if button.formAction is the document's address when formaction content attribute value is not assigned 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlsemanticsformsattributescommontoformcontrolsformactionexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction-expected.txt (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction-expected.txt        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction-expected.txt        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -5,6 +5,6 @@
</span><span class="cx"> PASS formAction absolute URL value is correct using getAttribute 
</span><span class="cx"> PASS formAction relative URL value on input reflects correct value after being updated by the DOM 
</span><span class="cx"> PASS formAction relative URL value is correct using getAttribute 
</span><del>-FAIL On getting, when formaction is missing, the document's address must be returned assert_equals: expected &quot;http://localhost:8800/html/semantics/forms/attributes-common-to-form-controls/formaction.html&quot; but got &quot;&quot;
</del><ins>+PASS On getting, when formaction is missing, the document's address must be returned 
</ins><span class="cx"> PASS On getting, when formaction value is the empty string, the document's address must be returned 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/Source/WebCore/ChangeLog        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2016-01-12  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
+
+        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:
+
</ins><span class="cx"> 2016-01-13  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r194900.
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLButtonElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLButtonElement.idl (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLButtonElement.idl        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/Source/WebCore/html/HTMLButtonElement.idl        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx">     [Reflect] attribute boolean autofocus;
</span><span class="cx">     [Reflect] attribute boolean disabled;
</span><span class="cx">     readonly attribute HTMLFormElement form;
</span><del>-    [Reflect, URL] attribute DOMString formAction;
</del><ins>+    attribute DOMString formAction;
</ins><span class="cx">     [TreatNullAs=NullString] attribute DOMString formEnctype;
</span><span class="cx">     [TreatNullAs=NullString] attribute DOMString formMethod;
</span><span class="cx">     [Reflect] attribute boolean formNoValidate;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFormControlElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFormControlElement.cpp (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFormControlElement.cpp        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/Source/WebCore/html/HTMLFormControlElement.cpp        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -104,6 +104,19 @@
</span><span class="cx">     return fastHasAttribute(formnovalidateAttr);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String HTMLFormControlElement::formAction() const
+{
+    const AtomicString&amp; value = fastGetAttribute(formactionAttr);
+    if (value.isEmpty())
+        return document().url();
+    return getURLAttribute(formactionAttr);
+}
+
+void HTMLFormControlElement::setFormAction(const AtomicString&amp; value)
+{
+    setAttributeWithoutSynchronization(formactionAttr, value);
+}
+
</ins><span class="cx"> bool HTMLFormControlElement::computeIsDisabledByFieldsetAncestor() const
</span><span class="cx"> {
</span><span class="cx">     Element* previousAncestor = nullptr;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFormControlElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFormControlElement.h (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFormControlElement.h        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/Source/WebCore/html/HTMLFormControlElement.h        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -53,6 +53,8 @@
</span><span class="cx">     String formMethod() const;
</span><span class="cx">     void setFormMethod(const String&amp;);
</span><span class="cx">     bool formNoValidate() const;
</span><ins>+    String formAction() const;
+    void setFormAction(const AtomicString&amp;);
</ins><span class="cx"> 
</span><span class="cx">     void setAncestorDisabled(bool isDisabled);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLInputElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLInputElement.idl (194998 => 194999)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLInputElement.idl        2016-01-13 23:45:14 UTC (rev 194998)
+++ trunk/Source/WebCore/html/HTMLInputElement.idl        2016-01-14 00:04:56 UTC (rev 194999)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx">     [Reflect] attribute boolean disabled;
</span><span class="cx">     readonly attribute HTMLFormElement form;
</span><span class="cx">     attribute FileList files;
</span><del>-    [Reflect, URL] attribute DOMString formAction;
</del><ins>+    attribute DOMString formAction;
</ins><span class="cx">     [TreatNullAs=NullString] attribute DOMString formEnctype;
</span><span class="cx">     [TreatNullAs=NullString] attribute DOMString formMethod;
</span><span class="cx">     [Reflect] attribute boolean formNoValidate;
</span></span></pre>
</div>
</div>

</body>
</html>