{"action":"closed","issue":{"url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/28","repository_url":"https://api.github.com/repos/zzzprojects/html-agility-pack","labels_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/28/comments","events_url":"https://api.github.com/repos/zzzprojects/html-agility-pack/issues/28/events","html_url":"https://github.com/zzzprojects/html-agility-pack/issues/28","id":239258281,"number":28,"title":"HtmlNode.CreateNode() returns a #text node when its parameter starts with \"\\n\"","user":{"login":"OpportunityLiu","id":13471233,"avatar_url":"https://avatars3.githubusercontent.com/u/13471233?v=3","gravatar_id":"","url":"https://api.github.com/users/OpportunityLiu","html_url":"https://github.com/OpportunityLiu","followers_url":"https://api.github.com/users/OpportunityLiu/followers","following_url":"https://api.github.com/users/OpportunityLiu/following{/other_user}","gists_url":"https://api.github.com/users/OpportunityLiu/gists{/gist_id}","starred_url":"https://api.github.com/users/OpportunityLiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpportunityLiu/subscriptions","organizations_url":"https://api.github.com/users/OpportunityLiu/orgs","repos_url":"https://api.github.com/users/OpportunityLiu/repos","events_url":"https://api.github.com/users/OpportunityLiu/events{/privacy}","received_events_url":"https://api.github.com/users/OpportunityLiu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"JonathanMagnan","id":23240780,"avatar_url":"https://avatars3.githubusercontent.com/u/23240780?v=3","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://avatars3.githubusercontent.com/u/23240780?v=3","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":3,"created_at":"2017-06-28T18:43:37Z","updated_at":"2017-07-08T10:16:22Z","closed_at":"2017-07-08T10:16:22Z","body":"``` c sharp\r\nHtmlNode node = HtmlNode.CreateNode(@\"\r\n<p>text</p>\r\n\");\r\n```\r\nYou'll get `node.OuterHtml == \"\\r\\n\"`.\r\n\r\nI don't think it is the expacted result.\r\n\r\nIn [source](https://github.com/zzzprojects/html-agility-pack/blob/bed94728fdddb6ad265247f7af68e8d6400c4fdd/src/HtmlAgilityPack.Shared/HtmlNode.cs#L572) I found the first element of the document directly returned, maybe we should check it before return.\r\n"}}
{"actor":{"display_login":"OpportunityLiu"}}