Please Check below code In IE8:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript" type="text/javascript">
function btnclick() {
document.createElement("myTag");
var testctrl = document.createElement("div");
testctrl.innerHTML = " <myTag>hai</myTag>";
document.getElementById("temp").appendChild(testctrl);
alert(testctrl.innerHTML);
}
</script>
<style type="text/css">
myTag
{
background-color:Blue;
height:20px;
width:100px;
}
</style>
<title>
</title></head>
<body>
<input type="button" id="tbtn" onclick="javascript:btnclick();return false;" value="ClickMe"/>
<div id="temp" >
</div>
</body>
</html>
i got value from myTag Like As :
**testctrl.innerHTML contain as Follow**
"hai</MYTAG>"
So how can i use in this code for IE? I Should be want the tags Like as not like as