{"action":"created","issue":{"url":"https://api.github.com/repos/xgqfrms/FEIQA/issues/43","repository_url":"https://api.github.com/repos/xgqfrms/FEIQA","labels_url":"https://api.github.com/repos/xgqfrms/FEIQA/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/xgqfrms/FEIQA/issues/43/comments","events_url":"https://api.github.com/repos/xgqfrms/FEIQA/issues/43/events","html_url":"https://github.com/xgqfrms/FEIQA/issues/43","id":359728167,"node_id":"MDU6SXNzdWUzNTk3MjgxNjc=","number":43,"title":"HTML5 & template & polyfill","user":{"login":"xgqfrms","id":7291672,"node_id":"MDQ6VXNlcjcyOTE2NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/7291672?v=4","gravatar_id":"","url":"https://api.github.com/users/xgqfrms","html_url":"https://github.com/xgqfrms","followers_url":"https://api.github.com/users/xgqfrms/followers","following_url":"https://api.github.com/users/xgqfrms/following{/other_user}","gists_url":"https://api.github.com/users/xgqfrms/gists{/gist_id}","starred_url":"https://api.github.com/users/xgqfrms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xgqfrms/subscriptions","organizations_url":"https://api.github.com/users/xgqfrms/orgs","repos_url":"https://api.github.com/users/xgqfrms/repos","events_url":"https://api.github.com/users/xgqfrms/events{/privacy}","received_events_url":"https://api.github.com/users/xgqfrms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2018-09-13T03:23:07Z","updated_at":"2018-09-14T13:15:16Z","closed_at":null,"author_association":"OWNER","body":"# HTML5 & template & polyfill\r\n\r\n## html templates\r\n\r\nhttps://caniuse.com/#search=html%20templates\r\n\r\n![image](https://user-images.githubusercontent.com/7291672/45465961-2fab0480-b74a-11e8-9ec6-599e91c63aeb.png)\r\n\r\n## polyfill\r\n\r\nhttps://www.webcomponents.org/polyfills/\r\n\r\nhttps://stackoverflow.com/questions/16055275/html-templates-javascript-polyfills\r\n\r\n\r\n***\r\n\r\nhttps://github.com/jeffcarp/template-polyfill\r\n\r\nhttp://jsfiddle.net/brianblakely/h3EmY/\r\n\r\n> createDocumentFragment\r\n\r\n```js\r\n\r\n\"use strict\";\r\n\r\n/**\r\n *\r\n * @author xgqfrms\r\n * @license MIT\r\n * @copyright xgqfrms\r\n *\r\n * @description H5TemplatePolyfill\r\n * @augments\r\n * @example\r\n *\r\n */\r\n\r\n// const H5TemplatePolyfillGenerator = (datas = [], debug = false) => {\r\n//     let result = ``;\r\n//     // do something...\r\n//     return result;\r\n// };\r\n\r\n\r\n\r\n// export default H5TemplatePolyfill;\r\n\r\n// export {\r\n//     H5TemplatePolyfill,\r\n// };\r\n\r\n\r\nfunction templatePolyfill() {\r\n    if (\"content\" in document.createElement(\"template\")) {\r\n        return false;\r\n    }\r\n    var templates = document.getElementsByTagName(\"template\");\r\n    var plateLen = templates.length;\r\n    for (var x = 0; x < plateLen; ++x) {\r\n        var template = templates[x];\r\n        var content = template.childNodes;\r\n        var fragment = document.createDocumentFragment();\r\n        while (content[0]) {\r\n            fragment.appendChild(content[0]);\r\n        }\r\n        template.content = fragment;\r\n    }\r\n}\r\n\r\n// module.exports = templatePolyfill;\r\n\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xgqfrms/FEIQA/issues/comments/421354677","html_url":"https://github.com/xgqfrms/FEIQA/issues/43#issuecomment-421354677","issue_url":"https://api.github.com/repos/xgqfrms/FEIQA/issues/43","id":421354677,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTM1NDY3Nw==","user":{"login":"xgqfrms","id":7291672,"node_id":"MDQ6VXNlcjcyOTE2NzI=","avatar_url":"https://avatars2.githubusercontent.com/u/7291672?v=4","gravatar_id":"","url":"https://api.github.com/users/xgqfrms","html_url":"https://github.com/xgqfrms","followers_url":"https://api.github.com/users/xgqfrms/followers","following_url":"https://api.github.com/users/xgqfrms/following{/other_user}","gists_url":"https://api.github.com/users/xgqfrms/gists{/gist_id}","starred_url":"https://api.github.com/users/xgqfrms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xgqfrms/subscriptions","organizations_url":"https://api.github.com/users/xgqfrms/orgs","repos_url":"https://api.github.com/users/xgqfrms/repos","events_url":"https://api.github.com/users/xgqfrms/events{/privacy}","received_events_url":"https://api.github.com/users/xgqfrms/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T13:15:16Z","updated_at":"2018-09-14T13:15:16Z","author_association":"OWNER","body":"![image](https://user-images.githubusercontent.com/7291672/45551282-f2d13180-b85f-11e8-80f9-d6a8d5968090.png)\r\n"}}
{"actor":{"display_login":"xgqfrms"}}