Hi Patrick,
Interesting... I think you found a bug in Firefox. The IE approach seems to be
correct. Content inside the <object> tag is an alternative to the <object> tag,
not an addition to it. Using your example, in IE, the following construct will
submit "abc" to the server:
<object name="abc" ...>
<textarea name="def"></textarea>
</object>
In FF 1.5, both "abc" and "def" will be submitted to the server.
In an ideal scenario, you would want to have this construct:
<object name="abc" ...>
<textarea name="abc"></textarea>
</object>
Patrick, this bug should be reported to Mozilla. If you are going to report it,
can you please CC me on it in Bugzilla.
Regards,
-Vlad
http://xstandard.com
-------- Original Message --------
From: Patrick Lauke
Date: 9/20/2005 11:37 AM
> Possibly a bizarre question, but: currently working on integrating
> XStandard http://xstandard.com in a form, but trying to make it behave
> more reasonably when the plugin is not installed and when javascript is
> off.
> What I discovered is a fundamental difference between IE and Firefox
> (not
> tested other browsers at this stage). Assuming we have the simplified
> code
>
> <object>
> <textarea></textarea>
> <object>
>
> If the plugin is not available, the textarea is used. Fine, no worries
> there. However, when the plugin IS available, IE seems to completely
> expunge the textarea from the DOM, while Firefox seems to remove it from
> the visual display, but still lets you manipulate it via javascript.
> (some may have gathered already, I was hoping to stuff the value of the
> plugin into the existing textarea's value property)
>
> A possibly academic question: which approach is right? Should the
> browser
> not make the fallback elements inside the object available?
>
> I'm coding around the issue, but I'd be curious what people think...
>
> __________________________________________________________
> Patrick H. Lauke
> Webmaster / University of Salford
> http://www.salford.ac.uk
> __________________________________________________________
> Web Standards Project (WaSP) Accessibility Task Force
> http://webstandards.org/
> __________________________________________________________
> ******************************************************
> The discussion list for http://webstandardsgroup.org/
>
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> ******************************************************
>
>
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************