{"action":"created","issue":{"url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/41","repository_url":"https://api.github.com/repos/ohanhi/hyperscript-helpers","labels_url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/41/comments","events_url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/41/events","html_url":"https://github.com/ohanhi/hyperscript-helpers/issues/41","id":191924065,"number":41,"title":"svg issues using 'xlink:href'","user":{"login":"iambumblehead","id":2058705,"avatar_url":"https://avatars.githubusercontent.com/u/2058705?v=3","gravatar_id":"","url":"https://api.github.com/users/iambumblehead","html_url":"https://github.com/iambumblehead","followers_url":"https://api.github.com/users/iambumblehead/followers","following_url":"https://api.github.com/users/iambumblehead/following{/other_user}","gists_url":"https://api.github.com/users/iambumblehead/gists{/gist_id}","starred_url":"https://api.github.com/users/iambumblehead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iambumblehead/subscriptions","organizations_url":"https://api.github.com/users/iambumblehead/orgs","repos_url":"https://api.github.com/users/iambumblehead/repos","events_url":"https://api.github.com/users/iambumblehead/events{/privacy}","received_events_url":"https://api.github.com/users/iambumblehead/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-28T05:45:12Z","updated_at":"2016-11-28T06:31:03Z","closed_at":null,"body":"I'm using svg symbols and am finding it necessary to use the innerHTML attribute.\r\n\r\nThis **does result in svg render** but requires innerHTML:\r\n```javascript\r\ndiv('.mydiv', {\r\n  innerHTML : [\r\n    '<svg>',\r\n    '  <use xlink:href=\"./symbols.sprite.svg#ic_perm_data_setting_24px\"></use>',\r\n    '</svg>'\r\n  ].join('\\n')\r\n})      \r\n```\r\n\r\nThis **does not render the 'xlink:href'** attribute to the use element:\r\n```javascript\r\nsvg('.mysvg', [\r\n  use('.myuse', {\r\n     'xlink:href' : './symbols.sprite.svg#ic_perm_data_setting_24px'\r\n  })\r\n])\r\n```\r\n\r\nThese **do render attribute 'xlink:href'** to the use element, but **do not result in svg render**:\r\n```javascript\r\nsvg('.mysvg', [\r\n  use('.myuse', {\r\n    attributes : {\r\n      'xlink:href' : './symbols.sprite.svg#ic_perm_data_setting_24px'\r\n    }\r\n  })\r\n])\r\n```\r\n\r\n```javascript\r\nsvg('.mysvg', {\r\n  innerHTML : '<use xlink:href=\"./symbols.sprite.svg#ic_perm_data_setting_24px\"></use>'\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/comments/263193400","html_url":"https://github.com/ohanhi/hyperscript-helpers/issues/41#issuecomment-263193400","issue_url":"https://api.github.com/repos/ohanhi/hyperscript-helpers/issues/41","id":263193400,"user":{"login":"iambumblehead","id":2058705,"avatar_url":"https://avatars.githubusercontent.com/u/2058705?v=3","gravatar_id":"","url":"https://api.github.com/users/iambumblehead","html_url":"https://github.com/iambumblehead","followers_url":"https://api.github.com/users/iambumblehead/followers","following_url":"https://api.github.com/users/iambumblehead/following{/other_user}","gists_url":"https://api.github.com/users/iambumblehead/gists{/gist_id}","starred_url":"https://api.github.com/users/iambumblehead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iambumblehead/subscriptions","organizations_url":"https://api.github.com/users/iambumblehead/orgs","repos_url":"https://api.github.com/users/iambumblehead/repos","events_url":"https://api.github.com/users/iambumblehead/events{/privacy}","received_events_url":"https://api.github.com/users/iambumblehead/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T06:31:03Z","updated_at":"2016-11-28T06:31:03Z","body":"[this](https://github.com/Matt-Esch/virtual-dom/issues/262) seems related, but after removing the class/id string from the svg and use elements I still do not see rendered svg image."}}
{"actor":{"display_login":"iambumblehead"}}