{"action":"closed","issue":{"url":"https://api.github.com/repos/svgdotjs/svg.js/issues/909","repository_url":"https://api.github.com/repos/svgdotjs/svg.js","labels_url":"https://api.github.com/repos/svgdotjs/svg.js/issues/909/labels{/name}","comments_url":"https://api.github.com/repos/svgdotjs/svg.js/issues/909/comments","events_url":"https://api.github.com/repos/svgdotjs/svg.js/issues/909/events","html_url":"https://github.com/svgdotjs/svg.js/issues/909","id":365540461,"node_id":"MDU6SXNzdWUzNjU1NDA0NjE=","number":909,"title":"Document tree functions not working when adding a title element to a rectangle","user":{"login":"vitorcoder","id":22076574,"node_id":"MDQ6VXNlcjIyMDc2NTc0","avatar_url":"https://avatars3.githubusercontent.com/u/22076574?v=4","gravatar_id":"","url":"https://api.github.com/users/vitorcoder","html_url":"https://github.com/vitorcoder","followers_url":"https://api.github.com/users/vitorcoder/followers","following_url":"https://api.github.com/users/vitorcoder/following{/other_user}","gists_url":"https://api.github.com/users/vitorcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorcoder/subscriptions","organizations_url":"https://api.github.com/users/vitorcoder/orgs","repos_url":"https://api.github.com/users/vitorcoder/repos","events_url":"https://api.github.com/users/vitorcoder/events{/privacy}","received_events_url":"https://api.github.com/users/vitorcoder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-01T16:25:40Z","updated_at":"2018-12-06T16:52:49Z","closed_at":"2018-12-06T16:52:49Z","author_association":"NONE","body":"I'm trying to create a title element as a rectlangle's child using the Bare element creation function along with put, add, addTo and putIn functions, but the code breaks.\r\n\r\nEx:\r\n```\r\nvar canvas = SVG('canvas').size(500, 500);\r\n\r\nvar rect = canvas.rect(100, 100).fill('black');\r\nrect.attr({x: 250, y: 250});\r\n\t\t\r\nvar title = canvas.element('title').words('A tooltip!');\r\ntitle.putIn(rect);\r\n```\r\n\r\nThe errors are usually something like \"Uncaught TypeError: parent.add is not a function\"\r\n\r\nI was a able to reproduce the problem in this fiddle:  [https://jsfiddle.net/29utw6qr/3/](https://jsfiddle.net/29utw6qr/3/)\r\n\r\n"}}
{"actor":{"display_login":"Fuzzyma"}}