miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Search | Statistics | Manual |
Bugs miniBB Support Forums / Bugs /   

Small HTML enhancements

Author J
#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="">
More information about this can be found here:

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
#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:
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

Author tom322
#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 | Edited by: Paul 

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
#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 as well. I hope now it fully validates. Thank you!

Bugs miniBB Support Forums / Bugs / Small HTML enhancements Top
This topic is closed. New replies are not allowed.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB