{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/2966","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/2966/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/2966/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/2966/events","html_url":"https://github.com/aspnet/Mvc/issues/2966","id":100691824,"number":2966,"title":"Attributes don't work in Tag Helper if newline precedes first attribute","user":{"login":"Daniel15","id":91933,"avatar_url":"https://avatars.githubusercontent.com/u/91933?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T05:14:56Z","updated_at":"2015-08-13T05:14:56Z","closed_at":null,"body":"Tag helper:\r\n```csharp\r\npublic class HelloTagHelper : TagHelper\r\n{\r\n\tpublic string First { get; set; }\r\n\tpublic string Second { get; set; }\r\n\r\n\tpublic override void Process(TagHelperContext context, TagHelperOutput output)\r\n\t{\r\n\t\toutput.TagName = \"span\";\r\n\t\toutput.SelfClosing = false;\r\n\t\toutput.Attributes.Add(\"data-first\", First);\r\n\t\toutput.Attributes.Add(\"data-second\", Second);\r\n\t}\r\n}\r\n```\r\n\r\ncshtml:\r\n```\r\n<hello first=\"1111\" second=\"2222\" />\r\n<hello\r\n\tfirst=\"1111\"\r\n\tsecond=\"2222\"\r\n/>\r\n<hello first=\"1111\"\r\n       second=\"2222\"\r\n/>\r\n```\r\n\r\nResult:\r\n```\r\n<span data-first=\"1111\" data-second=\"2222\"></span>\r\n<span data-first=\"\" data-second=\"\"></span>\r\n<span data-first=\"1111\" data-second=\"2222\"></span>\r\n```\r\n\r\nThe middle `<hello />` tag has a newline before the first attribute, which seems to break it (all attributes come through as empty). The final `<hello />` only has a newline before the second attribute, which seems to work.\r\n\r\nTested on beta 6."}}