{"action":"created","issue":{"url":"https://api.github.com/repos/julmot/mark.js/issues/16","repository_url":"https://api.github.com/repos/julmot/mark.js","labels_url":"https://api.github.com/repos/julmot/mark.js/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/julmot/mark.js/issues/16/comments","events_url":"https://api.github.com/repos/julmot/mark.js/issues/16/events","html_url":"https://github.com/julmot/mark.js/issues/16","id":138856384,"number":16,"title":"Problem with embedded IFrames with different origin","user":{"login":"KrzysztofMadejski","id":849975,"avatar_url":"https://avatars.githubusercontent.com/u/849975?v=3","gravatar_id":"","url":"https://api.github.com/users/KrzysztofMadejski","html_url":"https://github.com/KrzysztofMadejski","followers_url":"https://api.github.com/users/KrzysztofMadejski/followers","following_url":"https://api.github.com/users/KrzysztofMadejski/following{/other_user}","gists_url":"https://api.github.com/users/KrzysztofMadejski/gists{/gist_id}","starred_url":"https://api.github.com/users/KrzysztofMadejski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrzysztofMadejski/subscriptions","organizations_url":"https://api.github.com/users/KrzysztofMadejski/orgs","repos_url":"https://api.github.com/users/KrzysztofMadejski/repos","events_url":"https://api.github.com/users/KrzysztofMadejski/events{/privacy}","received_events_url":"https://api.github.com/users/KrzysztofMadejski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/julmot/mark.js/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"julmot","id":8310677,"avatar_url":"https://avatars.githubusercontent.com/u/8310677?v=3","gravatar_id":"","url":"https://api.github.com/users/julmot","html_url":"https://github.com/julmot","followers_url":"https://api.github.com/users/julmot/followers","following_url":"https://api.github.com/users/julmot/following{/other_user}","gists_url":"https://api.github.com/users/julmot/gists{/gist_id}","starred_url":"https://api.github.com/users/julmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julmot/subscriptions","organizations_url":"https://api.github.com/users/julmot/orgs","repos_url":"https://api.github.com/users/julmot/repos","events_url":"https://api.github.com/users/julmot/events{/privacy}","received_events_url":"https://api.github.com/users/julmot/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/julmot/mark.js/milestones/2","html_url":"https://github.com/julmot/mark.js/milestones/5.0.0","labels_url":"https://api.github.com/repos/julmot/mark.js/milestones/2/labels","id":1642629,"number":2,"title":"5.0.0","description":"","creator":{"login":"julmot","id":8310677,"avatar_url":"https://avatars.githubusercontent.com/u/8310677?v=3","gravatar_id":"","url":"https://api.github.com/users/julmot","html_url":"https://github.com/julmot","followers_url":"https://api.github.com/users/julmot/followers","following_url":"https://api.github.com/users/julmot/following{/other_user}","gists_url":"https://api.github.com/users/julmot/gists{/gist_id}","starred_url":"https://api.github.com/users/julmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julmot/subscriptions","organizations_url":"https://api.github.com/users/julmot/orgs","repos_url":"https://api.github.com/users/julmot/repos","events_url":"https://api.github.com/users/julmot/events{/privacy}","received_events_url":"https://api.github.com/users/julmot/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":5,"state":"closed","created_at":"2016-03-14T12:28:17Z","updated_at":"2016-04-05T08:11:07Z","due_on":"2016-03-30T22:00:00Z","closed_at":"2016-04-05T08:11:07Z"},"comments":14,"created_at":"2016-03-07T00:53:44Z","updated_at":"2016-05-10T14:39:12Z","closed_at":"2016-03-25T21:13:59Z","body":"While highlighting I'm getting error:\r\n`Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin \"http://www.polskieradio.pl\" from accessing a frame with origin \"http://platform.twitter.com\". Protocols, domains, and ports must match.`\r\n\r\nIt's being thrown at https://github.com/julmot/jmHighlight/blob/master/src/jquery.jmHighlight.js#L295\r\n\r\nIFrames at some point should be excluded from highlighting in them (at least the ones the are not in the same domain CORS-like).\r\n\r\n### Steps to reproduce\r\n\r\n1. Open http://www.polskieradio.pl/7/1691/Artykul/1392115\r\n2. Open dev console\r\n3. Load jmHighlight version mentioned below\r\n4. Run in console `$('body').jmHighlight('Debata polityczna Jedynki');`\r\n\r\n### Environment\r\n\r\n- Google Chrome 48.0.2564.116\r\n- jmHighlight 4.0.1\r\n- jQuery v1.12.0 \r\n"},"comment":{"url":"https://api.github.com/repos/julmot/mark.js/issues/comments/218178092","html_url":"https://github.com/julmot/mark.js/issues/16#issuecomment-218178092","issue_url":"https://api.github.com/repos/julmot/mark.js/issues/16","id":218178092,"user":{"login":"julmot","id":8310677,"avatar_url":"https://avatars.githubusercontent.com/u/8310677?v=3","gravatar_id":"","url":"https://api.github.com/users/julmot","html_url":"https://github.com/julmot","followers_url":"https://api.github.com/users/julmot/followers","following_url":"https://api.github.com/users/julmot/following{/other_user}","gists_url":"https://api.github.com/users/julmot/gists{/gist_id}","starred_url":"https://api.github.com/users/julmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julmot/subscriptions","organizations_url":"https://api.github.com/users/julmot/orgs","repos_url":"https://api.github.com/users/julmot/repos","events_url":"https://api.github.com/users/julmot/events{/privacy}","received_events_url":"https://api.github.com/users/julmot/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T14:39:11Z","updated_at":"2016-05-10T14:39:11Z","body":"@KrzysztofMadejski How was the result? "}}