Hi everybody,
I get something amazing with IE6.0, here's my snippet :
I don't know why but I get an Error with IE6.0 ...
If you create the PRE tag with document.createElement and put the innerHTML to appendChild the PRE to P, there's no error.
If you replace the PRE tag in my string with a SPAN, it will work, but not with a DIV or a nested P ...
This is really strange and i'm just looking for an explication ...
Hope someone get an issue or some information on that problem ...
Aurelien
I get something amazing with IE6.0, here's my snippet :
Code:
<html>
<head>
<script type="text/javascript">
window.onload = function()
{
document.getElementById('myP').innerHTML = '<pre>I hope this will work :)</pre>';
}
</script>
</head>
<body>
<p id="myP"></p>
</body>
</html>
I don't know why but I get an Error with IE6.0 ...
If you create the PRE tag with document.createElement and put the innerHTML to appendChild the PRE to P, there's no error.
If you replace the PRE tag in my string with a SPAN, it will work, but not with a DIV or a nested P ...
This is really strange and i'm just looking for an explication ...
Hope someone get an issue or some information on that problem ...
Aurelien