• Resolved gprego

    (@gprego)


    Hi, i’m working on theme but i’m having a problem with the Doctype.
    In firefox the doctype is just fine. But in IE8 instead of the doctype I have <html sizecache=”0″ sizset=”0″>. And the doctype is inside the body. You can check it if you use firebug and the explorer developer tools on this site
    It’s strange because in header.php the first thing is the doctype. And this come with huge problems in explorer.
    Any help will be very appreciated since i don’t have a clue on how to solve it.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s strange because in header.php the first thing is the doctype.

    It isn’t the first thing on the page. There’s a leading blank line. Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Ten theme to rule out any theme-specific problems.

    Thread Starter gprego

    (@gprego)

    thanks for your reply.
    I did the following:
    – Switch to the Twenty Ten and it works ok (so it’s something on my theme)
    – Deactivating all plugins (and the problem persists)
    – And finally replace my theme header.php and index.php with the TwentyTen files (and the problem is the same)

    Do you have another suggestion??
    I’m really lost

    Thread Starter gprego

    (@gprego)

    Ok, I still don’t know what was the problem but I was able to fix it.
    What I did was to copy the Twenty Ten theme and then replace all files with my files.
    It doesn’t make much sense. But now it’s working.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘html instead of doctype in IE’ is closed to new replies.