Skip to content

tidy-html5 inserts duplicate meta name generator #353

@ncouture

Description

@ncouture

When parsing files who were previously parsed by tidy-html5 with the tidy-mark option enabled (which is the default), the tags inserted by tidy-html5 are inserted again, resulting in duplicate meta name generator tags.

reproduction

file="eggs.html"
while [[ $(tidy -m "$file" 2> /dev/null) != 0 ]]; do
    grep 'meta name="generator' "$file" | wc -l
done

output:

1
2
3
4
5
6
7
8
9
10
11
12
[ ... ]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions