a80171
diff --git a/src/lxml/html/defs.py b/src/lxml/html/defs.py
a80171
index caf6b21..ea3c016 100644
a80171
--- a/src/lxml/html/defs.py
a80171
+++ b/src/lxml/html/defs.py
a80171
@@ -21,6 +21,8 @@ link_attrs = frozenset([
a80171
     'usemap',
a80171
     # Not standard:
a80171
     'dynsrc', 'lowsrc',
a80171
+    # HTML5 formaction
a80171
+    'formaction'
a80171
     ])
a80171
 
a80171
 # Not in the HTML 4 spec:
a80171
diff --git a/src/lxml/html/tests/test_clean.py b/src/lxml/html/tests/test_clean.py
a80171
index 451eec2..e40cdad 100644
a80171
--- a/src/lxml/html/tests/test_clean.py
a80171
+++ b/src/lxml/html/tests/test_clean.py
a80171
@@ -89,6 +89,21 @@ class CleanerTest(unittest.TestCase):
a80171
             b'<math><style>/* deleted */</style></math>',
a80171
             lxml.html.tostring(clean_html(s)))
a80171
 
a80171
+    def test_formaction_attribute_in_button_input(self):
a80171
+        # The formaction attribute overrides the form's action and should be
a80171
+        # treated as a malicious link attribute
a80171
+        html = ('<form id="test"><input type="submit" formaction="javascript:alert(1)"></form>'
a80171
+        '<button form="test" formaction="javascript:alert(1)">X</button>')
a80171
+        expected = ('
<form id="test"><input type="submit" formaction=""></form>'
a80171
+        '<button form="test" formaction="">X</button>')
a80171
+        cleaner = Cleaner(
a80171
+            forms=False,
a80171
+            safe_attrs_only=False,
a80171
+        )
a80171
+        self.assertEqual(
a80171
+            expected,
a80171
+            cleaner.clean_html(html))
a80171
+
a80171
 
a80171
 def test_suite():
a80171
     suite = unittest.TestSuite()