W3C home > Mailing lists > Public > www-html@w3.org > August 2000

Re: error in xhtml 1.0 strict DTD?

From: Jan Roland Eriksson <jrexon@newsguy.com>
Date: Thu, 10 Aug 2000 17:49:08 +0200
To: "Dave Mertens" <dmertens@ism.nl>
Cc: <www-html@w3.org>
Message-ID: <hmj5pss4ukp90675jbnkemnjaehu13da6f@4ax.com>
On Thu, 10 Aug 2000 06:55:29 -0400 (EDT), "Dave Mertens"
<dmertens@ism.nl> wrote:

>I have possibly found an error in the strict xhtml 1.0 DTD.

>Buttons in forms can be set in 2 ways:
><input type="submit" name="action" value="send" />
><button type="submit" name="action" value="send" />

>Both give the same result. There i conclude that the input-types are only
>there for compibilty, so that part is transitional and not strict.
>If i'm wrong what's the differents between the two tags?

I'm may be missing some part of your real question here, but there is a
difference between the two elements for sure.

From the dtd...

<!ELEMENT input EMPTY>     <!-- form control -->
<!ELEMENT button %button.content;>  <!-- push button -->

See that 'EMPTY' versus 'button.content' ?

<button type="submit" name="action" value="send">some content for a

...would be a way to use the 'button' element but that would be invalid
for 'input'

The description of the two elements can be read in the HTML4.01 rec.

Jan Roland Eriksson <jrexon@newsguy.com>
Received on Thursday, 10 August 2000 11:48:22 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:54 UTC