[+BUGFIX] ActionMenuItemViewHelper: XHTML compliance in "selected" attribute value
authorClaus Due <claus@wildsie.dk>
Mon, 16 May 2011 21:43:03 +0000 (23:43 +0200)
committerClaus Due, Wildside A/S <claus@wildside.dk>
Tue, 17 May 2011 08:28:05 +0000 (10:28 +0200)
This changes the value from TRUE to 'selected' for XHTML compliance.
Thanks to Andreas Kiessling for reporting.

Change-Id: I54651b737d658731d254c9692f714ac8df4a0079
Fixes: #8744

typo3/sysext/fluid/Classes/ViewHelpers/Be/Menus/ActionMenuItemViewHelper.php

index 80ac263..254d25e 100644 (file)
@@ -79,7 +79,7 @@ class Tx_Fluid_ViewHelpers_Be_Menus_ActionMenuItemViewHelper extends Tx_Fluid_Co
                $currentController = $currentRequest->getControllerName();
                $currentAction = $currentRequest->getControllerActionName();
                if ($action === $currentAction && $controller === $currentController) {
-                       $this->tag->addAttribute('selected', TRUE);
+                       $this->tag->addAttribute('selected', 'selected');
                }
 
                $this->tag->setContent($label);