{"action":"created","issue":{"url":"https://api.github.com/repos/shama/bel/issues/13","repository_url":"https://api.github.com/repos/shama/bel","labels_url":"https://api.github.com/repos/shama/bel/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/shama/bel/issues/13/comments","events_url":"https://api.github.com/repos/shama/bel/issues/13/events","html_url":"https://github.com/shama/bel/issues/13","id":140676729,"number":13,"title":".toString()?","user":{"login":"yoshuawuyts","id":2467194,"avatar_url":"https://avatars.githubusercontent.com/u/2467194?v=3","gravatar_id":"","url":"https://api.github.com/users/yoshuawuyts","html_url":"https://github.com/yoshuawuyts","followers_url":"https://api.github.com/users/yoshuawuyts/followers","following_url":"https://api.github.com/users/yoshuawuyts/following{/other_user}","gists_url":"https://api.github.com/users/yoshuawuyts/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshuawuyts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshuawuyts/subscriptions","organizations_url":"https://api.github.com/users/yoshuawuyts/orgs","repos_url":"https://api.github.com/users/yoshuawuyts/repos","events_url":"https://api.github.com/users/yoshuawuyts/events{/privacy}","received_events_url":"https://api.github.com/users/yoshuawuyts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-14T13:43:33Z","updated_at":"2016-03-15T08:15:41Z","closed_at":null,"body":"Perhaps it would be cool to include a proper `.toString()` method - I've found it quite useful when debugging in other packages. Right now it has the following behavior:\r\n\r\n```js\r\nconst bel = require('bel')\r\nconst tree = bel`<div>hello world</div>`\r\nconsole.log(tree.toString())\r\n// => <div></div>\r\n```\r\n\r\nThanks!\r\n\r\nSimilar to https://github.com/shama/base-element/issues/5"},"comment":{"url":"https://api.github.com/repos/shama/bel/issues/comments/196711366","html_url":"https://github.com/shama/bel/issues/13#issuecomment-196711366","issue_url":"https://api.github.com/repos/shama/bel/issues/13","id":196711366,"user":{"login":"chromakode","id":16893,"avatar_url":"https://avatars.githubusercontent.com/u/16893?v=3","gravatar_id":"","url":"https://api.github.com/users/chromakode","html_url":"https://github.com/chromakode","followers_url":"https://api.github.com/users/chromakode/followers","following_url":"https://api.github.com/users/chromakode/following{/other_user}","gists_url":"https://api.github.com/users/chromakode/gists{/gist_id}","starred_url":"https://api.github.com/users/chromakode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chromakode/subscriptions","organizations_url":"https://api.github.com/users/chromakode/orgs","repos_url":"https://api.github.com/users/chromakode/repos","events_url":"https://api.github.com/users/chromakode/events{/privacy}","received_events_url":"https://api.github.com/users/chromakode/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T08:15:41Z","updated_at":"2016-03-15T08:15:41Z","body":"Looks like a [similar change](https://github.com/chromakode/min-document/commit/eaa5b6c88555df2c50a666c98f55f57d258c4c4c) to min-document is needed for element nodes. @shama, is the check for `nodeName` necessary? If you removed it from bel I think you could get child node stringifying working without needing changes upstream."}}