miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Bugs miniBB Support Forums / Bugs /  
 

Small HTML enhancements

 
Author J
Guest
#1 | Posted: 5 May 2007 14:07 
I found two small things which are not totally correct in miniBB's HTML-code.

1. The html-tag must contain an xmlns declaration for the XHTML namespace: <html xmlns="http://www.w3.org/1999/xhtml">
More information about this can be found here: http://www.w3.org/TR/xhtml1/#strict

2. Because there are JavaScript-event-handlers (e.g. onkeydown) an appropriate meta-tag should be used: <meta http-equiv="Content-Script-Type" content="text/javascript" />

Author Paul
Lead Developer 
#2 | Posted: 7 May 2007 08:45 
Thank you for mentioning this.

Do you think these tags are mandatory? Without them, it seems miniBB still passes W3C validation.

Author J
Guest
#3 | Posted: 7 May 2007 10:02 
Yes, they are both mandatory.
You can read about this in the W3C recommendations.
For the first one I already posted the link.
For the second one you can find something here: http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.2.1
It's necassary because there are browsers that understand more than JavaScript: IE understands also VB Script, for example.

The W3C validator is not very reliable. That's why I always use http://www.validome.org/lang/en.

Author tom322
Active Member
#4 | Posted: 7 May 2007 10:45 
Personally, if the site passes W3C validation it should be more than enough. Why create unnecessary code to keep [not standard] validators happy.. I think W3C is the standard in the online industry.

It's like validating youtube code - technically it's possible to do, but with a dozen or so extra more lines of code..

Author Paul
Lead Developer 
#5 | Posted: 7 May 2007 10:55 
J

Ok I will take a look at this - not a big problem to add these tags to the header... thanks. However I also agree there are so much "compliance" tags that sometimes they only make the page bigger with no notable sense.

Author J
Guest
#6 | Posted: 7 May 2007 11:08 
Your right, W3C is the industry standard, but this standard is defined by the W3C recommendations, not by a buggy validator. The aim is not to make not standard validators happy, it is to write code according to the W3C recommendations. Because the W3C validator is not able to check if code is valid like defined by the W3C I prefer other validators. If you don't like them don't use them, but you should accept what is written in the recommendations.

And it is not unnecessary code, e.g. the meta-tag is needed to tell the browser which script-language is used. You can not say: for most browsers it is JavaScript by default, so I don't need to write it.

Author Paul
Lead Developer 
#7 | Posted: 9 May 2007 08:45 
Ok I've updated this in the main package and on minibb.com as well. I hope now it fully validates. Thank you!

Bugs miniBB Support Forums / Bugs /
 Small HTML enhancements
 Share Topic's Link

This topic is closed. New replies are not allowed.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑