Using 'text/html' prevents local file from including html tags

When using saveTextAs in IE9 I noticed that HTML tags (<! DOCTYPE ....>, etc...) were included. By changing 'text/plain' to 'text/html' the output ends up just being the text.