in reply to Re: RFC: Name and/or API for module ("HTML::RewriteURLs")
in thread RFC: Name and/or API for module ("HTML::RewriteURLs")

My code doesn't handle tags, it blindly handles attributes. But as the <base> tag has the href= attribute, that will be rewritten too. Maybe the more proper approach would be to eliminate the tag but I'll wait for bug reports to come in :)

Replies are listed 'Best First'.
Re^3: RFC: Name and/or API for module ("HTML::RewriteURLs")
by LanX (Saint) on Jul 26, 2015 at 10:56 UTC
    Well. .. If you don't have options to handle base, then better forget my suggestion to call it Rebase.pm ... ;)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

    Updated

    wording

      I've released it as HTML::Rebase without <base href= support. But while thinking about how to also process the tag, I think support for it should be fairly simple. First scan the HTML for the <base> tag. If it is there, use that URL instead of the user-supplied URL to rewrite all links.

      This will likely get into a later version.