SilvaNews: Invalid XHTML
Frank Schimmel <f.schimmel-tvt729N4eQ4hHGrKhHam0bNldLUNz+W/@public.gmane.org>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all! I just checked the validity of some silva-generated pages and came across a bug in these page templates: SilvaNews/views/public/NewsViewer/search_news.pt SilvaNews/views/public/NewsViewer/view_archive.pt SilvaNews/views/public/NewsViewer/view_news.pt They all contain <span xmlns="http://www.w3.org/1999/xhtml" xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:notal="http://www.infrae.com/silva/notal" ... > which triggers four validation errors: The "xmlns" and "xmlns:notal" are rejected as illegal attributes and the block-level elements h2 and table are not allowed inside the inline element span. The last two can be fixed by using a div instead of span. (Or maybe even omitting the tag completely?) I'm not sure about the xml namespaces... This is for SilvaNews version 1.2. Is this fixed in newer versions? Best regards, -Frank Schimmel