I'm using d3, and I'd like to use the getBBox method that SVG elements have.
I'm using the following:
(d3Selection.node() as SVGElement).getBBox()
Not all SVG elements have bounding boxes,
<defs> for instance doesn't, neither does
<title>, so yes SVGElement is the wrong type to use. You want SVGLocatable