{"action":"created","issue":{"url":"https://api.github.com/repos/Imangazaliev/DiDOM/issues/64","repository_url":"https://api.github.com/repos/Imangazaliev/DiDOM","labels_url":"https://api.github.com/repos/Imangazaliev/DiDOM/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/Imangazaliev/DiDOM/issues/64/comments","events_url":"https://api.github.com/repos/Imangazaliev/DiDOM/issues/64/events","html_url":"https://github.com/Imangazaliev/DiDOM/issues/64","id":192991770,"number":64,"title":"Bug: <img..> to <img..></img>","user":{"login":"testnameforbug","id":24305321,"avatar_url":"https://avatars.githubusercontent.com/u/24305321?v=3","gravatar_id":"","url":"https://api.github.com/users/testnameforbug","html_url":"https://github.com/testnameforbug","followers_url":"https://api.github.com/users/testnameforbug/followers","following_url":"https://api.github.com/users/testnameforbug/following{/other_user}","gists_url":"https://api.github.com/users/testnameforbug/gists{/gist_id}","starred_url":"https://api.github.com/users/testnameforbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testnameforbug/subscriptions","organizations_url":"https://api.github.com/users/testnameforbug/orgs","repos_url":"https://api.github.com/users/testnameforbug/repos","events_url":"https://api.github.com/users/testnameforbug/events{/privacy}","received_events_url":"https://api.github.com/users/testnameforbug/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-01T23:26:36Z","updated_at":"2016-12-02T17:08:35Z","closed_at":null,"body":"Hello. In last version have bug:   it echo `<img..></img>`, but not `<img>`\r\n\r\n```\r\n$html = '<div class=\"block-media\"><img src=\"image.png\"></div>';\r\n$doc = new Document();\r\n$doc->loadHtml($html);\r\n$data = $doc->xpath('//div');\r\nprint_r($data[0]->html());\r\n```\r\n\r\nold version is GOOD:\r\n`<div class=\"block-media\"><img src=\"image.png\"/></div>`\r\n\r\nNEW version is BAD:\r\n`<div class=\"block-media\"><img src=\"image.png\"></img></div>`"},"comment":{"url":"https://api.github.com/repos/Imangazaliev/DiDOM/issues/comments/264506681","html_url":"https://github.com/Imangazaliev/DiDOM/issues/64#issuecomment-264506681","issue_url":"https://api.github.com/repos/Imangazaliev/DiDOM/issues/64","id":264506681,"user":{"login":"Imangazaliev","id":11244193,"avatar_url":"https://avatars.githubusercontent.com/u/11244193?v=3","gravatar_id":"","url":"https://api.github.com/users/Imangazaliev","html_url":"https://github.com/Imangazaliev","followers_url":"https://api.github.com/users/Imangazaliev/followers","following_url":"https://api.github.com/users/Imangazaliev/following{/other_user}","gists_url":"https://api.github.com/users/Imangazaliev/gists{/gist_id}","starred_url":"https://api.github.com/users/Imangazaliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Imangazaliev/subscriptions","organizations_url":"https://api.github.com/users/Imangazaliev/orgs","repos_url":"https://api.github.com/users/Imangazaliev/repos","events_url":"https://api.github.com/users/Imangazaliev/events{/privacy}","received_events_url":"https://api.github.com/users/Imangazaliev/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T17:08:35Z","updated_at":"2016-12-02T17:08:35Z","body":"Hello. It is not bug. In new version I pass LIBXML_NOEMPTYTAG ([Document](https://github.com/Imangazaliev/DiDOM/blob/master/src/DiDom/Document.php#L435), [Element](https://github.com/Imangazaliev/DiDOM/blob/master/src/DiDom/Element.php#L374)). You can do this:\r\n\r\n```\r\n$data[0]->html(0);\r\n```\r\n\r\n"}}
{"actor":{"display_login":"Imangazaliev"}}