{"action":"created","comment":{"url":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/comments/42880527","id":42880527,"diff_hunk":"@@ -107,13 +122,9 @@ module.exports = (function() {\n \n   var parseHtml = function(html) {\n     var tmpDocument = document.implementation.createHTMLDocument('parser');\n-    tmpDocument.body.innerHTML = [\n-      '<head></head>',\n-      html,","path":"src/format-preserver/format-preserver.js","position":61,"original_position":61,"commit_id":"dd2b246dd33f34c2bc481ba196be8e0202804d8f","original_commit_id":"dd2b246dd33f34c2bc481ba196be8e0202804d8f","user":{"login":"sashless","id":1218924,"avatar_url":"https://avatars.githubusercontent.com/u/1218924?v=3","gravatar_id":"","url":"https://api.github.com/users/sashless","html_url":"https://github.com/sashless","followers_url":"https://api.github.com/users/sashless/followers","following_url":"https://api.github.com/users/sashless/following{/other_user}","gists_url":"https://api.github.com/users/sashless/gists{/gist_id}","starred_url":"https://api.github.com/users/sashless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashless/subscriptions","organizations_url":"https://api.github.com/users/sashless/orgs","repos_url":"https://api.github.com/users/sashless/repos","events_url":"https://api.github.com/users/sashless/events{/privacy}","received_events_url":"https://api.github.com/users/sashless/received_events","type":"User","site_admin":false},"body":"funny that this was not causing any problems","created_at":"2015-10-23T15:46:02Z","updated_at":"2015-10-23T15:46:02Z","html_url":"https://github.com/easybiblabs/format-preserver/pull/3#discussion_r42880527","pull_request_url":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/comments/42880527"},"html":{"href":"https://github.com/easybiblabs/format-preserver/pull/3#discussion_r42880527"},"pull_request":{"href":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/3","id":48593943,"html_url":"https://github.com/easybiblabs/format-preserver/pull/3","diff_url":"https://github.com/easybiblabs/format-preserver/pull/3.diff","patch_url":"https://github.com/easybiblabs/format-preserver/pull/3.patch","issue_url":"https://api.github.com/repos/easybiblabs/format-preserver/issues/3","number":3,"state":"open","locked":false,"title":"preserve lonely text nodes as well","user":{"login":"sashless","id":1218924,"avatar_url":"https://avatars.githubusercontent.com/u/1218924?v=3","gravatar_id":"","url":"https://api.github.com/users/sashless","html_url":"https://github.com/sashless","followers_url":"https://api.github.com/users/sashless/followers","following_url":"https://api.github.com/users/sashless/following{/other_user}","gists_url":"https://api.github.com/users/sashless/gists{/gist_id}","starred_url":"https://api.github.com/users/sashless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashless/subscriptions","organizations_url":"https://api.github.com/users/sashless/orgs","repos_url":"https://api.github.com/users/sashless/repos","events_url":"https://api.github.com/users/sashless/events{/privacy}","received_events_url":"https://api.github.com/users/sashless/received_events","type":"User","site_admin":false},"body":"when textnodes were not enclosed by an element\r\nthey were removed. This is fixed now due using childNodes\r\ninstead of children.\r\n\r\nfor https://github.com/easybib/issues/issues/4698","created_at":"2015-10-23T15:27:51Z","updated_at":"2015-10-23T15:46:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b9585ba048ae4e30f30eb213dc0bf9e47c7349c","assignee":{"login":"strmpnk","id":140856,"avatar_url":"https://avatars.githubusercontent.com/u/140856?v=3","gravatar_id":"","url":"https://api.github.com/users/strmpnk","html_url":"https://github.com/strmpnk","followers_url":"https://api.github.com/users/strmpnk/followers","following_url":"https://api.github.com/users/strmpnk/following{/other_user}","gists_url":"https://api.github.com/users/strmpnk/gists{/gist_id}","starred_url":"https://api.github.com/users/strmpnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strmpnk/subscriptions","organizations_url":"https://api.github.com/users/strmpnk/orgs","repos_url":"https://api.github.com/users/strmpnk/repos","events_url":"https://api.github.com/users/strmpnk/events{/privacy}","received_events_url":"https://api.github.com/users/strmpnk/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/3/commits","review_comments_url":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/3/comments","review_comment_url":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/easybiblabs/format-preserver/issues/3/comments","statuses_url":"https://api.github.com/repos/easybiblabs/format-preserver/statuses/dd2b246dd33f34c2bc481ba196be8e0202804d8f","head":{"label":"easybiblabs:topics/includeLonelyTextNodes","ref":"topics/includeLonelyTextNodes","sha":"dd2b246dd33f34c2bc481ba196be8e0202804d8f","user":{"login":"easybiblabs","id":4500525,"avatar_url":"https://avatars.githubusercontent.com/u/4500525?v=3","gravatar_id":"","url":"https://api.github.com/users/easybiblabs","html_url":"https://github.com/easybiblabs","followers_url":"https://api.github.com/users/easybiblabs/followers","following_url":"https://api.github.com/users/easybiblabs/following{/other_user}","gists_url":"https://api.github.com/users/easybiblabs/gists{/gist_id}","starred_url":"https://api.github.com/users/easybiblabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easybiblabs/subscriptions","organizations_url":"https://api.github.com/users/easybiblabs/orgs","repos_url":"https://api.github.com/users/easybiblabs/repos","events_url":"https://api.github.com/users/easybiblabs/events{/privacy}","received_events_url":"https://api.github.com/users/easybiblabs/received_events","type":"Organization","site_admin":false},"repo":{"id":44605820,"name":"format-preserver","full_name":"easybiblabs/format-preserver","owner":{"login":"easybiblabs","id":4500525,"avatar_url":"https://avatars.githubusercontent.com/u/4500525?v=3","gravatar_id":"","url":"https://api.github.com/users/easybiblabs","html_url":"https://github.com/easybiblabs","followers_url":"https://api.github.com/users/easybiblabs/followers","following_url":"https://api.github.com/users/easybiblabs/following{/other_user}","gists_url":"https://api.github.com/users/easybiblabs/gists{/gist_id}","starred_url":"https://api.github.com/users/easybiblabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easybiblabs/subscriptions","organizations_url":"https://api.github.com/users/easybiblabs/orgs","repos_url":"https://api.github.com/users/easybiblabs/repos","events_url":"https://api.github.com/users/easybiblabs/events{/privacy}","received_events_url":"https://api.github.com/users/easybiblabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/easybiblabs/format-preserver","description":"Used to preserve formats like BUI when stripping markup and styles from a string containing HTML","fork":false,"url":"https://api.github.com/repos/easybiblabs/format-preserver","forks_url":"https://api.github.com/repos/easybiblabs/format-preserver/forks","keys_url":"https://api.github.com/repos/easybiblabs/format-preserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easybiblabs/format-preserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easybiblabs/format-preserver/teams","hooks_url":"https://api.github.com/repos/easybiblabs/format-preserver/hooks","issue_events_url":"https://api.github.com/repos/easybiblabs/format-preserver/issues/events{/number}","events_url":"https://api.github.com/repos/easybiblabs/format-preserver/events","assignees_url":"https://api.github.com/repos/easybiblabs/format-preserver/assignees{/user}","branches_url":"https://api.github.com/repos/easybiblabs/format-preserver/branches{/branch}","tags_url":"https://api.github.com/repos/easybiblabs/format-preserver/tags","blobs_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easybiblabs/format-preserver/statuses/{sha}","languages_url":"https://api.github.com/repos/easybiblabs/format-preserver/languages","stargazers_url":"https://api.github.com/repos/easybiblabs/format-preserver/stargazers","contributors_url":"https://api.github.com/repos/easybiblabs/format-preserver/contributors","subscribers_url":"https://api.github.com/repos/easybiblabs/format-preserver/subscribers","subscription_url":"https://api.github.com/repos/easybiblabs/format-preserver/subscription","commits_url":"https://api.github.com/repos/easybiblabs/format-preserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/easybiblabs/format-preserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/easybiblabs/format-preserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/easybiblabs/format-preserver/contents/{+path}","compare_url":"https://api.github.com/repos/easybiblabs/format-preserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easybiblabs/format-preserver/merges","archive_url":"https://api.github.com/repos/easybiblabs/format-preserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easybiblabs/format-preserver/downloads","issues_url":"https://api.github.com/repos/easybiblabs/format-preserver/issues{/number}","pulls_url":"https://api.github.com/repos/easybiblabs/format-preserver/pulls{/number}","milestones_url":"https://api.github.com/repos/easybiblabs/format-preserver/milestones{/number}","notifications_url":"https://api.github.com/repos/easybiblabs/format-preserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easybiblabs/format-preserver/labels{/name}","releases_url":"https://api.github.com/repos/easybiblabs/format-preserver/releases{/id}","created_at":"2015-10-20T12:49:43Z","updated_at":"2015-10-22T10:29:42Z","pushed_at":"2015-10-23T15:41:48Z","git_url":"git://github.com/easybiblabs/format-preserver.git","ssh_url":"git@github.com:easybiblabs/format-preserver.git","clone_url":"https://github.com/easybiblabs/format-preserver.git","svn_url":"https://github.com/easybiblabs/format-preserver","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"easybiblabs:master","ref":"master","sha":"a7ca9849661def29dfbca1be3f06eb3204e64f74","user":{"login":"easybiblabs","id":4500525,"avatar_url":"https://avatars.githubusercontent.com/u/4500525?v=3","gravatar_id":"","url":"https://api.github.com/users/easybiblabs","html_url":"https://github.com/easybiblabs","followers_url":"https://api.github.com/users/easybiblabs/followers","following_url":"https://api.github.com/users/easybiblabs/following{/other_user}","gists_url":"https://api.github.com/users/easybiblabs/gists{/gist_id}","starred_url":"https://api.github.com/users/easybiblabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easybiblabs/subscriptions","organizations_url":"https://api.github.com/users/easybiblabs/orgs","repos_url":"https://api.github.com/users/easybiblabs/repos","events_url":"https://api.github.com/users/easybiblabs/events{/privacy}","received_events_url":"https://api.github.com/users/easybiblabs/received_events","type":"Organization","site_admin":false},"repo":{"id":44605820,"name":"format-preserver","full_name":"easybiblabs/format-preserver","owner":{"login":"easybiblabs","id":4500525,"avatar_url":"https://avatars.githubusercontent.com/u/4500525?v=3","gravatar_id":"","url":"https://api.github.com/users/easybiblabs","html_url":"https://github.com/easybiblabs","followers_url":"https://api.github.com/users/easybiblabs/followers","following_url":"https://api.github.com/users/easybiblabs/following{/other_user}","gists_url":"https://api.github.com/users/easybiblabs/gists{/gist_id}","starred_url":"https://api.github.com/users/easybiblabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easybiblabs/subscriptions","organizations_url":"https://api.github.com/users/easybiblabs/orgs","repos_url":"https://api.github.com/users/easybiblabs/repos","events_url":"https://api.github.com/users/easybiblabs/events{/privacy}","received_events_url":"https://api.github.com/users/easybiblabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/easybiblabs/format-preserver","description":"Used to preserve formats like BUI when stripping markup and styles from a string containing HTML","fork":false,"url":"https://api.github.com/repos/easybiblabs/format-preserver","forks_url":"https://api.github.com/repos/easybiblabs/format-preserver/forks","keys_url":"https://api.github.com/repos/easybiblabs/format-preserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easybiblabs/format-preserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easybiblabs/format-preserver/teams","hooks_url":"https://api.github.com/repos/easybiblabs/format-preserver/hooks","issue_events_url":"https://api.github.com/repos/easybiblabs/format-preserver/issues/events{/number}","events_url":"https://api.github.com/repos/easybiblabs/format-preserver/events","assignees_url":"https://api.github.com/repos/easybiblabs/format-preserver/assignees{/user}","branches_url":"https://api.github.com/repos/easybiblabs/format-preserver/branches{/branch}","tags_url":"https://api.github.com/repos/easybiblabs/format-preserver/tags","blobs_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easybiblabs/format-preserver/statuses/{sha}","languages_url":"https://api.github.com/repos/easybiblabs/format-preserver/languages","stargazers_url":"https://api.github.com/repos/easybiblabs/format-preserver/stargazers","contributors_url":"https://api.github.com/repos/easybiblabs/format-preserver/contributors","subscribers_url":"https://api.github.com/repos/easybiblabs/format-preserver/subscribers","subscription_url":"https://api.github.com/repos/easybiblabs/format-preserver/subscription","commits_url":"https://api.github.com/repos/easybiblabs/format-preserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/easybiblabs/format-preserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/easybiblabs/format-preserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/easybiblabs/format-preserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/easybiblabs/format-preserver/contents/{+path}","compare_url":"https://api.github.com/repos/easybiblabs/format-preserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easybiblabs/format-preserver/merges","archive_url":"https://api.github.com/repos/easybiblabs/format-preserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easybiblabs/format-preserver/downloads","issues_url":"https://api.github.com/repos/easybiblabs/format-preserver/issues{/number}","pulls_url":"https://api.github.com/repos/easybiblabs/format-preserver/pulls{/number}","milestones_url":"https://api.github.com/repos/easybiblabs/format-preserver/milestones{/number}","notifications_url":"https://api.github.com/repos/easybiblabs/format-preserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easybiblabs/format-preserver/labels{/name}","releases_url":"https://api.github.com/repos/easybiblabs/format-preserver/releases{/id}","created_at":"2015-10-20T12:49:43Z","updated_at":"2015-10-22T10:29:42Z","pushed_at":"2015-10-23T15:41:48Z","git_url":"git://github.com/easybiblabs/format-preserver.git","ssh_url":"git@github.com:easybiblabs/format-preserver.git","clone_url":"https://github.com/easybiblabs/format-preserver.git","svn_url":"https://github.com/easybiblabs/format-preserver","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/3"},"html":{"href":"https://github.com/easybiblabs/format-preserver/pull/3"},"issue":{"href":"https://api.github.com/repos/easybiblabs/format-preserver/issues/3"},"comments":{"href":"https://api.github.com/repos/easybiblabs/format-preserver/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/easybiblabs/format-preserver/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/easybiblabs/format-preserver/statuses/dd2b246dd33f34c2bc481ba196be8e0202804d8f"}}}}