Name: Anonymous 2010-07-10 0:52
Your preference and why?
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ... <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" /> with <!DOCTYPE html> ... <meta charset="UTF-8">. section, article, nav, etc.). But I do like the feeling of security that comes with XHTML, even if in practice it may end up breaking things more than keeping them together (as in >>3's case).
<!DOCTYPE html>
<html><html xmlns="http://www.w3.org/1999/xhtml">document.write anything that would break the well-formedness of the document? you already have an XML parser that's available to javascript, so why not just implement document.write using that?