Re: Input areas in <select> & <option>

Daniel W. Connolly (connolly@hal.com)
Fri, 9 Dec 94 14:59:58 EST

In message <199412091916.TAA10842@curia.ucc.ie>, Peter Flynn writes:
>I haven't quite got the hang of it, but there's the result of
>displaying the current HTML 2.0 DTD with the FORMS element expanded in
>
> ftp://www.ucc.ie/pub/html/htmlform.eps
>
>and it indeed shows OPTION and TEXTAREA as being #PCDATA, which
>implies they can themselves include another FORM.

But the FORM element declaration has a -(FORM) exclusion to prevent this.

>I think the fix is:
>
><!ELEMENT Option - o (#PCDATA) -(FORM|INPUT|TEXTAREA|SELECT)>
><!ELEMENT TextArea - - (#PCDATA) -(FORM|INPUT|TEXTAREA|SELECT)>

So I suggest:
<!ELEMENT Option - o (#PCDATA) -(INPUT|TEXTAREA|SELECT)>
<!ELEMENT TextArea - - (#PCDATA) -(INPUT|TEXTAREA|SELECT)>

>but a quick test in psgml shows that to disallow _all_ elements inside
>an OPTION, which can't be right (should allow %flow; minus #pcdata,
>right?).

>From what I know, OPTION is only supposed to contain #PCDATA. So that
is right.

Dan