[Zope] Two issues for Z2.2: XHTML & malicious tags

J M Cerqueira Esteves jmce@artenumerica.com
Fri, 2 Jun 2000 18:38:42 +0100


On Fri, Jun 02, 2000 at 06:50:46PM +0200, Alexander Limi wrote:
> 1. The HTML that Zope outputs is not very standards-compliant (XHTML 1.0) at
> the moment. Tags like <img /> are rendered as <IMG> etc. I would like to

Perhaps support for XHTML-compliance in Zope should be optional.  I
wrote a few pages in XHTML some time ago, had no problems with
Netscape 4.xx, but was later informed of a few problems by some users.
Some still abundant browser versions were particularly not grokking
(and thus showing the user) the processing instruction

  <?xml version="1.0" encoding="ISO-8859-1"?>

For generally accessible pages, I'm therefore still using HTML 4.0.

This is mentioned on http://www.w3.org/TR/xhtml1/:

 Be aware that processing instructions are rendered on some user
 agents. However, also note that when the XML declaration is not included
 in a document, the document can only use the default character encodings
 UTF-8 or UTF-16.

Anyway, tags like <img /> are considered valid HTML 4.0 by the W3C validator,
so they would not cause validation "noise" for those still using HTML 4.0.

-- 
 jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/