Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 817347 - app-text/htmltidy-5.8.0-r1 spurious warning for same-document references
Summary: app-text/htmltidy-5.8.0-r1 spurious warning for same-document references
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrice Clement
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2021-10-10 10:13 UTC by Ulrich Müller
Modified: 2022-07-29 09:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2021-10-10 10:13:29 UTC
Seen with the top-level file of the devmanual:

$ tidy -q --drop-empty-elements no index.html >/dev/null
line 74 column 38 - Warning: <a> attribute "href" lacks value

The line in question is:

<h1 class="first-header">Master Index<a class="permalink" href=""><span class="fa fa-link"></span></a>
</h1>


However, an empty href attribute is perfectly valid. RFC 3986 <https://www.rfc-editor.org/rfc/rfc3986.html#section-4.4> says:

"The most frequent examples of same-document references are relative references that are empty or include only the number sign ("#") separator followed by a fragment identifier."
Comment 1 Patrice Clement gentoo-dev 2021-10-10 12:42:40 UTC
Hey Ulrich! Thanks for the bug report. Did you talk to upstream about this weird warning? It looks like a bug with tidy. You will most likely have better luck with the upstream authors than us! ;)