core-bundle/src/Resources/contao/forms/FormTextField.php
public function addAttributes($arrAttributes)
	{
		parent::addAttributes($arrAttributes);

		if ($this->type != 'number')
		{
			return;
		}

		foreach (array('minlength', 'minval', 'maxlength', 'maxval') as $name)
		{
			if (isset($arrAttributes[$name]))
			{
				$this->$name = $arrAttributes[$name];
			}
		}
	}
public function addAttributes($arrAttributes)
	{
		parent::addAttributes($arrAttributes);

		if ($this->type != 'number')
		{
			return;
		}

		foreach (array('minlength', 'minval', 'maxlength', 'maxval') as $name)
		{
			if (isset($arrAttributes[$name]))
			{
				$this->$name = $arrAttributes[$name];
			}
		}
	}
Re-add some attributes if the field type is a number