node-feedparser icon indicating copy to clipboard operation
node-feedparser copied to clipboard

Relative links within HTML not resolved

Open mimecuvalo opened this issue 5 years ago • 0 comments

FeedParser version: 2.2.9 Node version: 11.0.0 Link to feed exhibiting the issue: http://feeds.kottke.org/main

Search for any of the tags within the Kottke feed and you'll see they're all relative. The xml:base is specified on the tag containing it but it's not being applied to the HTML contained within.

I'm migrating my codebase from Python->JS so I'm used to Python's FeedParser handling this. I've hacked around it for now via a regex in my codebase but walking the XML structure/AST (however you're parsing it in your codebase) properly is the better solution :)

mimecuvalo avatar Feb 13 '19 17:02 mimecuvalo