Skip to content

Commit

Permalink
Dev: fix w3c HTML validation : div inside span
Browse files Browse the repository at this point in the history
Dev: Maybe we can remove whole container
  • Loading branch information
Shnoulle committed Jul 2, 2015
1 parent c0840a6 commit 835cdd7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions application/helpers/qanda_helper.php
Expand Up @@ -398,21 +398,9 @@ function validation_message($ia,$show)
if (!$show) {
$class .= ' hide-tip';
}
$tip = '<span class="' . $class . '" id="vmsg_' . $ia[0] . '">' . $qinfo['validTip'] . "</span>";
$tip = CHtml::tag('div',array('class'=>$class,'id'=>"vmsg_{$ia[0]}"),$qinfo['validTip']); // div inside div (w3c)
$isValid = $qinfo['valid'];
return array($tip,$isValid);
// if (!$qinfo['valid']) {
// if (strlen($tip) == 0) {
// $help = gT('This question must be answered correctly');
// }
// else {
// $tip =' <span class="questionhelp">'.$tip.'</span>';
// }
// return '<br /><span class="errormandatory">'.$tip.'</span><br />';
// }
// else {
// return $tip;
// }
}

// TMSW Validation -> EM
Expand Down

0 comments on commit 835cdd7

Please sign in to comment.