[whatwg] [WF2] handling form elements inside rendered OBJECT

Hallvord R M Steen hallvors at gmail.com
Wed Apr 26 05:08:20 PDT 2006


https://bugzilla.mozilla.org/show_bug.cgi?id=286914

Note comment from the XStandard plugin developers about submitting
form elements inside an OBJECT with content shown by plugin or UA.

I have been discussing this with among others Anne van Kesteren, and
I'd like more views on this..

- OBJECT is part of forms since HTML4. That means the plugin or object
content can provide a name/value pair for a form submit. (I don't know
if any implementations of this exist but it is clearly the intent of
the HTML4 spec)

- OBJECT contents are meant to be used instead of the OBJECT if it
can't be rendered, not as well as.

- If you look at the XStandard use case and proposed markup it looks
like a pretty elegant solution to me. XStandard is a rich text editor
creating XHTML output. They want to embed the editor with code
somewhat like the following:

	<object type="application/x-standard" name="document">
		<textarea name="document"></textarea>
	</object>

Naturally, this only works if the UA sends *either* name/value from
OBJECT *or* name/value from TEXTAREA (or the server does some extra
logic to try to distinguish the duplicated successful name/value pairs
and pick the correct one).

Any thoughts?
--
Hallvord R. M. Steen



More information about the whatwg mailing list