<html>
<head>
<script>
function boom()
{
  var svgText = document.createElementNS("http://www.w3.org/2000/svg", "text");
  svgText.setAttribute("dx", "foo");
  svgText.removeAttribute("dx");
}
</script>
</head>
<body onload="boom();">
</body>
</html>