document.write with XHTML
Hi Albert,
Couldn't help but notice the new big, red warning with v. 12.
I'm using it to write my mobile/desktop css and a script for only desktop users and haven't noticed any problems.
This is the doctype I'm using, (which doesn't have the goofy <XML> tag I've seen suggested):
I'm wondering if it's with certain other doctypes or if this should be a warning instead of an error.
I am using innerHTML for other areas where the code can be backfilled after page load.
Couldn't help but notice the new big, red warning with v. 12.
I'm using it to write my mobile/desktop css and a script for only desktop users and haven't noticed any problems.
This is the doctype I'm using, (which doesn't have the goofy <XML> tag I've seen suggested):
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html" />
I'm wondering if it's with certain other doctypes or if this should be a warning instead of an error.
I am using innerHTML for other areas where the code can be backfilled after page load.