Re: [Zope3-dev] Page Template oddity
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 liOne/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
Re: [Zope3-dev] Page Template oddity
On 7/23/05, Andreas Reuleaux [EMAIL PROTECTED] wrote: ul is not allowed within a p tag, not even in HTML 4.01 Transitional Bingo! 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. The HTML parser will indeed scream for the reason you give; the markup as shown is insane. Interpreting the ul as content of the p doesn't make sense given the specification or behavior of browsers: The ul is considered to imply /p (as expected in the SGML world of HTML 2.0 through 4.01); the /p following the /ul would be ignored by a browser, but we decided it would be better to yell at the template author for creating a fundamentally broken template. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com 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] Page Template oddity
On Saturday 23 July 2005 02:42, Andreas Reuleaux wrote: ul is not allowed within a p tag, not even in HTML 4.01 Transitional Thanks a lot! I did not know this! Even though I find this restriction stupid. I often have bullet list like this as part of my paragraph, even when I non-technical documents. But that's beside the point. Thank god nothing is broken in PT. ;-) 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/archive%40mail-archive.com