{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Razor/issues/427","labels_url":"https://api.github.com/repos/aspnet/Razor/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Razor/issues/427/comments","events_url":"https://api.github.com/repos/aspnet/Razor/issues/427/events","html_url":"https://github.com/aspnet/Razor/issues/427","id":90211800,"number":427,"title":"Restrict '~' handling to only 'src' and 'href' attributes of HTML elements","user":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-22T21:01:56Z","updated_at":"2015-06-23T08:11:09Z","closed_at":null,"body":"Kind of related to https://github.com/aspnet/Razor/issues/417\r\n\r\nAllegedly Razor will resolve paths of all attributes of all HTML attributes, which means that `~`'s will be stripped out regardless of whether the HTML (or Tag Helper) attribute represents a path or URL.\r\n\r\nWe should consider adding some new TagHelper attribute such as `[UrlProperty]` to indicate that Razor should code-gen path resolution code for the property."},"comment":{"url":"https://api.github.com/repos/aspnet/Razor/issues/comments/114399909","html_url":"https://github.com/aspnet/Razor/issues/427#issuecomment-114399909","issue_url":"https://api.github.com/repos/aspnet/Razor/issues/427","id":114399909,"user":{"login":"grahamehorner","id":3924941,"avatar_url":"https://avatars.githubusercontent.com/u/3924941?v=3","gravatar_id":"","url":"https://api.github.com/users/grahamehorner","html_url":"https://github.com/grahamehorner","followers_url":"https://api.github.com/users/grahamehorner/followers","following_url":"https://api.github.com/users/grahamehorner/following{/other_user}","gists_url":"https://api.github.com/users/grahamehorner/gists{/gist_id}","starred_url":"https://api.github.com/users/grahamehorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahamehorner/subscriptions","organizations_url":"https://api.github.com/users/grahamehorner/orgs","repos_url":"https://api.github.com/users/grahamehorner/repos","events_url":"https://api.github.com/users/grahamehorner/events{/privacy}","received_events_url":"https://api.github.com/users/grahamehorner/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T08:11:09Z","updated_at":"2015-06-23T08:11:09Z","body":"I agree however razor is also striping non-path attributes data-attrib=\"~some~data~\" and this may be by design in razor for paths; but what if a tag requires the ~ and it's not a path. I think TagHelpers shouldn't have razor pre-process the tag attributes other than the know HTML attributes that are path related."}}