ul is not allowed within a p tag, not even in HTML 4.01 Transitional Try e. g. to check your html with validator.w3.org, you won't have a chance.
You can also try to adjust your page with different doctype settings for xhtml1.0 etc., see e. g. http://www.webstandards.org/learn/templates/ - no chance either. This is just my advice by looking at this problem from an html perspective - there still might be a problems with the zope page template code. -Andreas On Sat, Jul 23, 2005 at 12:02:19AM -0400, Stephan Richter wrote: > Hi all, > > I was just coding some ZPTs and noticed that the following code causes a page > template parsing error: > > <div> > <p> > Items: > <ul> > <li>One</li> > </ul> > </p> > </div> > > Error: > 2005-07-22 23:27:33,460 PageTemplateFile: Error in template: Compilation > failed > zope.tal.htmltalparser.NestingError: Open tag <div> does not match close tag > </p>, at line 13, column 3 > > Now this does not make sense at all. Also, the problem exists only for the > "p" > tag. Can someone verify this problem? > > The last person that played with the PT code was Dimitry in revision 37358, > 37345 and 37346. > > Dimitry, could you look into this, if confirmed? > > Regards, > Stephan > -- > Stephan Richter > CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) > Web2k - Web Software Design, Development and Training > _______________________________________________ > Zope3-dev mailing list > Zope3-dev@zope.org > Unsub: http://mail.zope.org/mailman/options/zope3-dev/reuleaux%40web.de > > > > !DSPAM:42e1d3cd33192023420992! _______________________________________________ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com