diff --git a/ActiveForm.php b/ActiveForm.php index 164c613..15270e3 100644 --- a/ActiveForm.php +++ b/ActiveForm.php @@ -70,9 +70,9 @@ class ActiveForm extends \yii\widgets\ActiveForm */ public $fieldClass = 'yii\bootstrap\ActiveField'; /** - * @var array HTML attributes for the form tag. Default is `['role' => 'form']`. + * @var array HTML attributes for the form tag. Default is `[]`. */ - public $options = ['role' => 'form']; + public $options = []; /** * @var string the form layout. Either 'default', 'horizontal' or 'inline'. * By choosing a layout, an appropriate default field configuration is applied. This will diff --git a/CHANGELOG.md b/CHANGELOG.md index 21ad0da..a91842d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Yii Framework 2 bootstrap extension Change Log - Bug #143: Fixed `yii\bootstrap\Nav` to use tags according to bootstrap docs (PowerGamer1) - Bug #162: Fixed `yii\bootstrap\Nav` not taking explicit `active` into account when `activateItems` is off (samdark) - Enh #174: Added `yii\bootstrap\Tabs::renderPanes()` to allow extending the class to manipulate the content between the tabs and the content (thiagotalma) +- Bug #196: Remove `role="form"` from `yii\bootstrap\ActiveForm` according to new aria specification (bastardijke) 2.0.6 March 17, 2016 -------------------- diff --git a/tests/ActiveFormTest.php b/tests/ActiveFormTest.php new file mode 100644 index 0000000..1de7306 --- /dev/null +++ b/tests/ActiveFormTest.php @@ -0,0 +1,32 @@ +assertNotContains('role="form"', $form); + } +}