<!DOCTYPE html>
<html>
<body>
<script>
window.onload = function() {
var input = document.createElementNS("urn:x-foo", "input");
input.setAttribute("type", "image");
input.setAttribute("src", "bar.png");
document.body.appendChild(input);
};
</script>
</body>
</html>