Since you’re using d3 you need to tell d3 that the div is a html div and not some element in the svg namespace. Try
.append("xhtml:div")
Since you’re using d3 you need to tell d3 that the div is a html div and not some element in the svg namespace. Try
.append("xhtml:div")