{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/7130","repository_url":"https://api.github.com/repos/mozilla/pdf.js","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7130/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7130/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7130/events","html_url":"https://github.com/mozilla/pdf.js/pull/7130","id":144334186,"number":7130,"title":"Add element to text layer even if width === 0","user":{"login":"nschloe","id":181628,"avatar_url":"https://avatars.githubusercontent.com/u/181628?v=3","gravatar_id":"","url":"https://api.github.com/users/nschloe","html_url":"https://github.com/nschloe","followers_url":"https://api.github.com/users/nschloe/followers","following_url":"https://api.github.com/users/nschloe/following{/other_user}","gists_url":"https://api.github.com/users/nschloe/gists{/gist_id}","starred_url":"https://api.github.com/users/nschloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nschloe/subscriptions","organizations_url":"https://api.github.com/users/nschloe/orgs","repos_url":"https://api.github.com/users/nschloe/repos","events_url":"https://api.github.com/users/nschloe/events{/privacy}","received_events_url":"https://api.github.com/users/nschloe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/pdf.js/labels/4-text-selection","name":"4-text-selection","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-29T17:33:13Z","updated_at":"2016-03-29T20:57:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/pdf.js/pulls/7130","html_url":"https://github.com/mozilla/pdf.js/pull/7130","diff_url":"https://github.com/mozilla/pdf.js/pull/7130.diff","patch_url":"https://github.com/mozilla/pdf.js/pull/7130.patch"},"body":"Some browsers render certain special characters with width 0, others with strictly positive width. (For example, the Greek Delta, Δ, has width 0 in Google Chrome, and a positive width in Firefox.) The `if` clause in operation so far results in different text layer DOM trees for different browsers.\r\n\r\nThis commit fixes that by adding the elements independently of their width.\r\n\r\nFor the background:\r\nThis bug was discovered when using https://github.com/timdown/rangy, a tool to create and find text ranges in a DOM tree, used primarily for adding annotations."},"comment":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/203099957","html_url":"https://github.com/mozilla/pdf.js/pull/7130#issuecomment-203099957","issue_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7130","id":203099957,"user":{"login":"pdfjsbot","id":1036361,"avatar_url":"https://avatars.githubusercontent.com/u/1036361?v=3","gravatar_id":"","url":"https://api.github.com/users/pdfjsbot","html_url":"https://github.com/pdfjsbot","followers_url":"https://api.github.com/users/pdfjsbot/followers","following_url":"https://api.github.com/users/pdfjsbot/following{/other_user}","gists_url":"https://api.github.com/users/pdfjsbot/gists{/gist_id}","starred_url":"https://api.github.com/users/pdfjsbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdfjsbot/subscriptions","organizations_url":"https://api.github.com/users/pdfjsbot/orgs","repos_url":"https://api.github.com/users/pdfjsbot/repos","events_url":"https://api.github.com/users/pdfjsbot/events{/privacy}","received_events_url":"https://api.github.com/users/pdfjsbot/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T20:57:39Z","updated_at":"2016-03-29T20:57:39Z","body":"#### From: Bot.io (Linux)\n\n----\n\n# Success\n\nFull output at http://107.21.233.14:8877/f8c440b8fb693e9/output.txt\n\nTotal script time: 0.98 mins\n\n#### Published\n\n+ Viewer: http://107.21.233.14:8877/f8c440b8fb693e9/web/viewer.html\n+ B2G Viewer: http://107.21.233.14:8877/f8c440b8fb693e9/extensions/b2g/content/web/viewer.html\n+ Extension: http://107.21.233.14:8877/f8c440b8fb693e9/extensions/firefox/pdf.js.xpi"}}