Added an optional 'input-type' attribute to support HTML5 input types such as 'search'.