Re: [Zope3-dev] Re: [Checkins] SVN: Zope3/trunk/src/zope/app/form/browser/itemswidgets.py The label for the list items widgets could not point to the field, because
Tres Seaver wrote: I'm pretty sure that at least some flavors of IE were fussy about 'id' attributes which were not valid according the HTML DTD's; I therefore quit giving form fields an 'id' attribute long ago, just because I couldn't keep it straight. Then you can't have a label for that field that refers to it via id. Sometimes you just can't win. -- Benji York Senior Software Engineer Zope Corporation ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Re: [Checkins] SVN: Zope3/trunk/src/zope/app/form/browser/itemswidgets.py The label for the list items widgets could not point to the field, because
On Apr 5, 2006, at 4:14 PM, Kamal Gill wrote: Hmm, I'm inclined to doubt whether IE expects the id and name attributes to be identical. Distinct values for id and name shouldn't be a problem, afaik Wait, someone used "shouldn't be a problem" in reference to IE? :-) As Benji said, this isn't idle: we've encountered some pain that makes me bring this up. A quick Google search didn't come up with any confirmation, though, so, without further backup, I'm happy to let this lie. Gary ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Re: [Checkins] SVN: Zope3/trunk/src/zope/app/form/browser/itemswidgets.py The label for the list items widgets could not point to the field, because
Hmm, I'm inclined to doubt whether IE expects the id and name attributes to be identical. Distinct values for id and name shouldn't be a problem, afaik. See http://msdn.microsoft.com/workshop/author/forms/formsoverview.asp - Kamal -- Kamal Gill - [EMAIL PROTECTED] http://www.adaptivewave.com Content Management Made Simple On Apr 5, 2006, at 1:03 PM, Gary Poster wrote: On Apr 5, 2006, at 3:42 PM, Stephan Richter wrote: Modified: Zope3/trunk/src/zope/app/form/browser/itemswidgets.py === --- Zope3/trunk/src/zope/app/form/browser/itemswidgets.py 2006-04-05 19:34:34 UTC (rev 66578) +++ Zope3/trunk/src/zope/app/form/browser/itemswidgets.py 2006-04-05 19:42:44 UTC (rev 66579) @@ -518,6 +518,7 @@ rendered_items = self.renderItems(value) return renderElement(self.tag, name=self.name + ':list', + id=self.name, multiple='multiple', size=self.size, contents="\n".join(rendered_items), FWIW, I seem to recall that IE doesn't handle form fields whose `id` and `name` are different very well. Can anyone verify, from memory or otherwise? Gary ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/kamal.gill% 40adaptivewave.com ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Re: [Checkins] SVN: Zope3/trunk/src/zope/app/form/browser/itemswidgets.py The label for the list items widgets could not point to the field, because
Gary Poster wrote: FWIW, I seem to recall that IE doesn't handle form fields whose `id` and `name` are different very well. Can anyone verify, from memory or otherwise? I can verify that it (at least) once had that problem. I've been bitten by it within the last two years. I don't know about the current status, so voodoo coding reigns. :) -- Benji York Senior Software Engineer Zope Corporation ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com