<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">

function m()
{
  document.getElementById("j").nextSibling.data = 'b';
}

</script>
</head>

<body onload="m();"><p id="j">a</p> <div>c</div></body>

</html>