请帮忙看一下哪里不行
<script type="text/javascript"> function replaceMessage(){ var oldnode=document.getElementById("oldnode"); var newnode=document.createElement("i"); var oldtext=olenode.innerHTML; newnode.appendChild(oldtext); oldnode.parentNode.replaceChild(newnode,oldnode) } </script>