Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 817347

Summary: app-text/htmltidy-5.8.0-r1 spurious warning for same-document references
Product: Gentoo Linux Reporter: Ulrich Müller <ulm>
Component: Current packagesAssignee: Marek Szuba <marecki>
Status: CONFIRMED ---    
Severity: normal CC: marecki
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/htacg/tidy-html5/issues/1003
Whiteboard:
Package list:
Runtime testing required: ---

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! ;)