w3c / link-checker

Check links and anchors in Web pages or full Web sites.
https://validator.w3.org/checklink
121 stars 38 forks source link

Use valid HTML5 #65

Closed Zearin closed 1 year ago

Zearin commented 1 year ago

Although the output and docs were in HTML5, there were a few invalid elements here and there. I replaced these with their closest valid HTML5 equivalent.

CSS was accordingly updated.

Also, the old practice of <a name="…"> was used in a few places. Besides the fact that the name attribute is deprecated (and generates a warning in the HTML validator), it is unnecessary for navigation (as you can just link to any element with an id attribute). I also edited markup in favor of direct id attributes as well.

Zearin commented 1 year ago

Hmm. Looks like the following part of the workflow is the one that failed:

      - name: Install checker dependencies
        working-directory: link-checker
        run: cpanm --installdeps .

I’m pretty sure I didn’t touch anything that would mess with installing Perl dependencies. But I haven’t used cpan in at least 12 years (or more).

@dontcallmedom: Can you re-run this? (Or, can you tell me what I need to do, if I did inadvertently do something to cause the failure?)

dontcallmedom commented 1 year ago

thanks! I'll explore the CPAN dependencies bug separately - you're definitely right this isn't linked to this PR