Remove wrong API
Add the safety check
Add API to know if the node is a svg document
Change the parent of the text element

Instead of using a shape better use a new interface
The text content will serve for that purpose.