[whatwg] Alternate content to OBJECT should not participate in HTTP POST
Vlad Alexander (xhtml.com)
vlad.alexander at xhtml.com
Thu Oct 25 12:57:20 PDT 2007
Request for the HTML 5 forms section:
Alternate content such as form controls should not participate in the HTTP POST if the <object> can be rendered. In this example, if logo.gif can be rendered, then data from <textarea> should not be send to the server:
<object data="logo.gif" type="image/gif" width="180" height="60">
<textarea id="abc" name="abc" rows="5" cols="70">Hello World!</textarea>
Here is a test page for the above example:
This causes problems for plug-ins loaded via the <object> element. In this example, the same "name" is used for both the <object> and <textarea> elements because most CMS expect only one field to be submitted from a control.
<object name="abc" type="application/x-xstandard">
<param name="Value" value="some text" />
<textarea name="abc">more text</textarea>
In the above example, data is sent to the server from both the plug-in (correct) and the alternate content (incorrect).
IE and Opera support this. The HTML 5 spec should formally define this behavior.
More information about the whatwg