{"action":"closed","issue":{"url":"https://api.github.com/repos/Masterminds/html5-php/issues/96","repository_url":"https://api.github.com/repos/Masterminds/html5-php","labels_url":"https://api.github.com/repos/Masterminds/html5-php/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/Masterminds/html5-php/issues/96/comments","events_url":"https://api.github.com/repos/Masterminds/html5-php/issues/96/events","html_url":"https://github.com/Masterminds/html5-php/issues/96","id":129908108,"number":96,"title":"Parser breaking xml:href on svgs that use the \"use\" element in 2.1.2","user":{"login":"mattbucci","id":3284147,"avatar_url":"https://avatars.githubusercontent.com/u/3284147?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbucci","html_url":"https://github.com/mattbucci","followers_url":"https://api.github.com/users/mattbucci/followers","following_url":"https://api.github.com/users/mattbucci/following{/other_user}","gists_url":"https://api.github.com/users/mattbucci/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbucci/subscriptions","organizations_url":"https://api.github.com/users/mattbucci/orgs","repos_url":"https://api.github.com/users/mattbucci/repos","events_url":"https://api.github.com/users/mattbucci/events{/privacy}","received_events_url":"https://api.github.com/users/mattbucci/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-29T23:10:03Z","updated_at":"2016-03-15T10:52:12Z","closed_at":"2016-03-15T10:52:12Z","body":"I'm parsing my entire website, modifying assets to use a cdn\r\n\r\nI've got svg elements like the following and when I save them the xlink:href of the use child is changed to just be href\r\n\r\n```\r\n<svg class=\"svg-icon icon__track\">\r\n   <use xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"#svg-track\"></use>\r\n</svg>\r\n\r\n<symbol id=\"svg-track\" viewBox=\"0 0 42 42\"><path d=\"M39.7 18.9c0-.1 0-.1 0 0v-.2-.1-.1-.1s0-.1-.1-.1c0 0 0-.1-.1-.1l-.1-.1-.1-.1h-.1s-.1 0-.1-.1l-2.8-1.3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1.9c-1.1 0-1.9-.9-1.9-1.9zm-2.2 13.1c-1 0-1.9-.8-1.9-1.9 0-1 .8-1.9 1.9-1.9 1 0 1.9.8 1.9 1.9-.1 1.1-.9 1.9-1.9 1.9zm18.5-1.5c0 1-.8 1.9-1.9 1.9-1 0-1.9-.8-1.9-1.9 0-1 .8-1.9 1.9-1.9 1.1 0 1.9.9 1.9 1.9z\"></path></symbol>\r\n```\r\n\r\nWhen parsing it here's what the xlink:href attribute itself looks like\r\n\r\n![screen shot 2016-01-29 at 3 06 58 pm](https://cloud.githubusercontent.com/assets/3284147/12690702/3e439942-c69a-11e5-8959-e5ec70931cff.jpg)\r\n"}}