[Zope] w3c validation and <base .../> tag

Martijn Pieters mj@zope.com
Mon, 23 Sep 2002 11:37:14 -0400


On Mon, Sep 23, 2002 at 05:10:05PM +0200, Ulrich Wisser wrote:
> Zope inserts this <base href="http://zope.website/" />
> which maybe is valid xhtml but not HTML 4.01.

At most the validator should tell you the '/' is not a valid attribute. The
base element *is* a legal element in the HTML 4.01 spec:

  http://www.w3.org/TR/html401/struct/links.html#edef-BASE

As it is impossible to detect when you are trying to generate XHTML and when
HTML in all cases, Zope *has* to include the additional slash.

In my opinion, the W3C validtor is broken in the face of their own
recommendation for transisition from HTML to XHTML; it is the W3C
recommendation to use ' /' (with the space) at the end of empty XHTML tags
to avoid breakage in non-XHTML browsers.

-- 
Martijn Pieters
| Software Engineer  mailto:mj@zope.com
| Zope Corporation   http://www.zope.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------