New issue
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
[ENH] make parsing more tolerant by allowing to specify https:// namespaces #746
Comments
It's just a namespace, and the The official namespace for the Atom spec is Does that make sense? I haven't worked on this project in over 12 years (other than helping answer questions), so the current maintainer will need to weigh-in on whether or not to make this change. My personal opinion is that this is a mistake that will inevitably continue to occur as HTTPS has become the default over the last 10 years. SimplePie has always been about parsing the feed and implementing the spec, without being a stickler for the spec. And in cases where we can't programmatically know what to do, we allow users to call In terms of implementation of a patch: SimplePie handles multiple namespaces, each for a different spec. IIRC, SimplePie's namespace parsing treats each unique URL as a set of tags that it understands — however, RSS and Atom are core specs and are managed differently. Right now, I think all of that code is in For other namespaces, the
Depending on how up-to/out-of date my knowledge is of the current state of the source code, I think that creating a patch to put a bandaid on this one single issue is probably very small. But I think that supporting |
Hello,
I bumped into the feed of a Jekyll-generated website that uses this namespace:
https://www.w3.org/2005/Atom
Using
https://
instead ofhttp://
breaks SimplePie's parser, with the feed not recognized as being an Atom feed.While
https://
may be incorrect, it would be great if it worked, as that's the direction that the web is taking. That namespace also has an associated web page, and my browser automatically redirects thehttp:
link to https://www.w3.org/2005/Atom, which still works. And as a rookie in website generation, I could easily make the mistake to copy/paste the browser's location bar.Cheers,
The text was updated successfully, but these errors were encountered: