Re: HTML 2.0 LAST CALL: <TEXTAREA> content

Joe English (joe@trystero.art.com)
Thu, 15 Jun 95 14:41:05 EDT

Ka-Ping Yee <kryee@calum.csclub.uwaterloo.ca> wrote:

> D> Most of your suggestions are redundant -- they're specified by the
> D> SGML spec and the HTML DTD.
>
> Indeed, but *everything* is already specified in the SGML spec and the
> HTML DTD.

[ Only if you count the whole spec as part of the DTD,
which, technically, it is -- a document type definition
has two parts; the first part defines the syntax and is
written in a formal notation, and the second part defines
the semantics and is usually written in natural language. ]

> The issue of tags within TEXTAREA content also needs to be addressed.
> If i read the DTD correctly, it allows any tag except INPUT, SELECT,
> or TEXTAREA to appear within the content of <TEXTAREA>.

You read it incorrectly:

<!ELEMENT TEXTAREA - - (#PCDATA)* -(INPUT|SELECT|TEXTAREA)>

The content model (#PCDATA)* only allows character data content.
The exclusion exception is just there to disable the +(INPUT|SELECT|TEXTAREA)
*inclusion* exception on the <FORM> element.

Obligatory comment: Inclusion exceptions are evil.

--Joe English

joe@art.com