Re: [Zope3-dev] zope.app.form generates invalid HTML

2007-02-23 Thread Andreas Reuleaux
Try #form\.title i.e. you have to escape the dot otherwise FF thinks it's for an element with class title <... id="form" class="title" ...> at least that works for me in a very simple example: hallo #x\.y { ... } just my 2 cents -Andreas On Fri, Feb 23, 2007 at 02:13:23AM

Re: [Zope3-dev] zope.app.form generates invalid HTML

2007-02-23 Thread Martin Aspeli
Tres Seaver wrote: > >> I'm pretty sure you're not allowed dots in ids of HTML elements. > > The attached HTML and XHTML pages both pass the W3C validator (one HTMl > 4.01 strict, the other XHTML 1.0 strict). Both use dotted IDs for form > elements. Neither renders "properly" in Firefox 1.5

[Zope3-dev] zope.app.form generates invalid HTML

2007-02-22 Thread Martin Aspeli
Hi guys, I'm pretty sure you're not allowed dots in ids of HTML elements. At least not when they are prefixed by 'form'. A zope.schema.TextLine in a formlib form, for example, generates HTML like this: In particular, we want to style the fields to look a bit more like Plone, and we have