We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Based on the spec, atom:link elements with a rel attribute of alternate or a missing rel attribute should be considered as links.
atom:link
rel
alternate
Currently, line 54 in atom.go correctly sets the link for the latter case, but not the former.
atom.go
if link.Rel == "" { next.Link = link.Href }
should probably be
if link.Rel == "alternate" || link.Rel == "" { next.Link = link.Href }
This small change fixes a few feeds that were parsing incorrectly for me.
The text was updated successfully, but these errors were encountered:
d18e725
Thanks for the bug report and the fix.
Sorry, something went wrong.
No branches or pull requests
Based on the spec,
atom:link
elements with arel
attribute ofalternate
or a missingrel
attribute should be considered as links.Currently, line 54 in
atom.go
correctly sets the link for the latter case, but not the former.should probably be
This small change fixes a few feeds that were parsing incorrectly for me.
The text was updated successfully, but these errors were encountered: