title: Append <div> to node in SVG with D3
body: <p>I have tried to add some popup messages next to nodes but it looks like anything other than SVG &lt;text&gt; elements won't display with append.</p>
  
  <p>This works:</p>
  
  <pre><code>  node.append("text")
        .attr("dx", 16)
        .attr("dy", ".0em")
        .text(function(d) { return d.name });
  </code></pre>
  
  <p>But when I append a <code>div</code> instead of <code>text</code> it is not visible. Is there something I am missing here? How can I make the div visible? </p>
  
  <p>Also how can I easily get the position of node so i can transfer the positioning attributes to another element.</p>