{"action":"created","issue":{"url":"https://api.github.com/repos/jasonday/printThis/issues/142","repository_url":"https://api.github.com/repos/jasonday/printThis","labels_url":"https://api.github.com/repos/jasonday/printThis/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/jasonday/printThis/issues/142/comments","events_url":"https://api.github.com/repos/jasonday/printThis/issues/142/events","html_url":"https://github.com/jasonday/printThis/issues/142","id":288900756,"number":142,"title":"<style> tag cannot be easily cloned","user":{"login":"futurist","id":159167,"avatar_url":"https://avatars0.githubusercontent.com/u/159167?v=4","gravatar_id":"","url":"https://api.github.com/users/futurist","html_url":"https://github.com/futurist","followers_url":"https://api.github.com/users/futurist/followers","following_url":"https://api.github.com/users/futurist/following{/other_user}","gists_url":"https://api.github.com/users/futurist/gists{/gist_id}","starred_url":"https://api.github.com/users/futurist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futurist/subscriptions","organizations_url":"https://api.github.com/users/futurist/orgs","repos_url":"https://api.github.com/users/futurist/repos","events_url":"https://api.github.com/users/futurist/events{/privacy}","received_events_url":"https://api.github.com/users/futurist/received_events","type":"User","site_admin":false},"labels":[{"id":18104614,"url":"https://api.github.com/repos/jasonday/printThis/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-01-16T13:08:35Z","updated_at":"2018-03-18T16:50:31Z","closed_at":null,"author_association":"NONE","body":"> short description of the bug / issue, provide more detail below.\r\n\r\n[this line](https://github.com/jasonday/printThis/blob/40f8ebed2d85953c0191ea486b6ecdc844de6596/printThis.js#L169) of clone <style> may cause bug if the [style rules is inserted using js](https://davidwalsh.name/add-rules-stylesheets)\r\n\r\n\r\n#### Steps to reproduce the problem\r\n\r\n1. open your console, select any <style> tag in [this page](https://cssobj.github.io/cssobj-demo/)\r\n2. $($0).clone(), or `$0.cloneNode(true)`\r\n\r\n#### What is the expected behaviour?\r\n\r\nThe cloned node should have right stylesheet.\r\n\r\n#### What is the observed behaviour?\r\n\r\nYou cannot clone any `<style>` tag in this page\r\nThe cloned node don't have text of dynamically inserted.\r\n\r\n====================================================================\r\n\r\n#### When you set `debug:true` and inspect the iframe, what do you see?\r\n\r\n\r\n\r\n====================================================================\r\n\r\n#### More Details\r\n\r\n- Which browsers/versions does it happen on?\r\n- Which printThis version are you using?\r\n- Did this work before?\r\n\r\nI've created [clone-style](https://github.com/futurist/clone-style) to help.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jasonday/printThis/issues/comments/374015232","html_url":"https://github.com/jasonday/printThis/issues/142#issuecomment-374015232","issue_url":"https://api.github.com/repos/jasonday/printThis/issues/142","id":374015232,"user":{"login":"oculus42","id":1731657,"avatar_url":"https://avatars0.githubusercontent.com/u/1731657?v=4","gravatar_id":"","url":"https://api.github.com/users/oculus42","html_url":"https://github.com/oculus42","followers_url":"https://api.github.com/users/oculus42/followers","following_url":"https://api.github.com/users/oculus42/following{/other_user}","gists_url":"https://api.github.com/users/oculus42/gists{/gist_id}","starred_url":"https://api.github.com/users/oculus42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oculus42/subscriptions","organizations_url":"https://api.github.com/users/oculus42/orgs","repos_url":"https://api.github.com/users/oculus42/repos","events_url":"https://api.github.com/users/oculus42/events{/privacy}","received_events_url":"https://api.github.com/users/oculus42/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T16:50:31Z","updated_at":"2018-03-18T16:50:31Z","author_association":"COLLABORATOR","body":"I can confirm it works on IE 9, 10, and 11, as well as Safari on Desktop. Codepen won't let me print from the iframe on my iPad. Trying JSFiddle."}}
{"actor":{"display_login":"oculus42"}}