Form Element Content in ISO/IEC 15445:2000(ISO-HTML)

Hello, Everyone.

I am Japanese inexperienced HTML author.
Please forgive that I am not good at English and DTD.

But I think DTD of ISO/IEC 15445:2000(ISO-HTML)
ftp://ftp.cs.tcd.ie/isohtml/15445.dtd
says that the content of the form element
must be the "block-level" element, like p element.
And it seems that the input element is the "inline" element
to be the content of "block level" element.

66th-67th line of DTD:

<!ENTITY % block "BLOCKQUOTE | DIV | DL | FIELDSET | FORM |
                  HR | OL | P | PRE | TABLE | UL" >


70th line:

<!ENTITY % form.fields "BUTTON | INPUT | LABEL | SELECT | TEXTAREA" >

73rd-74th:

<!ENTITY % text "#PCDATA | %physical.styles; | %logical.styles; | %special;
                         | %form.fields;" >

162nd:

<!ELEMENT P           - O  (%text;)+ >

171st:

<!ELEMENT FORM        - -  (%block;)+ -(FORM) >

However, The W3C MarkUp Validation Service
http://validator.w3.org/
regards the HTML document which contain following markup as
'Valid ISO/IEC 15445:2000 (ISO-HTML)'.

<form action="mailto:www-validator-css@w3.org" enctype="text/plain">
<input type="submit" value="Submit"><input type="reset" value="Reset">
</form>

And after I add <p> and </p> on this markup and make it following,
the Validation Service regards it as not 'Valid ISO/IEC 15445:2000 (ISO-HTML)'.

<form action="mailto:www-validator-css@w3.org" enctype="text/plain">
<p><input type="submit" value="Submit"><input type="reset" value="Reset"></p>
</form>

I think second markup is better, it is complying with DTD.
But the Validator said that first one is good, second one is wrong.

Error Message: "end tag for element "P" which is not open"

It seems as if the Validator regards "form.fields" like the input element
as block-level element.

I wonder why? Please tell me truth.

If it is caused by the bug of the Validator,
please fix it as soon as possible.

Thank you.

Received on Friday, 21 March 2003 08:58:18 UTC