[snip] Using a doctype with a URL should put you in strict mode, more info on PPK's site [/snip] That did the trick. HTML Kit was inserting a funky doctype declaration, once I did this <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> all is well. Thanks!