W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2004

Re: Hint tidy that br is always empty

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 17 Nov 2004 13:49:41 +0100
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: html-tidy@w3.org
Message-ID: <419c4896.7175468@smtp.bjoern.hoehrmann.de>

* Markus Bertheau wrote:
>I'm using tidy to auto-correct (incorrect) XHTML text. The text is only
>a part of the whole XHTML document, so there's no <html>, no <body> and
>so on. Therefore I'm using the input-xml option. Now tidy corrects

You should not use input-xml for HTML/XHTML documents.

>2. Because <br> is an empty element in HTML its contents is not rendered
>by the browser. How can I teach tidy that when it sees <br> to just make
>that <br/>? How can I teach it XHTML semantics (while still allowing
>arbitrary valid tags)?

That's not currently possible, you need to declare the new elements.
Received on Wednesday, 17 November 2004 12:45:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:55 UTC