|
Joined: Jun 2006
Posts: 136
member
|
member
Joined: Jun 2006
Posts: 136 |
i just put my version 7 ubbthread.php through the HTML validation service of w3.prg, and came up with this result:
Result: Failed validation, 193 errors File: upload://Form Submission Encoding: utf-8 Doctype: HTML 4.01 Transitional
sure, the vast majority of the "errors" were missing "alt=" attributes in IMG tags. however, there were also a significant number of other errors that could be considered more serious, such as misplaced /TR tags and a missing /TABLE. (i'm hoping it's not from one of my HTML inserts!)
of course, the w3 validator is not perfect, and is sometimes wrong, especially, it seems, when javascript is used.
any thoughts on this?
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Version one of the new product, not a big suprise that it failed...
|
|
|
|
Joined: Jun 2006
Posts: 136
member
|
member
Joined: Jun 2006
Posts: 136 |
well, the "failure" was greatly weighted by the absence of alt attributes in IMG tags. i've always thought this to be a complete waste of bandwidth, myself. here are a list of the non-ALT errors that I turned up: 1. Error Line 32 column 72: document type does not allow element "META" here. 2. Error Line 33 column 84: document type does not allow element "LINK" here. 3. Error Line 34 column 76: document type does not allow element "LINK" here. 4. Error Line 50 column 6: document type does not allow element "TITLE" here. 5. Error Line 51 column 6: end tag for element "HEAD" which is not open. 6. Error Line 52 column 63: document type does not allow element "BODY" here. 7. Error Line 54 column 23: document type does not allow element "STYLE" here. 8. Error Line 55 column 74: there is no attribute "BACKGROUND". 9. Error Line 57 column 32: there is no attribute "BACKGROUND". 18. Error Line 190 column 7: "TR" not finished but containing element ended. 27. Error Line 235 column 7: "TR" not finished but containing element ended. 36. Error Line 271 column 7: "TR" not finished but containing element ended. 45. Error Line 316 column 7: "TR" not finished but containing element ended. 54. Error Line 353 column 7: "TR" not finished but containing element ended. 63. Error Line 400 column 7: "TR" not finished but containing element ended. 72. Error Line 444 column 7: "TR" not finished but containing element ended. 81. Error Line 512 column 7: "TR" not finished but containing element ended. 90. Error Line 551 column 7: "TR" not finished but containing element ended. 100. Error Line 822 column 7: "TR" not finished but containing element ended. 110. Error Line 1088 column 7: "TR" not finished but containing element ended. 120. Error Line 1247 column 7: "TR" not finished but containing element ended. 130. Error Line 1355 column 7: "TR" not finished but containing element ended. 139. Error Line 1396 column 7: "TR" not finished but containing element ended. 144. Error Line 1428 column 98: there is no attribute "ONENTER". 149. Error Line 1454 column 7: "TR" not finished but containing element ended. 158. Error Line 1771 column 7: "TR" not finished but containing element ended. 167. Error Line 1815 column 7: "TR" not finished but containing element ended. 172. Warning Line 1834 column 74: cannot generate system identifier for general entity "id". 173. Error Line 1834 column 74: general entity "id" not defined and no default entity. 174. Error Line 1834 column 76: reference to entity "id" for which no system identifier could be generated. 175. Info Line 1834 column 73: entity was defined here. 176. Warning Line 1834 column 79: cannot generate system identifier for general entity "t". 177. Error Line 1834 column 79: general entity "t" not defined and no default entity. 184. Error Line 1851 column 7: "TR" not finished but containing element ended. 193. Error Line 1912 column 7: "TR" not finished but containing element ended. the META tag and BACKGROUND attribute "errors" are trivial, however the missing /TR tags probably needs attention. having said that, it's still not impossible that my own insert code is causing at least some of these errors, however i've checked this several times and run it through checker programs separately, and it appears ok.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Keep in mind that the "alt" tag is read by alternative readers as a representation on WHAT the image is; you know, blind people can't see so how are they to know what the image is?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Will take a look at these and see what we need to cleanup for 7.0.1. Thanks for the info.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
:holds up a pint: heres for a "html validity" "feature" in UBB 7.0.1!
|
|
|
|
Joined: Jun 2006
Posts: 136
member
|
member
Joined: Jun 2006
Posts: 136 |
Keep in mind that the "alt" tag is read by alternative readers as a representation on WHAT the image is; you know, blind people can't see so how are they to know what the image is? that would be fine, except that the vast majority of graphics images in this case -- probably in excess of 95% -- are just visual design elements, like shade lines and single pixel gifs. they aren't actually "informational" graphics or photos, and are thus not very useful to blind people or to people using non-graphical browsers. IMESHO the ALT attribute should have been made non-compulsory for this reason. but nonetheless, it would be nice -- but not essential -- if version 7 was w3c compliant, if at all possible.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
It turns out if you take a stock version of threads 7 we only have a couple validation problems. 2 or 3 in fact so it's just about compliant. There are quite a few on this site due to the custom table wrappers I'm using that I need to clean up.
|
|
|
1 members (Ruben),
1,277
guests, and
207
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|