{"action":"created","issue":{"url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/237","repository_url":"https://api.github.com/repos/zzzprojects/html-agility-pack","labels_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/237/comments","events_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/237/events","html_url":"https://github.com/zzzprojects/html-agility-pack/issues/237","id":353351196,"node_id":"MDU6SXNzdWUzNTMzNTExOTY=","number":237,"title":"Issue with keeping OriginalCase","user":{"login":"chrisjust","id":8681409,"node_id":"MDQ6VXNlcjg2ODE0MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/8681409?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisjust","html_url":"https://github.com/chrisjust","followers_url":"https://api.github.com/users/chrisjust/followers","following_url":"https://api.github.com/users/chrisjust/following{/other_user}","gists_url":"https://api.github.com/users/chrisjust/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjust/subscriptions","organizations_url":"https://api.github.com/users/chrisjust/orgs","repos_url":"https://api.github.com/users/chrisjust/repos","events_url":"https://api.github.com/users/chrisjust/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjust/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"JonathanMagnan","id":23240780,"node_id":"MDQ6VXNlcjIzMjQwNzgw","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,"node_id":"MDQ6VXNlcjIzMjQwNzgw","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":"2018-08-23T12:06:48Z","updated_at":"2018-09-09T21:59:18Z","closed_at":"2018-09-09T21:59:18Z","author_association":"NONE","body":"Creating a HtmlNode\r\nChanging the innerHtml on said node creates a childNode \r\nThis childNode doesn't inherit from OwnerDocument's settings\r\n#### To recreate: \r\n```csharp\r\nvar html = HtmlNode.CreateNode(\"<div class=\\\"table-responsive\\\"></div>\");\r\n// setting OwnerDocument's case\r\nhtml.OwnerDocument.OptionOutputOriginalCase = true;\r\nhtml.InnerHtml = \"<SomeHtmlComponent></SomeHtmlComponent>\";\r\nConsole.WriteLine(html.InnerHtml); \r\n// <somehtmlcomponent></somehtmlcomponent>\r\n```\r\n\r\n#### A workaround I've made is to set the setting on the ChildNode\r\nFor simplicity: \r\n```csharp\r\nvar html = HtmlNode.CreateNode(\"<div class=\\\"table-responsive\\\"></div>\");\r\nhtml.InnerHtml = \"<SomeHtmlComponent></SomeHtmlComponent>\";\r\nhtml.ChildNodes[0].OwnerDocument.OptionOutputOriginalCase = true;\r\nConsole.WriteLine(html.InnerHtml);\r\n//<SomeHtmlComponent></SomeHtmlComponent>\r\n```\r\n\r\nI haven't found anything in your documentation but it could be me doing something wrong of course :-) "},"comment":{"url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/comments/419748071","html_url":"https://github.com/zzzprojects/html-agility-pack/issues/237#issuecomment-419748071","issue_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/237","id":419748071,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTc0ODA3MQ==","user":{"login":"JonathanMagnan","id":23240780,"node_id":"MDQ6VXNlcjIzMjQwNzgw","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},"created_at":"2018-09-09T21:59:18Z","updated_at":"2018-09-09T21:59:18Z","author_association":"MEMBER","body":"Hello @chrisjust ,\r\n\r\nThis issue will be closed since it has been answered.\r\n\r\nFeel free to reopen it if you feel otherwise.\r\n\r\nBest Regards,\r\n\r\nJonathan"}}
{"actor":{"display_login":"JonathanMagnan"}}