"Chris Hill" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Thu, 1 Mar 2001 19:40:59 -0800, "Garth Wallace"
> <[EMAIL PROTECTED]> wrote:
>
> >"Erik Arvidsson" <[EMAIL PROTECTED]> wrote in message
> >97ma90$[EMAIL PROTECTED]">news:97ma90$[EMAIL PROTECTED]...
> >> Maybe I'm missing something but the following should create an object
with
> >> the type text/html that is editable and the value of the object should
be
> >> passed along in a form submission.
> >>
> >> <form action="">
> >> <object name="htmlData" type="text/html" style="width: 100px; height:
> >100px;
> >> border: 1px solid red;"></object>
> >> <button onclick="this.form.submit()">Submit</button>
> >> </form>
> >
> >Actually, no, it shouldn't. In fact, it shouldn't do
> >much of anything...an OBJECT needs a CLASSID
> >(for Java) or DATA (for just about anything else)
> >attribute in order to display anything inside.
>
> But that's just because of the current mozilla implementation, right?
> There is nothing in the HTML specfication that forbids this useful
> functionality is there?  In the spec there is mention of object
> controls being used to submit data.  Would it work even if the object
> was initialized via CLASSID or DATA?

No to all three. An OBJECT with type text/html is essentially
the same as an IFRAME...it just displays an HTML document.
What the spec means by submitting data through an OBJECT
is that, if the OBJECT refers to a plugin or applet that can do
so, the OBJECT's output is sent as part of the form data. As
far as I can tell, the HTML 4.1 specification gives no information
on how to specify that an OBJECT be used as a form control.



Reply via email to