Is the usage of “type” and “text” attributes somewhere documented? How is it supposed we should know this?