diff --git a/core/modules/contextual/contextual.module b/core/modules/contextual/contextual.module
index cf20318cb1e191ca818ffe7caf06814c4b6b135e..a814c391f110e04a2d1549d40470c0db08b331fa 100644
--- a/core/modules/contextual/contextual.module
+++ b/core/modules/contextual/contextual.module
@@ -36,6 +36,7 @@ function contextual_toolbar() {
       '#attributes' => [
         'class' => ['toolbar-icon', 'toolbar-icon-edit'],
         'aria-pressed' => 'false',
+        'type' => 'button',
       ],
     ],
     '#wrapper_attributes' => [
diff --git a/core/modules/tour/tour.module b/core/modules/tour/tour.module
index 1de83992bbf4db285dd9171bbc7ca97bf7586814..ce9f309247cb77f0fb7ed9bf6e6798fa7d20ed6b 100644
--- a/core/modules/tour/tour.module
+++ b/core/modules/tour/tour.module
@@ -54,6 +54,7 @@ function tour_toolbar() {
       '#attributes' => [
         'class' => ['toolbar-icon', 'toolbar-icon-help'],
         'aria-pressed' => 'false',
+        'type' => 'button',
       ],
     ],
     '#wrapper_attributes' => [