For this to be truly backward compatible,  there should be an `else` here setting `type` to `text`.