diff --git a/core-bundle/contao/library/Contao/Widget.php b/core-bundle/contao/library/Contao/Widget.php
index <HASH>..<HASH> 100644
--- a/core-bundle/contao/library/Contao/Widget.php
+++ b/core-bundle/contao/library/Contao/Widget.php
@@ -253,6 +253,16 @@ abstract class Widget extends \Controller
 				$this->strWizard = $varValue;
 				break;
 
+			case 'autocomplete':
+			case 'autocorrect':
+			case 'autocapitalize':
+			case 'spellcheck':
+				if (is_bool($varValue))
+				{
+					$varValue = $varValue ? 'on' : 'off';
+				}
+				// Do not add a break; statement here
+
 			case 'alt':
 			case 'style':
 			case 'accesskey':
[Core] Support the "autocomplete", "autocorrect", "autocapitalize" and "spellcheck" attributes (see #<I>)