{"action":"closed","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/7036","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/7036/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/7036/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/7036/events","html_url":"https://github.com/WordPress/gutenberg/issues/7036","id":327941914,"node_id":"MDU6SXNzdWUzMjc5NDE5MTQ=","number":7036,"title":"DOMRect doesn't work in some browsers","user":{"login":"SymbolicallyMe","id":39569148,"node_id":"MDQ6VXNlcjM5NTY5MTQ4","avatar_url":"https://avatars3.githubusercontent.com/u/39569148?v=4","gravatar_id":"","url":"https://api.github.com/users/SymbolicallyMe","html_url":"https://github.com/SymbolicallyMe","followers_url":"https://api.github.com/users/SymbolicallyMe/followers","following_url":"https://api.github.com/users/SymbolicallyMe/following{/other_user}","gists_url":"https://api.github.com/users/SymbolicallyMe/gists{/gist_id}","starred_url":"https://api.github.com/users/SymbolicallyMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SymbolicallyMe/subscriptions","organizations_url":"https://api.github.com/users/SymbolicallyMe/orgs","repos_url":"https://api.github.com/users/SymbolicallyMe/repos","events_url":"https://api.github.com/users/SymbolicallyMe/events{/privacy}","received_events_url":"https://api.github.com/users/SymbolicallyMe/received_events","type":"User","site_admin":false},"labels":[{"id":562969841,"node_id":"MDU6TGFiZWw1NjI5Njk4NDE=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/Framework","name":"Framework","color":"fbca04","default":false},{"id":541913521,"node_id":"MDU6TGFiZWw1NDE5MTM1MjE=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/Priority%20High","name":"Priority High","color":"e99695","default":false},{"id":531680823,"node_id":"MDU6TGFiZWw1MzE2ODA4MjM=","url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Bug","name":"[Type] Bug","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":{"login":"brandonpayton","id":530877,"node_id":"MDQ6VXNlcjUzMDg3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/530877?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonpayton","html_url":"https://github.com/brandonpayton","followers_url":"https://api.github.com/users/brandonpayton/followers","following_url":"https://api.github.com/users/brandonpayton/following{/other_user}","gists_url":"https://api.github.com/users/brandonpayton/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonpayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonpayton/subscriptions","organizations_url":"https://api.github.com/users/brandonpayton/orgs","repos_url":"https://api.github.com/users/brandonpayton/repos","events_url":"https://api.github.com/users/brandonpayton/events{/privacy}","received_events_url":"https://api.github.com/users/brandonpayton/received_events","type":"User","site_admin":false},"assignees":[{"login":"brandonpayton","id":530877,"node_id":"MDQ6VXNlcjUzMDg3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/530877?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonpayton","html_url":"https://github.com/brandonpayton","followers_url":"https://api.github.com/users/brandonpayton/followers","following_url":"https://api.github.com/users/brandonpayton/following{/other_user}","gists_url":"https://api.github.com/users/brandonpayton/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonpayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonpayton/subscriptions","organizations_url":"https://api.github.com/users/brandonpayton/orgs","repos_url":"https://api.github.com/users/brandonpayton/repos","events_url":"https://api.github.com/users/brandonpayton/events{/privacy}","received_events_url":"https://api.github.com/users/brandonpayton/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/WordPress/gutenberg/milestones/37","html_url":"https://github.com/WordPress/gutenberg/milestone/37","labels_url":"https://api.github.com/repos/WordPress/gutenberg/milestones/37/labels","id":3153486,"node_id":"MDk6TWlsZXN0b25lMzE1MzQ4Ng==","number":37,"title":"WordPress 5.0","description":"Items to work on for a 5.0 initial release but which don't have to be part of merge proposal.","creator":{"login":"karmatosed","id":253067,"node_id":"MDQ6VXNlcjI1MzA2Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/253067?v=4","gravatar_id":"","url":"https://api.github.com/users/karmatosed","html_url":"https://github.com/karmatosed","followers_url":"https://api.github.com/users/karmatosed/followers","following_url":"https://api.github.com/users/karmatosed/following{/other_user}","gists_url":"https://api.github.com/users/karmatosed/gists{/gist_id}","starred_url":"https://api.github.com/users/karmatosed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmatosed/subscriptions","organizations_url":"https://api.github.com/users/karmatosed/orgs","repos_url":"https://api.github.com/users/karmatosed/repos","events_url":"https://api.github.com/users/karmatosed/events{/privacy}","received_events_url":"https://api.github.com/users/karmatosed/received_events","type":"User","site_admin":false},"open_issues":97,"closed_issues":61,"state":"open","created_at":"2018-03-01T12:59:53Z","updated_at":"2018-07-24T15:30:17Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-05-31T00:03:56Z","updated_at":"2018-07-24T15:30:17Z","closed_at":"2018-07-24T15:30:17Z","author_association":"NONE","body":"**Describe the bug**\r\nThe function/constructor `DOMRect`, used in [dom.js](https://github.com/WordPress/gutenberg/blob/master/packages/dom/src/dom.js) (line 160), does not work in Chrome 56, IE 11 and Microsoft Edge, but works in FireFox and Safari.\r\n<img width=\"451\" alt=\"screen shot 2018-05-30 at 8 08 04 pm\" src=\"https://user-images.githubusercontent.com/39569148/40754065-3a805fd4-6445-11e8-978d-b06957405f4d.png\">\r\n\r\n**To Reproduce**\r\n1. Add the **Table** block\r\n2. Open the command line\r\n3. Click on an empty table cell (you should get an error in the console for the browsers mentioned above).\r\n\r\n**Expected behavior**\r\nWhen clicking on an empty table cell within the **Table** block, and error should not occur.\r\n\r\n**Possible Solution**\r\nSince `DOMRect` works only in some browsers, a polyfill or mock DOMRect function should be created or used in place of it. TinyMCE provides it's own function to create Rectangles without issue.\r\n```JS\r\nimport tinymce from 'tinymce';\r\nvar rectangle = tinymce.geom.Rect.create( x, y, width, height );\r\n```\r\n\r\n**Screenshots**\r\n<img width=\"392\" alt=\"screen shot 2018-05-30 at 10 31 28 am\" src=\"https://user-images.githubusercontent.com/39569148/40753759-c90ae618-6443-11e8-895f-fbd41ffe1261.png\">\r\n\r\n**Relate Issues**\r\n #6666 "}}
{"actor":{"display_login":"brandonpayton"}}