Re:"Tough. Django produces XHTML."
by simonw on Tuesday February 02, 2010 @12:40PM
(#1095454)
Forgetting to use a DOCTYPE is a bad idea, since it throws most browsers in to "quirks" mode meaning they won't render things according to the published standards. That makes debugging problems a whole lot harder since you first have to work out if the bug relates to quirks mode v.s. standards mode, and quirks mode problems are far less widely documented.
[ Parent
| on HN ]
Re:"Tough. Django produces XHTML."
by happenstance on Tuesday February 02, 2010 @01:02PM
(#1095515)
Given my html as described above, what would you recommend to use for the DOCTYPE line?
Re:"Tough. Django produces XHTML."
by allbutlost on Tuesday February 02, 2010 @01:44PM
(#1095663)
<!DOCTYPE html>
easy to remember and triggers standards mode
Re:"Tough. Django produces XHTML."
by happenstance on Tuesday February 02, 2010 @02:11PM
(#1095732)
Looks redundant, but easy. Thanks.