{"action":"closed","issue":{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/436","repository_url":"https://api.github.com/repos/webcomponents/webcomponentsjs","labels_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/436/comments","events_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/436/events","html_url":"https://github.com/webcomponents/webcomponentsjs/issues/436","id":115593009,"number":436,"title":"document.importNode bug on firefox","user":{"login":"azakus","id":46725,"avatar_url":"https://avatars0.githubusercontent.com/u/46725?v=4","gravatar_id":"","url":"https://api.github.com/users/azakus","html_url":"https://github.com/azakus","followers_url":"https://api.github.com/users/azakus/followers","following_url":"https://api.github.com/users/azakus/following{/other_user}","gists_url":"https://api.github.com/users/azakus/gists{/gist_id}","starred_url":"https://api.github.com/users/azakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azakus/subscriptions","organizations_url":"https://api.github.com/users/azakus/orgs","repos_url":"https://api.github.com/users/azakus/repos","events_url":"https://api.github.com/users/azakus/events{/privacy}","received_events_url":"https://api.github.com/users/azakus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-11-06T21:23:05Z","updated_at":"2018-04-14T18:27:12Z","closed_at":"2018-04-14T18:27:12Z","author_association":"CONTRIBUTOR","body":"_From @cricri on October 26, 2015 8:37_\n\nThe loading of polymer on firefox 38.0.5 seems to break document.importNode. This works great on chrome 46.\n\n```\nTypeError: Argument 1 of Document.importNode is not an object.... webcomponents.js (line 1746, col 32)\n```\n\npolymer#1.2.0\n  └── webcomponentsjs#0.7.15\n\n``` html\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:svg=\"http://www.w3.org/2000/svg\">\n\n  <head>\n    <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/>\n\n    <script src=\"bower_components/webcomponentsjs/webcomponents.js\"></script>\n\n    <script>\n     window.addEventListener('load', function() {\n       var svg = '<?xml version=\"1.0\" encoding=\"utf-8\"?><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"300\" height=\"200\"><rect width=\"100\" height=\"80\" x=\"0\" y=\"70\" fill=\"green\" /><line x1=\"5\" y1=\"5\" x2=\"250\" y2=\"95\" stroke=\"red\" /><circle cx=\"90\" cy=\"80\" r=\"50\" fill=\"blue\" /><text x=\"180\" y=\"60\">Un texte</text></svg>';\n       var doc = new DOMParser().parseFromString(svg, 'application/xml');\n       var element = doc.documentElement;\n       var node = document.importNode(element, true);\n       document.getElementById('content').appendChild(node);\n     }, false);\n    </script>\n\n  </head>\n\n  <body>\n    <div id=\"content\"></div>\n  </body>\n\n</html>\n```\n\nComment the polymer line and it will work on firefox\n\n``` html\n   <script src=\"bower_components/webcomponentsjs/webcomponents.js\"></script>\n```\n\n_Copied from original issue: Polymer/polymer#2625_\n"}}
{"actor":{"display_login":"TimvdLippe"}}