Why is this not valid ? "data-rt-menu-mobile" is not a member of a group specified for any attribute <div class="rt-menu-mobile"> <select data-rt-menu-mobile> <?php foreach ($menu->getChildren() as $item) : ?> <?php $this->renderMobileItem($item, $menu); ?> <?php endforeach; ?> </select> </div>
Do you mean this?? <div class="rt-menu-mobile"> <select class="data-rt-menu-mobile"> <?php foreach ($menu->getChildren() as $item) : ?> <?php $this->renderMobileItem($item, $menu); ?> <?php endforeach; ?> </select> </div>
It now validates but doesnt work properly, the menu comes up on the iphone but it wont go to the page?
1) STOP opening and closing PHP on every blasted line for no good reason. 2) if that 'data-rt' garbage needs to be an attribute, it will NEVER validate as there is no such attribute in the HTML specification. Without seeing the rest of your code we're guessing wildly as to what that nonsense even is, but I suspect whatever it is is going about it all wrong.