{"action":"created","issue":{"url":"https://api.github.com/repos/danmactough/node-feedparser/issues/146","labels_url":"https://api.github.com/repos/danmactough/node-feedparser/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/danmactough/node-feedparser/issues/146/comments","events_url":"https://api.github.com/repos/danmactough/node-feedparser/issues/146/events","html_url":"https://github.com/danmactough/node-feedparser/pull/146","id":87380511,"number":146,"title":"Prefer atom link elements with type=text/html","user":{"login":"andris9","id":132242,"avatar_url":"https://avatars.githubusercontent.com/u/132242?v=3","gravatar_id":"","url":"https://api.github.com/users/andris9","html_url":"https://github.com/andris9","followers_url":"https://api.github.com/users/andris9/followers","following_url":"https://api.github.com/users/andris9/following{/other_user}","gists_url":"https://api.github.com/users/andris9/gists{/gist_id}","starred_url":"https://api.github.com/users/andris9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andris9/subscriptions","organizations_url":"https://api.github.com/users/andris9/orgs","repos_url":"https://api.github.com/users/andris9/repos","events_url":"https://api.github.com/users/andris9/events{/privacy}","received_events_url":"https://api.github.com/users/andris9/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-11T15:15:09Z","updated_at":"2015-06-12T04:06:09Z","closed_at":"2015-06-12T04:05:55Z","pull_request":{"url":"https://api.github.com/repos/danmactough/node-feedparser/pulls/146","html_url":"https://github.com/danmactough/node-feedparser/pull/146","diff_url":"https://github.com/danmactough/node-feedparser/pull/146.diff","patch_url":"https://github.com/danmactough/node-feedparser/pull/146.patch"},"body":"This is related to #144 and #145. The current behavior accepts link elements with invalid type, for example if the feed includes the following items, then rel=self is used even though its type is *application/atom+xml*\r\n\r\n```\r\n<link rel='self' type='application/atom+xml' href='feed-item-url'/>\r\n<link rel='alternate' type='text/html' href='blog-post-url'/>\r\n```\r\n\r\nThis PR changes the behavior to prefer elements with type=text/html"},"comment":{"url":"https://api.github.com/repos/danmactough/node-feedparser/issues/comments/111348266","html_url":"https://github.com/danmactough/node-feedparser/pull/146#issuecomment-111348266","issue_url":"https://api.github.com/repos/danmactough/node-feedparser/issues/146","id":111348266,"user":{"login":"danmactough","id":357481,"avatar_url":"https://avatars.githubusercontent.com/u/357481?v=3","gravatar_id":"","url":"https://api.github.com/users/danmactough","html_url":"https://github.com/danmactough","followers_url":"https://api.github.com/users/danmactough/followers","following_url":"https://api.github.com/users/danmactough/following{/other_user}","gists_url":"https://api.github.com/users/danmactough/gists{/gist_id}","starred_url":"https://api.github.com/users/danmactough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmactough/subscriptions","organizations_url":"https://api.github.com/users/danmactough/orgs","repos_url":"https://api.github.com/users/danmactough/repos","events_url":"https://api.github.com/users/danmactough/events{/privacy}","received_events_url":"https://api.github.com/users/danmactough/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T04:06:09Z","updated_at":"2015-06-12T04:06:09Z","body":"Nice. Thanks, @andris9 "}}