W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2004

Re: Quick question on divs in xhtml

From: Rijk van Geijtenbeek <rijk@opera.com>
Date: Tue, 07 Sep 2004 16:10:23 +0200
To: "HTML-tidy list" <html-tidy@w3.org>
Message-ID: <opsdymzlr2icz8n2@rijk-01.lan>

On Tue, 7 Sep 2004 13:52:54 +0100, Jim Higson <jh@333.org> wrote:

>
> When I use -asxhtml, tidy changes this:
>
> <div class="foo" />
>
> into this:
>
> <div class="foo"></div>
>
> this seems odd to me. Is it a bug or a feature?

DIV is not an empty element in XHTML, so it is a feature.


-- 
The Web is a procrastination apparatus:    |  Rijk van Geijtenbeek
It can absorb as much time as              |   Documentation & QA
is required to ensure that you             |   Opera Software ASA
won't get any real work done.  - J.Nielsen |  mailto:rijk@opera.com M
Received on Tuesday, 7 September 2004 14:12:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:54 UTC