Package: tidy Version: 20091223cvs-1 Severity: normal Tidy transforms some valid XHTML file into an invalid one. For instance, the source has:
<ul class="ul"><li class="li"></li></ul> which is valid. Tidy removes the empty li, but not the ul (this doesn't happen if one removes the class attribute), so that one gets: <ul class="ul"></ul> which is invalid (there must be at least one li). A testcase is attached. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-1-amd64 (SMP w/8 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tidy depends on: ii libc6 2.13-4 Embedded GNU C Library: Shared lib ii libtidy-0.99-0 20091223cvs-1 HTML syntax checker and reformatte tidy recommends no packages. Versions of packages tidy suggests: ii tidy-doc 20091223cvs-1 HTML syntax checker and reformatte -- no debconf informationTitle: Test of tidy on an empty list
Debian's Tidy 20091223cvs-1 transforms this valid XHTML file into an invalid one: it removes the empty li but keeps the ul element due to its class attribute!