Discussion:
[Erp5-dev] XHTML page w3c validation
Morin Fabien
2008-01-16 13:26:47 UTC
Permalink
I have some pages where tidy find 0 error and 20 warnings but w3c
validator find no error and no warning (valid page). eg : this page
http://localhost:1234/erp5/view

This is not a problem. The problem is that I have some pages where tidy
find 0 error and 40 warning but w3c validator find 1 error (so the page
is invalid but passed our tests). I have this case on the page
http://localhost:1234/erp5/use_case_module/1/view but I think we could
find it on a lot of other places.
We can see that by using HTML validator firefox extension and set the
option to use SGML analyser instead of HTML Tidy.

Thanks to google, I have find another way to check our pages : use the
same validator as w3c uses.
Official web page is there : http://validator.w3.org/docs/install.html
a gentoo turial on this topic here :
http://gentoo-wiki.com/HOWTO_W3C_Validator

what do you think about that ?

Regards,
Fabien
Vihang Patel
2008-01-16 13:38:42 UTC
Permalink
I am trying to install the ERP5 (latest) onto a Windows machine. I downloaded Zope 2.9 (final) and added the required python libraries based on the latest RPM for madrake.

The zserver starts, does not give any errors (only one warning) but does not proceed any further. When I try to access the webpage, its on a infinite wait !

Any suggestions?


Morin Fabien <fabien at nexedi.com> wrote:
I have some pages where tidy find 0 error and 20 warnings but w3c
validator find no error and no warning (valid page). eg : this page
http://localhost:1234/erp5/view

This is not a problem. The problem is that I have some pages where tidy
find 0 error and 40 warning but w3c validator find 1 error (so the page
is invalid but passed our tests). I have this case on the page
http://localhost:1234/erp5/use_case_module/1/view but I think we could
find it on a lot of other places.
We can see that by using HTML validator firefox extension and set the
option to use SGML analyser instead of HTML Tidy.

Thanks to google, I have find another way to check our pages : use the
same validator as w3c uses.
Official web page is there : http://validator.w3.org/docs/install.html
a gentoo turial on this topic here :
http://gentoo-wiki.com/HOWTO_W3C_Validator

what do you think about that ?

Regards,
Fabien

_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev



---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080116/4497f384/attachment.htm>
Rafael Monnerat
2008-01-16 18:29:02 UTC
Permalink
w3c-markup-validator is an excelent tool! It can be used to create some
validation tests using unit tests + urllib in future.

The installation at ubuntu/debian it required just one apt-get install
w3c-markup-validator.
Post by Morin Fabien
I have some pages where tidy find 0 error and 20 warnings but w3c
validator find no error and no warning (valid page). eg : this page
http://localhost:1234/erp5/view
This is not a problem. The problem is that I have some pages where tidy
find 0 error and 40 warning but w3c validator find 1 error (so the page
is invalid but passed our tests). I have this case on the page
http://localhost:1234/erp5/use_case_module/1/view but I think we could
find it on a lot of other places.
We can see that by using HTML validator firefox extension and set the
option to use SGML analyser instead of HTML Tidy.
Thanks to google, I have find another way to check our pages : use the
same validator as w3c uses.
Official web page is there : http://validator.w3.org/docs/install.html
http://gentoo-wiki.com/HOWTO_W3C_Validator
what do you think about that ?
Regards,
Fabien
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
Rafael Monnerat
2008-01-16 21:22:42 UTC
Permalink
Hi Fabien,
Post by Morin Fabien
This is not a problem. The problem is that I have some pages where tidy
find 0 error and 40 warning but w3c validator find 1 error (so the page
is invalid but passed our tests). I have this case on the page
http://localhost:1234/erp5/use_case_module/1/view but I think we could
find it on a lot of other places.
We can see that by using HTML validator firefox extension and set the
option to use SGML analyser instead of HTML Tidy.
This commit fix the w3c validator error? or there is another one?
Post by Morin Fabien
Author: rafael
Date: Wed Jan 16 22:20:15 2008
New Revision: 18752
URL: http://svn.erp5.org?rev=18752&view=rev
Added alt attribute for img tag. Without this w3c tests will fail.
erp5/trunk/products/ERP5Form/MultiRelationField.py
Modified: erp5/trunk/products/ERP5Form/MultiRelationField.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/MultiRelationField.py?rev=18752&r1=18751&r2=18752&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/MultiRelationField.py (original)
+++ erp5/trunk/products/ERP5Form/MultiRelationField.py Wed Jan 16 22:20:15 2008
@@ -339,7 +339,7 @@
selection_name_html = ''
# Generate plan link
html_string += '<a href="%s/%s?field_id=%s&amp;form_id=%s%s">' \
- '<img src="%s/images/jump.png" />' \
+ '<img src="%s/images/jump.png" alt="jump" />' \
'</a>' % \
(here.absolute_url(),
field.get_value('jump_method'),
_______________________________________________
Erp5-report mailing list
Erp5-report at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-report
Morin Fabien
2008-01-16 22:19:11 UTC
Permalink
Post by Rafael Monnerat
This commit fix the w3c validator error? or there is another one?
ok, thx

But my message was not clear enough. I did not want at all to highlight
a bug in particular, I think tidy does not give the same result as the
w3c validator. Tidy reports warnings that seem to have no meaning and
does not signal some mistakes (which is more serious). So if we want
valid pages and a more evolved test system, w3c validator is a good
solution (it permit to test css file, and other things).

Loading...