Textjavascript was introduced when the web was young and people hadnt thought things through. Then people thought things through and decided that text should be reserved for things designed to be human readable which is why some XML is textxml and other XML is applicationxml.