Your message dated Sun, 27 Apr 2025 12:42:01 +0200
with message-id <10e96b3a-43e9-41d2-85e1-669a8c787...@sury.org>
and subject line Closing old tidy-html5 bugs
has caused the Debian Bug report #607066,
regarding tidy should not generate entity references (except standard XML ones) 
for XHTML
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
607066: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607066
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: tidy
Version: 20091223cvs-1
Severity: minor

For XHTML output, it is an error to generate entity references (except
the standard XML ones) as they are not guaranteed to work. Indeed
http://www.w3.org/TR/html5/the-xhtml-syntax.html#writing-xhtml-documents
says:

  Note: According to the XML specification, XML processors are not
  guaranteed to process the external DTD subset referenced in the
  DOCTYPE. This means, for example, that using entity references for
  characters in XHTML documents is unsafe if they are defined in an
  external file (except for &lt;, &gt;, &amp;, &quot; and &apos;).

Numeric character references should be generated instead, i.e. when
XHTML output is generated, numeric-entities should be ignored (or at
least, it should default to "yes").

An example of the problem:

  echo "&#xe9;" | tidy -asxhtml

outputs:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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>
&eacute;
</body>
</html>

Note: web browsers should have no problems with entity references,
but remember that one of the purposes of XHTML (over HTML) is to
manipulate the files with XML tools.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-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.11.2-7      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 information



--- End Message ---
--- Begin Message ---
Version: 2:5.8.0-1

I am closing all the bugs that had been filled before 5.8.0 upstream version
that are **upstream** issues.

If the bug that you've reported can still be found in 5.8.0, please retest this,
make sure that the upstream bugs are actually filled upstream and reopen
the bug in Debian BTS and correctly set the "forwarded" attribute on the
issue.

Ondrej
--
Ondřej Surý (He/Him)
ond...@sury.org

--- End Message ---

Reply via email to