← Back to team overview

desktop-packages team mailing list archive

[Bug 589574] Re: libtidy creates invalid tags

 

This bug is fixed in tidy-html5 v5.0.0, as noted here

https://github.com/htacg/tidy-html5/issues/256

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to tidy in Ubuntu.
https://bugs.launchpad.net/bugs/589574

Title:
  libtidy creates invalid tags

Status in tidy package in Ubuntu:
  New

Bug description:
  Binary package hint: tidy

  The following HTML causes libtidy to produce invalid tags:

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  <html><body>
  <p><b><i><a href="A"> <big>B</i></b>C</a></p>
  </body></html>

  The result of running this through the tidy command line is:
  $ tidy -w0 t.html

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
  <html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
  <meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" />
  <title></title>
  </head>
  <body>
  <p><b><i><a href="A"><big>B</big><�>��>C</�>��></a></i></b></p>
  </body>
  </html>

  The invalid tags change on each run, looking like use after free kind
  of problem.

  This is running on Ubuntu 10.04 LTS, updated recently. 
  Linux 2.6.32-22-generic #35-Ubuntu SMP Tue Jun 1 14:18:25 UTC 2010 x86_64 GNU/Linux
  /etc/tidy.conf only contains comments.
  there are no other tidy configuration files

  Using LD_PRELOAD I tested the libtidy from earlier distributions;
  only the version from libtidy-0.99-0_20051018-1_amd64.deb does not show this effect.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tidy/+bug/589574/+subscriptions