Quirks Mode


Author Message
JimmyB7

Posted: 7/27/2012
Quote message 

I’m getting a strange error message with one of the plugins I routinely use when I first access the home page. “Floatbox does not support quirks mode. This page needs a valid DOCTYPE.” I looked at Floatbox’s help and it says this “Floatbox does not support quirks mode. All pages that include floatbox content need to have a valid doctype declaration at the top of the page which will set the browser to render in standards-compliant mode. If you don't know what doctype to use, the simple HTML5 doctype declaration <!DOCTYPE html> is an excellent choice.”

So far this error only happens when I view one of my Artisteer 3.1 sites using the Kindle Fire web browser. Other Android devices are not getting this error. Firefox, IE9, etc., are OK on PCs.

What I noticed is that Artisteer 3.1 produces: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]>

There are two [ ] brackets near the end of the code line that apparently are not normally used. Wikipedia http://en.wikipedia.org/wiki/Quirks_mode does not show the brackets. I looked at Artisteer beta 4.0 and it produces the short code <!DOCTYPE html> with no brackets.

I can arbitrarily change the Artisteer 3.1 code from the brackets to <!DOCTYPE html> and the problem goes away. I looked at Artisteer’s own home page and it has <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">, no brackets.

I looked at some of the free sample templates Artisteer provides and they had brackets. My question is what is the purpose of the brackets, and could they be setting off the “Quirks Mode” warning?