pass textbox type property to dom

Textbox widget has a type property, but doesn't make use of it. The patch fixes the issue.