{"action":"created","issue":{"url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/95","repository_url":"https://api.github.com/repos/zzzprojects/html-agility-pack","labels_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/95/comments","events_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/95/events","html_url":"https://github.com/zzzprojects/html-agility-pack/issues/95","id":269733951,"number":95,"title":"Colons In Attribute Names Mangled With OptionOutputAsXml and LoadHtml","user":{"login":"mbrierst","id":25492055,"avatar_url":"https://avatars2.githubusercontent.com/u/25492055?v=4","gravatar_id":"","url":"https://api.github.com/users/mbrierst","html_url":"https://github.com/mbrierst","followers_url":"https://api.github.com/users/mbrierst/followers","following_url":"https://api.github.com/users/mbrierst/following{/other_user}","gists_url":"https://api.github.com/users/mbrierst/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrierst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrierst/subscriptions","organizations_url":"https://api.github.com/users/mbrierst/orgs","repos_url":"https://api.github.com/users/mbrierst/repos","events_url":"https://api.github.com/users/mbrierst/events{/privacy}","received_events_url":"https://api.github.com/users/mbrierst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"JonathanMagnan","id":23240780,"avatar_url":"https://avatars0.githubusercontent.com/u/23240780?v=4","gravatar_id":"","url":"https://api.github.com/users/JonathanMagnan","html_url":"https://github.com/JonathanMagnan","followers_url":"https://api.github.com/users/JonathanMagnan/followers","following_url":"https://api.github.com/users/JonathanMagnan/following{/other_user}","gists_url":"https://api.github.com/users/JonathanMagnan/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanMagnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanMagnan/subscriptions","organizations_url":"https://api.github.com/users/JonathanMagnan/orgs","repos_url":"https://api.github.com/users/JonathanMagnan/repos","events_url":"https://api.github.com/users/JonathanMagnan/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanMagnan/received_events","type":"User","site_admin":false},"assignees":[{"login":"JonathanMagnan","id":23240780,"avatar_url":"https://avatars0.githubusercontent.com/u/23240780?v=4","gravatar_id":"","url":"https://api.github.com/users/JonathanMagnan","html_url":"https://github.com/JonathanMagnan","followers_url":"https://api.github.com/users/JonathanMagnan/followers","following_url":"https://api.github.com/users/JonathanMagnan/following{/other_user}","gists_url":"https://api.github.com/users/JonathanMagnan/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanMagnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanMagnan/subscriptions","organizations_url":"https://api.github.com/users/JonathanMagnan/orgs","repos_url":"https://api.github.com/users/JonathanMagnan/repos","events_url":"https://api.github.com/users/JonathanMagnan/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanMagnan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-10-30T19:59:03Z","updated_at":"2017-11-01T14:02:01Z","closed_at":null,"author_association":"NONE","body":"When using LoadHtml to import html containing attribute names containing colons (for example when using namespaces) and using `OptionOutputAsXml = true`, the attribute names become horribly mangled.  See this example which works fine:\r\n```C#\r\nvar d = new HtmlDocument { OptionOutputAsXml = false };\r\nd.LoadHtml(\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\"><script xlink:href=\\\"cool-script.js\\\" type=\\\"text/ecmascript\\\"/></svg>\");\r\nMessageBox.Show(d.DocumentNode.InnerHtml);\r\n```\r\nAnd this example where the attribute names are badly mangled:\r\n```C#\r\nvar d = new HtmlDocument { OptionOutputAsXml = true };\r\nd.LoadHtml(\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\"><script xlink:href=\\\"cool-script.js\\\" type=\\\"text/ecmascript\\\"/></svg>\");\r\nMessageBox.Show(d.DocumentNode.InnerHtml);\r\n```"},"comment":{"url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/comments/341114478","html_url":"https://github.com/zzzprojects/html-agility-pack/issues/95#issuecomment-341114478","issue_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/95","id":341114478,"user":{"login":"mbrierst","id":25492055,"avatar_url":"https://avatars2.githubusercontent.com/u/25492055?v=4","gravatar_id":"","url":"https://api.github.com/users/mbrierst","html_url":"https://github.com/mbrierst","followers_url":"https://api.github.com/users/mbrierst/followers","following_url":"https://api.github.com/users/mbrierst/following{/other_user}","gists_url":"https://api.github.com/users/mbrierst/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrierst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrierst/subscriptions","organizations_url":"https://api.github.com/users/mbrierst/orgs","repos_url":"https://api.github.com/users/mbrierst/repos","events_url":"https://api.github.com/users/mbrierst/events{/privacy}","received_events_url":"https://api.github.com/users/mbrierst/received_events","type":"User","site_admin":false},"created_at":"2017-11-01T14:02:01Z","updated_at":"2017-11-01T14:02:01Z","author_association":"NONE","body":"Looks like this fixed it for me.  Thanks!"}}
{"actor":{"display_login":"mbrierst"}}