Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916074 - app-text/htmltidy-5.8.0-r1: Warning: <ol> attribute "type" not allowed for HTML5
Summary: app-text/htmltidy-5.8.0-r1: Warning: <ol> attribute "type" not allowed for HTML5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrice Clement (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-21 19:33 UTC by Ulrich Müller
Modified: 2023-10-22 11:03 UTC (History)
1 user (show)

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


Attachments
htmltidy-5.8.0-ol-type.patch (htmltidy-5.8.0-ol-type.patch,1.53 KB, patch)
2023-10-21 19:35 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2023-10-21 19:33:34 UTC
tidy outputs spurious warnings for the Devmanual, like this one:
line 128 column 1 - Warning: <ol> attribute "type" not allowed for HTML5

However, the type attribute type is perfectly valid in HTML 5:
https://www.w3.org/TR/2014/NOTE-html5-diff-20141209/#changed-attributes

The problem has been fixed upstream:
https://github.com/htacg/tidy-html5/commit/e411ad0d2582471fe0961900b2789ee8b5b9cc4c
Comment 1 Ulrich Müller gentoo-dev 2023-10-21 19:35:07 UTC
Created attachment 873196 [details, diff]
htmltidy-5.8.0-ol-type.patch

Patch from upstream, which fixes the problem for me.
Comment 2 Larry the Git Cow gentoo-dev 2023-10-22 11:03:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31a4b6c93cc97cc69ee8c73120f09ceb4cebb786

commit 31a4b6c93cc97cc69ee8c73120f09ceb4cebb786
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2023-10-22 10:34:57 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2023-10-22 11:03:35 +0000

    app-text/htmltidy: add upstream fix for <ol> attribute "type" in HTML5
    
    Closes: https://bugs.gentoo.org/916074
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../htmltidy/files/htmltidy-5.8.0-ol_type.patch    | 29 +++++++++
 app-text/htmltidy/htmltidy-5.8.0-r2.ebuild         | 74 ++++++++++++++++++++++
 2 files changed, 103 insertions(+)