add "type" attr.