Not able to set type attribute in IE8 with( WS2008R2 - IIS 7 ) configuration

Not able to set type attribute in IE8 with( WS2008R2 - IIS 7 ) configuration

we are facing issue while trying to set the "type" attribute for a input element in IE8 with the machine configuration ( WS2008R2 - IIS 7).

$("<input id='main'></input>").attr("type","text")

Issue : "This comment is not supported"