if you could use the type attribute for that, that would be nicer.