#5769 closed (duplicate)
djangoproject.com shows quite a few HTML and CSS validation errors
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | *.djangoproject.com | Version: | |
Severity: | Keywords: | HTML CSS valdation errors | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I've written a Python script wrapping the W3C HTML and CSS validators
(using http://validator.w3.org and http://jigsaw.w3.org/css-validator).
Running it over the main Django website and those of some competitors
gives some interesting data below. Apparently only Plone.org contains
flawless HTML code. (Unfortunately, Trac doesn't accept too many URLs
in a posting, so I had to remove most of the HTTP protocols in the
tables below.)
$ py25 checkML.py --html
Length | Errors | Errs./MB | URL: http://validator.w3.org/check?uri=http:// |
====== | ==== | ====== | ================================================ |
---|---|---|---|
19705 | 9 | 478 | www.djangoproject.com |
19877 | 9 | 474 | www.djangoproject.com/documentation |
19986 | 9 | 472 | www.djangoproject.com/documentation/db-api |
19819 | 9 | 476 | www.djangoproject.com/download |
68529 | 36 | 550 | www.djangoproject.com/weblog |
19935 | 9 | 473 | www.djangoproject.com/weblog/2007/jul |
78031 | 36 | 483 | www.djangoproject.com/community |
20319 | 8 | 412 | code.djangoproject.com |
20359 | 8 | 412 | code.djangoproject.com/wiki |
15096 | 0 | 0 | code.djangoproject.com/wiki/BackwardsIncompatibleChanges |
14380 | 0 | 0 | www.djangobook.com |
14941 | 0 | 0 | www.djangosites.org |
441094 | 202 | 480 | www.djangosnippets.com |
26328 | 10 | 398 | www.turbogears.org |
20242 | 8 | 414 | www.rubyonrails.org |
28550 | 20 | 734 | www.zope.org |
19611 | 8 | 427 | www.zope.com |
14816 | 0 | 0 | www.plone.org |
22453 | 7 | 326 | www.typo3.com |
151873 | 94 | 649 | www.php.com |
27756 | 8 | 302 | www.drupal.com |
$ py25 checkML.py --css
Length | Errors | Errs./MB | URL: http://jigsaw.w3.org/css-validator/validator?uri=http:// |
177683 | 3 | 17 | www.djangoproject.com |
175372 | 3 | 17 | www.djangoproject.com/documentation |
175393 | 3 | 17 | www.djangoproject.com/documentation/db-api |
175357 | 3 | 17 | www.djangoproject.com/download |
175351 | 3 | 17 | www.djangoproject.com/weblog |
175378 | 3 | 17 | www.djangoproject.com/weblog/2007/jul |
175360 | 3 | 17 | www.djangoproject.com/community |
193085 | 2 | 10 | code.djangoproject.com |
193120 | 2 | 10 | code.djangoproject.com/wiki |
193323 | 2 | 10 | code.djangoproject.com/wiki/BackwardsIncompatibleChanges |
84995 | 10 | 123 | www.djangobook.com |
64005 | 4 | 65 | www.djangosites.org |
65280 | 1 | 16 | www.djangosnippets.com |
46878 | 2 | 44 | www.turbogears.org |
71642 | 4 | 58 | www.rubyonrails.org |
188729 | 7 | 38 | www.zope.org |
67528 | 0 | 0 | www.zope.com |
920 | 0 | 0 | www.plone.org |
66052 | 0 | 0 | www.typo3.com |
27125 | 0 | 0 | www.php.com |
3794 | 0 | 0 | www.drupal.com |
If djangoproject.com is created with Django it would be a plus to
be able to say "Look Ma, it has no errors!" I'm pretty sure it's only
some template issues...
Attachments (2)
Change History (15)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 17 years ago
Version: | SVN |
---|
It's pretty simple to track down the errors if you go to the output
pages of the respective validator, e.g.
http://validator.w3.org/check?uri=http://www.djangoproject.com
which will give details about each error.
If you go to the previous link you can see that quite some errors
seem to have their origin in the footer part of this page (and
hence, probably other pages as well).
It's harder for me to test any resulting HTML patches than for
somebody with direct access to the website.
comment:4 by , 17 years ago
Dinu, you (or someone else who wants to) should be able to write the patches by checking out the website source from svn and making the changes that will fix it.
comment:5 by , 17 years ago
Well, ok. Here is a first tiny patch, named base-patch.html, to djangoproject.com/django_website/templates/base.html that should help. Basically it adds a missing tag and a missing end slash. There's probably more, but let's see how this one makes a difference...
follow-up: 7 comment:6 by , 17 years ago
Patch needs improvement: | set |
---|
Please create patches with "diff -u" (or "svn diff -u", even) and from the root of the checked out tree. That way, the patch will be easier to read and the file that it applies to will be clear from the patch itself.
by , 17 years ago
Attachment: | base-patch-u.html added |
---|
patch (now with diff -u) for adding a missing tag and a missing end slash
comment:7 by , 17 years ago
Replying to mtredinnick:
Please create patches with "diff -u" (or "svn diff -u", even) and from the root of the checked out tree. That way, the patch will be easier to read and the file that it applies to will be clear from the patch itself.
Done.
comment:8 by , 17 years ago
Patch needs improvement: | unset |
---|---|
Triage Stage: | Accepted → Ready for checkin |
I guess I need to change the status to "Ready for checkin", so that's what I'm doing.
follow-up: 10 comment:9 by , 17 years ago
Is there anything else I can do to make this change happen?
follow-up: 11 comment:10 by , 17 years ago
Replying to Dinu Gherman <gherman@darwin.in-berlin.de>:
Is there anything else I can do to make this change happen?
I don't know if this ticket is more extensive than #5644 (that was ready for checkin), but it looks like a duplication.
comment:11 by , 17 years ago
Replying to garcia_marc:
I don't know if this ticket is more extensive than #5644 (that was ready for checkin), but it looks like a duplication.
Sorry, I didn't notice #5644 when posting my ticket. In fact, I also reported a missing </div>. In any case, it should probably not take four weeks to fix that, should it?
comment:12 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closing as a dupe of #5644
Dinu - if there are any changes which you've made which are not reflected in the patch there, please submit them over in that ticket.
And regarding the time it's taking - it's not super high priority and the developers have all been rather busy, but don't worry it'll get done ;)
Would you be able to track some of these down and make some patches?