aldaris / docbook-linktester

Tests external links and olinks in DocBook documentation for validity
3 stars 1 forks source link

Also check fragments #18

Open markcraig opened 8 years ago

markcraig commented 8 years ago

Many links from one documentation set to another can break not because the document is wrong, but because the fragment is wrong.

The following example returns a 200, even though the anchor missing-fragment does not exist:

<link xlink:href="https://forgerock.org/openam/doc/bootstrap/admin-guide/index.html#missing-fragment" />

It would be nice if docbook-linktester could retrieve the HTML and check that the fragment is actually present.

Not sure how much this would slow down link checking, however.

aldaris commented 8 years ago

Not sure how this would work with single page JS web apps where the fragment has no relation to the actual HTML elements (links to Knowledge Base for example).

markcraig commented 8 years ago

Hmm, yes. It would probably only work for static HTML.