I have the following dojo codes to create a surface graphics element under a div:
....
node.innerHTML = "";
Non-standard, but fast and well supported.