Hello, I searched through the list archives but couldn't find any old thread to this. I thought this has been discussed before. Anyway could please someone advice me how to get my documents validated with the W3C validator? Zope inserts this <base href="http://zope.website/" /> which maybe is valid xhtml but not HTML 4.01. Any ideas? Regards Ulrich -- World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
I asked about this a week or 2 ago... The answer is that it is valid xhtml (which doesn't help me). And that you need to manually put a <base href=...> in every html file manually. So I gave up. Unless someone can give a better answer? dj On Mon, 23 Sep 2002, Ulrich Wisser wrote:
Hello,
I searched through the list archives but couldn't find any old thread to this. I thought this has been discussed before. Anyway could please someone advice me how to get my documents validated with the W3C validator?
Zope inserts this <base href="http://zope.website/" /> which maybe is valid xhtml but not HTML 4.01.
Any ideas?
Regards
Ulrich
--
World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
_______________________________________________ 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 )
- Dan Jacobs - 07956 246 659
If you're sufficiently bothered to go _that_ far you might as well remove the trailing slash in the definition of method insertBase in /lib/python/ZPublisher/HTTPResponse.py. On Mon, 23 Sep 2002, Dan Jacobs wrote:
I asked about this a week or 2 ago...
The answer is that it is valid xhtml (which doesn't help me). And that you need to manually put a <base href=...> in every html file manually.
So I gave up.
Unless someone can give a better answer?
dj
On Mon, 23 Sep 2002, Ulrich Wisser wrote:
Hello,
I searched through the list archives but couldn't find any old thread to this. I thought this has been discussed before. Anyway could please someone advice me how to get my documents validated with the W3C validator?
Zope inserts this <base href="http://zope.website/" /> which maybe is valid xhtml but not HTML 4.01.
Any ideas?
Regards
Ulrich
--
World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
_______________________________________________ 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 )
- Dan Jacobs - 07956 246 659
_______________________________________________ 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,
I asked about this a week or 2 ago...
The answer is that it is valid xhtml (which doesn't help me). And that you need to manually put a <base href=...> in every html file manually.
I tried <base href="<dtml-var absolute_url>"> in my standard_html_header. Could this cause trouble? It works so far, but I am not expert on browsers and the base tag. Regards Ulrich -- Searchengine Know How - Webpromotion - Optimization - Internal Search World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
Am Mon, 2002-09-23 um 18.08 schrieb Ulrich Wisser:
Hi,
I asked about this a week or 2 ago...
The answer is that it is valid xhtml (which doesn't help me). And that you need to manually put a <base href=...> in every html file manually.
I tried <base href="<dtml-var absolute_url>"> in my standard_html_header. Could this cause trouble? It works so far, but I am not expert on browsers and the base tag. I use <base href="<dtml-var URL1>/">. Seems to work well.
Andreas
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/ ---------------------------------------------
Martijn, That's a good point, perhaps someone from zopecorp could drop them an e-mail about this? Regards, Dan On Mon, 23 Sep 2002, Martijn Pieters wrote:
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/ ---------------------------------------------
_______________________________________________ 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 )
- Dan Jacobs - 07956 246 659
This has been an issue for a while, it turns out. I found this message on the www-validator mailing list archives, dated over two years ago. http://lists.w3.org/Archives/Public/www-validator/2000JanMar/0082.html http://lists.w3.org/Archives/Public/www-validator/2000JanMar/0068.html ...etc... (search for '<base') I don't know what the right answer here is. XHTML is not HTML. They're really close and browsers should be able to render either but, when you get down to it they just aren't the same. Zope's position of assuming XHTML forces people (sort-of) to use XHTML if they want to use a validator. Perhaps another option would be to make zope have an option to spit out the ' /' or not rather than requiring source code changes. Alas, this would also affect other products. Image, for example, also spits out ' />'. I'm assuming the Zope position must be that it is targeting XHTML and developers should do likewise if they want to get validated. I've never noticed such a message anywhere but that seems to be the case.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dan Jacobs Sent: Monday, September 23, 2002 8:43 AM To: Martijn Pieters Cc: zope@zope.org Subject: Re: [Zope] w3c validation and <base .../> tag
Martijn,
That's a good point, perhaps someone from zopecorp could drop them an e-mail about this?
Regards,
Dan
On Mon, 23 Sep 2002, Martijn Pieters wrote:
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.
Hello,
Perhaps another option would be to make zope have an option to spit out the ' /' or not rather than requiring source code changes. Alas, this would also affect other products. Image, for example, also spits out ' />'.
yes, but for the image tag the w3c validator does not complain. I don't even get a warning for that it is ignored. Whereas the <base .../> tag is tagged as error. STRANGE!?! Ulrich -- World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
That is true. Why would <base .. /> be bad and <img .. /> be ok? I smell something fishy with the validator. Maybe it is time to whine to the validator maintainers.
-----Original Message----- From: Ulrich Wisser [mailto:liste@publisher.de] Sent: Monday, September 23, 2002 11:38 AM To: zope-admin@zope.org; Charlie Reiman Cc: Dan Jacobs; Martijn Pieters; zope@zope.org Subject: Re[2]: [Zope] w3c validation and <base .../> tag
Hello,
Perhaps another option would be to make zope have an option to spit out the ' /' or not rather than requiring source code changes. Alas, this would also affect other products. Image, for example, also spits out ' />'.
yes, but for the image tag the w3c validator does not complain. I don't even get a warning for that it is ignored. Whereas the <base .../> tag is tagged as error. STRANGE!?!
Ulrich
--
World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
On Mon, Sep 23, 2002 at 08:38:25PM +0200, Ulrich Wisser wrote:
Perhaps another option would be to make zope have an option to spit out the ' /' or not rather than requiring source code changes. Alas, this would also affect other products. Image, for example, also spits out ' />'.
yes, but for the image tag the w3c validator does not complain. I don't even get a warning for that it is ignored. Whereas the <base .../> tag is tagged as error. STRANGE!?!
Hmm.. interesting. This implies that W3C did alter its validator to accept '/' as an attribute on the img tag. Seems like they'd be willing to do so for the base tag as well, I see no reason why that would be different. PS. Please don't use 'The Bat' as its authors feel they have to include the envelope sender in a reply-to-all. In the case of the Zope list that is zope-admin@zope.org. I have talked to the authors and they seem to want to ignore the RFCs and common practice and leave their product broken. Alternatively, at least delete the envelope sender from the list of addresses you reply to. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
participants (7)
-
Andreas Kostyrka -
Charlie Reiman -
DA Loeffler -
Dan Jacobs -
Martijn Pieters -
Ulrich Wisser -
Ulrich Wisser