27        if (!isset($attr[
'type'])) {
 
   30            $t = strtolower($attr[
'type']);
 
   32        if (isset($attr[
'checked']) && 
$t !== 
'radio' && 
$t !== 
'checkbox') {
 
   33            unset($attr[
'checked']);
 
   35        if (isset($attr[
'maxlength']) && 
$t !== 
'text' && 
$t !== 
'password') {
 
   36            unset($attr[
'maxlength']);
 
   38        if (isset($attr[
'size']) && 
$t !== 
'text' && 
$t !== 
'password') {
 
   39            $result = $this->pixels->validate($attr[
'size'], 
$config, $context);
 
   46        if (isset($attr[
'src']) && 
$t !== 
'image') {
 
   49        if (!isset($attr[
'value']) && (
$t === 
'radio' || 
$t === 
'checkbox')) {
 
An exception for terminatinating execution or to throw for unit testing.
Validates an integer representation of pixels according to the HTML spec.