{"action":"created","issue":{"url":"https://api.github.com/repos/Loilo/domify-template-strings/issues/1","repository_url":"https://api.github.com/repos/Loilo/domify-template-strings","labels_url":"https://api.github.com/repos/Loilo/domify-template-strings/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Loilo/domify-template-strings/issues/1/comments","events_url":"https://api.github.com/repos/Loilo/domify-template-strings/issues/1/events","html_url":"https://github.com/Loilo/domify-template-strings/issues/1","id":222335950,"number":1,"title":"why not return a fragment instead of a node list ?","user":{"login":"kapouer","id":131406,"avatar_url":"https://avatars2.githubusercontent.com/u/131406?v=3","gravatar_id":"","url":"https://api.github.com/users/kapouer","html_url":"https://github.com/kapouer","followers_url":"https://api.github.com/users/kapouer/followers","following_url":"https://api.github.com/users/kapouer/following{/other_user}","gists_url":"https://api.github.com/users/kapouer/gists{/gist_id}","starred_url":"https://api.github.com/users/kapouer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapouer/subscriptions","organizations_url":"https://api.github.com/users/kapouer/orgs","repos_url":"https://api.github.com/users/kapouer/repos","events_url":"https://api.github.com/users/kapouer/events{/privacy}","received_events_url":"https://api.github.com/users/kapouer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-18T08:12:47Z","updated_at":"2017-04-30T21:40:32Z","closed_at":null,"body":"Handling fragments is simpler, because it works with native methods:\r\n`document.body.appendChild(Inst.list('<p></p><p></p>'))`\r\n"},"comment":{"url":"https://api.github.com/repos/Loilo/domify-template-strings/issues/comments/298259070","html_url":"https://github.com/Loilo/domify-template-strings/issues/1#issuecomment-298259070","issue_url":"https://api.github.com/repos/Loilo/domify-template-strings/issues/1","id":298259070,"user":{"login":"Loilo","id":1922624,"avatar_url":"https://avatars0.githubusercontent.com/u/1922624?v=3","gravatar_id":"","url":"https://api.github.com/users/Loilo","html_url":"https://github.com/Loilo","followers_url":"https://api.github.com/users/Loilo/followers","following_url":"https://api.github.com/users/Loilo/following{/other_user}","gists_url":"https://api.github.com/users/Loilo/gists{/gist_id}","starred_url":"https://api.github.com/users/Loilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Loilo/subscriptions","organizations_url":"https://api.github.com/users/Loilo/orgs","repos_url":"https://api.github.com/users/Loilo/repos","events_url":"https://api.github.com/users/Loilo/events{/privacy}","received_events_url":"https://api.github.com/users/Loilo/received_events","type":"User","site_admin":false},"created_at":"2017-04-30T21:40:32Z","updated_at":"2017-04-30T21:40:32Z","body":"Yeah, point taken. I've just read through some issues over at `straker/html-tagged-template` and I currently favor [Domenic's suggestion](https://github.com/straker/html-tagged-template/issues/6#issuecomment-187311627) of having two methods, since I'm just not too sure about overloading the return type of a function.\r\n\r\nSo basically that would mean having the `domify` function that'd always return a `DocumentFragment` and something like `domify.node` which would assume one element, return a `Node` then and throw otherwise.\r\n\r\nHowever, that would in fact be a breaking change. I'm not sure much I'd value not releasing a new major version since almost nobody uses this package at the moment. (That issue generally could easily be fixed by defeating my terrible habit of releasing everything as `1.0.0` right away...)\r\n\r\nSo, to keep the current API, things could also be done the other way around: The current behaviour could be kept as the single-node option while adding a new alternative to `domify.list` (e.g. `domify.fragment`) which then would return a `DocumentFragment`.\r\n\r\nThoughts?"}}
{"actor":{"display_login":"Loilo"}}