{"action":"created","issue":{"url":"https://api.github.com/repos/ggp-org/ggp-base/issues/97","repository_url":"https://api.github.com/repos/ggp-org/ggp-base","labels_url":"https://api.github.com/repos/ggp-org/ggp-base/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/ggp-org/ggp-base/issues/97/comments","events_url":"https://api.github.com/repos/ggp-org/ggp-base/issues/97/events","html_url":"https://github.com/ggp-org/ggp-base/issues/97","id":117737448,"number":97,"title":"HTML parsing library for visualizations messes up divs","user":{"login":"AlexLandau","id":5733346,"avatar_url":"https://avatars.githubusercontent.com/u/5733346?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexLandau","html_url":"https://github.com/AlexLandau","followers_url":"https://api.github.com/users/AlexLandau/followers","following_url":"https://api.github.com/users/AlexLandau/following{/other_user}","gists_url":"https://api.github.com/users/AlexLandau/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexLandau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexLandau/subscriptions","organizations_url":"https://api.github.com/users/AlexLandau/orgs","repos_url":"https://api.github.com/users/AlexLandau/repos","events_url":"https://api.github.com/users/AlexLandau/events{/privacy}","received_events_url":"https://api.github.com/users/AlexLandau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-11-19T04:12:02Z","updated_at":"2016-07-07T06:15:46Z","closed_at":null,"body":"In preparing games for the coming competition, I'm seeing several cases where visualization code like\r\n\r\n```\r\n<div id=\"d1\"/>\r\n<div id=\"d2\"/>\r\n<div id=\"d3\"/>\r\n```\r\n\r\nturns into\r\n\r\n```\r\n<div id=\"d1\">\r\n<div id=\"d2\">\r\n<div id=\"d3\">\r\n</div></div></div>\r\n```\r\n\r\nThis wreaks havoc with visualizations (I believe Hex is an example).\r\n\r\nDebugging indicates this error is introduced by the \"new HtmlDocumentBuilder().parse(is)\" call in GameStateRenderer#renderImagefromGameXML. The input \"xhtml\" string is correct, the created dom object is incorrect."},"comment":{"url":"https://api.github.com/repos/ggp-org/ggp-base/issues/comments/230988304","html_url":"https://github.com/ggp-org/ggp-base/issues/97#issuecomment-230988304","issue_url":"https://api.github.com/repos/ggp-org/ggp-base/issues/97","id":230988304,"user":{"login":"AlexLandau","id":5733346,"avatar_url":"https://avatars.githubusercontent.com/u/5733346?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexLandau","html_url":"https://github.com/AlexLandau","followers_url":"https://api.github.com/users/AlexLandau/followers","following_url":"https://api.github.com/users/AlexLandau/following{/other_user}","gists_url":"https://api.github.com/users/AlexLandau/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexLandau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexLandau/subscriptions","organizations_url":"https://api.github.com/users/AlexLandau/orgs","repos_url":"https://api.github.com/users/AlexLandau/repos","events_url":"https://api.github.com/users/AlexLandau/events{/privacy}","received_events_url":"https://api.github.com/users/AlexLandau/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T06:15:46Z","updated_at":"2016-07-07T06:15:46Z","body":"Another possible solution: JxBrowser allows for embedding a web browser, and does not require Java 8 like the JavaFX browser approach. However, it is a very large and heavyweight dependency; it basically runs Chromium within the application.\r\n\r\nAnother approach would be to run a servlet and (within the Java app) just provide a link to the actual visualization(s), which would be shown in a user's browser."}}
{"actor":{"display_login":"AlexLandau"}}