News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Why is the SMF 2.0 DOCTYPE transitional rather than strict?

Started by rexusdiablos, January 08, 2010, 10:32:12 PM

Previous topic - Next topic

rexusdiablos

Is there a reason for this? I want the rest of my site to mirror my forum as much as possible but I'd like to know if there's a valid reason for using transitional?

Also, though of lesser importance, why isn't the XHTML version 1.1 rather than 1.0?

???
"You just can't make this stuff up!" - Alex Jones | www.infowars.com

rexusdiablos

I've read that XHTML is really not recommended for beginner programmers because it's affects parsing and can really mess up dynamic page if you don't know what you're doing. Should I sidestep it and stick with HTML?

Source: http://friendlybit.com/html/why-xhtml-is-a-bad-idea/
"You just can't make this stuff up!" - Alex Jones | www.infowars.com

Nick Whetstone

Strict is, well, strict. In Transitional, there are some "shortcuts" (such as the align attributes), as well as certain tags, such as the iframe. But in Strict, these are not valid. Plus, the nesting of tags is set up differently. Now, I could be wrong, but I believe SMF uses the Transitional DTD for those who prefer to use these shortcuts and those who ONLY know how to achieve want using the shortcuts. As it is open source, it is often heavily modified, and using a Transitional DTD allows for more coders to have valid pages. Again, I could be wrong, but I believe that is why...

For more info on things removed from the Strict DTD, look here:
http://www.zvon.org/xxl/xhtmlReference/Output/comparison.html
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

rexusdiablos

Quote from: Ha² on January 08, 2010, 11:26:26 PM
Now, I could be wrong, but I believe SMF uses the Transitional DTD for those who prefer to use these shortcuts and those who ONLY know how to achieve want using the shortcuts. As it is open source, it is often heavily modified, and using a Transitional DTD allows for more coders to have valid pages.

That makes sense. You're probably right.

Why is SMF 2.0 using XHTML rather then HTML 4.0 though?
"You just can't make this stuff up!" - Alex Jones | www.infowars.com

Advertisement: