---- Does validation failure force quirks mode in IE6?
Fotiman - 5:12 pm on Nov 10, 2006 (gmt 0)
1.) How do you know for sure if a page has triggered quirks mode? When I try to validate the page using the W3 validator, I get, "This page is not Valid XHTML 1.0 Transitional!"
If you don't have a complete DOCTYPE declaration, including the URI, then IE will be in quirks mode. If you use a fully qualified DOCTYPE, then IE will not be in quirks mode. Any of these will cause IE to get out of quirks mode:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2.)Why choose XHTML 1.0 Transitional versus HTML 4.01 Transitional?
Most developers should NOT be using XHTML. If you're not sure if you need XHTML, then you don't need it (you would know if you did). There's a good read here on the topic: [hixie.ch...]
3.) Do validation errors automatically trigger quirks mode in IE6?