Re: Hint tidy that br is always empty

* 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