[FEATURE] Support maximum length in TextElement

Like the InputElement, also the TextElement should support the
"max" option for specifying a maximum length attribute.

Resolves: #24906
Releases: master
Change-Id: I21435150ed61bd0b0b3b1f6e8bcbb1c50fb0f6e2
Reviewed-on: http://review.typo3.org/35506
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>