checklink: base href not taken into account

Checklink appears not to take a document's base URL into account.  I
just submitted a page to be checked by the online version, say
http://example.com/dir/, and it says that a given link (say "<a
href="foo.html>" in the source) is bad, giving its full location as
http://example.com/dir/foo.html

But the source has
<base href="http://example.com/">
and so the link should (and does) point to http://example.com/foo.html

I looked through the source and I couldn't find an attempt to handle
this, so I guess this is a feature recommendation rather than a
bugfix.  The code has a comment

# base/@href intentionally not checked

though this seems to refer to checking the link in <base> rather than
using base to get the document's base location.

Charles Greathouse
Analyst/Programmer
Case Western Reserve University

Received on Thursday, 15 September 2011 07:20:08 UTC