<?php
+
class HTMLHiddenField extends HTMLFormField {
public function __construct( $params ) {
parent::__construct( $params );
# Per HTML5 spec, hidden fields cannot be 'required'
- # http://dev.w3.org/html5/spec/states-of-the-type-attribute.html#hidden-state
- unset( $this->mParams[ 'required' ] );
+ # http://www.w3.org/TR/html5/forms.html#hidden-state-%28type=hidden%29
+ unset( $this->mParams['required'] );
}
public function getTableRow( $value ) {
$params = array();
if ( $this->mID ) {
- $params[ 'id' ] = $this->mID;
+ $params['id'] = $this->mID;
}
$this->mParent->addHiddenField( $this->mName, $this->mDefault, $params );
public function getInputHTML( $value ) {
return '';
}
-}
\ No newline at end of file
+}