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

Ian Hickson ian at hixie.ch
Tue Aug 15 02:58:40 PDT 2006


On Wed, 26 Apr 2006, Hallvord R M Steen wrote:
>
> 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?

The simplest solution seems to be just to use a different name for the 
<object> and the <textarea>. Since the UA will only submit the <object> if 
it supports it, the server can easily tell which one it should use.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list