failure in lib/python/ZPublisher/HTTPResponse.py
Hi folks, Perhaps this is already well known but I'm new to this list. There seems to be a failure Zope 2.4.3 in lib/python/ZPublisher/HTTPResponse.py, Line 362 The code self.body=('%s\n<base href="%s" />\n%s' % (body[:index], self.base, body[index:])) produces invalid HTML code (check it with http://validate.w3.org) as of the "/>". In my opinion it should be: self.body=('%s\n<base href="%s">\n%s' % (body[:index], self.base, body[index:])) Bye, -- Markus Pietrek FS FORTH-SYSTEME GmbH Phone: +49 (7667) 908 145, FAX +49 (7667) 908 221
Hi Markus, I think that the <tag /> is the XHTML variant of an empty tag. Have you a error in your Browser or does the base-tag not work ? Regards, Dirk Markus Pietrek schrieb:
Hi folks,
Perhaps this is already well known but I'm new to this list.
There seems to be a failure Zope 2.4.3 in lib/python/ZPublisher/HTTPResponse.py, Line 362
The code self.body=('%s\n<base href="%s" />\n%s' % (body[:index], self.base, body[index:]))
produces invalid HTML code (check it with http://validate.w3.org) as of the "/>". In my opinion it should be: self.body=('%s\n<base href="%s">\n%s' % (body[:index], self.base, body[index:]))
Bye, --
Markus Pietrek FS FORTH-SYSTEME GmbH Phone: +49 (7667) 908 145, FAX +49 (7667) 908 221
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi! The trailing "/>" (as in "<br />") is correct for XHMTL. Though Zope could do even better and try to find out the HTML type (HTML 3.2, HTML 4, XHTML)that is being used. As it will not be a problem for any browsers to keep it as is, I consider it not a bug. In fact, all these "/>" were added on purpose to create XHTML-compatible code ...
produces invalid HTML code (check it with http://validate.w3.org) as of the
I guess you validated against HTML 4 or so, not against XHMTL ... Joachim
Hi,
The trailing "/>" (as in "<br />") is correct for XHMTL. Though Zope could do even better and try to find out the HTML type (HTML 3.2, HTML 4, XHTML)that is being used. As it will not be a problem for any browsers to keep it as is, I consider it not a bug. In fact, all these "/>" were added on purpose to create XHTML-compatible code ...
Thank you. I don't know how Zope could check the HTML type generated. Isn't it the responsability of the page designer to insert the relevant tags into the page (e.g. standard_html_header)?
produces invalid HTML code (check it with http://validate.w3.org) as of
the
I guess you validated against HTML 4 or so, not against XHMTL ...
Yes, as it is my intention to use Zope as an Intranet server providing HTML 4 pages. Bye, -- Markus Pietrek FS FORTH-SYSTEME GmbH Phone: +49 (7667) 908 145, FAX +49 (7667) 908 221
Hi!
Thank you. I don't know how Zope could check the HTML type generated. Isn't it the responsability of the page designer to insert the relevant tags into the page (e.g. standard_html_header)?
Yes, it is. But to do it right for both HTML 4 and XHTML, Zope would have to check these headers before inserting the BASE tag.
I guess you validated against HTML 4 or so, not against XHMTL ...
Yes, as it is my intention to use Zope as an Intranet server providing HTML 4 pages.
O.k., but nobody will kill you if your documents are "better than standard" with regard to HTML 4. There is no known issue with older browsers and the <... /> notation, as long as the "/" is separated by a space. Joachim
participants (3)
-
Dirk Datzert -
Joachim Werner -
Markus Pietrek