diff --git a/.gitignore b/.gitignore index 0c225561..3baef8a2 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ webroot/js/* nbproject/* # Visual Studio Code .vscode +.DS_Store diff --git a/README.md b/README.md index fd092dcb..3d9a4d11 100644 --- a/README.md +++ b/README.md @@ -321,7 +321,7 @@ echo $this->Form->end(); will render this HTML: ```html -
+
@@ -365,7 +365,7 @@ echo $this->Form->end(); It will render this HTML: ```html - +
@@ -413,7 +413,7 @@ echo $this->Form->end(); It will render this HTML: ```html - +
@@ -459,7 +459,7 @@ echo $this->Form->end(); will render this HTML: ```html - +
diff --git a/src/View/Helper/FormHelper.php b/src/View/Helper/FormHelper.php index 20f5d10c..7c29bb0d 100644 --- a/src/View/Helper/FormHelper.php +++ b/src/View/Helper/FormHelper.php @@ -406,7 +406,6 @@ public function create(mixed $context = null, array $options = []): string { $options += [ 'class' => null, - 'role' => 'form', 'align' => null, 'templates' => [], 'spacing' => null, diff --git a/tests/TestCase/View/Helper/FormHelperTest.php b/tests/TestCase/View/Helper/FormHelperTest.php index d55cad77..92ff4bfa 100644 --- a/tests/TestCase/View/Helper/FormHelperTest.php +++ b/tests/TestCase/View/Helper/FormHelperTest.php @@ -612,7 +612,6 @@ public function testFormCreate() 'form' => [ 'method' => 'post', 'accept-charset' => 'utf-8', - 'role' => 'form', 'action' => '/articles/add', ], ]; @@ -654,7 +653,6 @@ public function testInlineFormCreate() 'form' => [ 'method' => 'post', 'accept-charset' => 'utf-8', - 'role' => 'form', 'action' => '/articles/add', 'class' => 'form-inline row g-3 align-items-center', ], @@ -672,7 +670,6 @@ public function testInlineFormCreateWithCustomSpacing() 'form' => [ 'method' => 'post', 'accept-charset' => 'utf-8', - 'role' => 'form', 'action' => '/articles/add', 'class' => 'form-inline row custom-spacing align-items-center', ], @@ -687,7 +684,6 @@ public function testHorizontalFormCreate() 'form' => [ 'method' => 'post', 'accept-charset' => 'utf-8', - 'role' => 'form', 'action' => '/articles/add', 'class' => 'form-horizontal', ], @@ -788,7 +784,6 @@ public function testHorizontalFormCreateFromConfig() 'form' => [ 'method' => 'post', 'accept-charset' => 'utf-8', - 'role' => 'form', 'action' => '/articles/add', 'class' => 'form-horizontal', ],