splorp / tersus

An achingly simple WordPress theme without all the usual cruft.
GNU General Public License v3.0
99 stars 6 forks source link

DOCTYPE not on line 1 #12

Closed dpk closed 13 years ago

dpk commented 13 years ago

the <!DOCTYPE html> tag is on line 2, with line 1 being blank. for the ultimate in standards-mode-triggeration, it ought to be on line 1.

test case: http://tersus-dev.frontispiece.org/

splorp commented 13 years ago

Triggeration?

I’ll move the <!DOCTYPE html> declaration outside of the PHPdoc tags in the index.php file. That should do the trick, even though every HTML5 validator I’ve tried says nothing regarding the extra blank line.

dpk commented 13 years ago

The HTML5 specification allows it not to be on line 1... But IIRC IE/Mac won't trigger standards mode if it isn't. Not so sure about IE6, but I think it's a similar deal.

splorp commented 13 years ago

Interesting. I’d love to see more information about this, actually.

dpk commented 13 years ago

It seems, having done some Googlesearching on this, that I was making it up all along. I'm sure I'd heard that IE/Mac had that issue... sorry.

splorp commented 13 years ago

I’ve reverted the change in header.php and for your entertainment, here is the current version of Tersus as it appears in Internet Explorer 5.1.7 in Classic.

http://flickr.com/photos/splorp/5230145934/