ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

{SOLVED...duh} Invalid DOCTYPE error

June 22, 2008 7:31am

Subscribe [2]
  • #1 / Jun 22, 2008 7:31am

    AndyWiltshireNZ

    28 posts

    Hi,

    I originally had my single page portfolio site passing the W3C XHTML Markup Validation Service with the following code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    Since the site has been setup in EE, it no longer validates and comes back as saying that there is NO DOCTYPE defined at all…

    I’ve checked my other sites, with the same results…

    Is there some steps necessary to ensure that the DOCTYPE is being defined correctly in EE? Or is it a bug? I like to ensure that my sites all pass the W3C standards.

    You can view the results here: http://validator.w3.org/check?uri=http://andy.net.nz/

    Remember that this site USE to pass perfectly fine as it was…(basic .html file) and the site was just copy and pasted into an EE index template.

    Cheers,

    Andy

    P.S. I notice that expressionengine.com passes fine: http://validator.w3.org/check?uri=http://expressionengine.com

    So there must be something screwy with my setup?

  • #2 / Jun 22, 2008 7:47am

    Ingmar

    29245 posts

    Your site is currently offline, so it’s a bit hard to tell. Generally, providing a valid doctype in the template means that EE will ouput it, and thus passes validation.

  • #3 / Jun 22, 2008 1:46pm

    Lisa Wess

    20502 posts

    The validator would also, by the way, be seeing it offline…. =)

  • #4 / Jun 22, 2008 2:23pm

    Ryan Irelan

    444 posts

    The System Offline template doesn’t have a DOCTYPE (*cough* but should *cough*), so that’s why you’re getting that error when you validate.

  • #5 / Jun 22, 2008 6:58pm

    AndyWiltshireNZ

    28 posts

    Hi, my name is Andy, and I just had a retarded moment 😊

    I always forget that I have the public sites switched off…. sorry… wow… I either need more sleep or more caffeine , hehe

  • #6 / Jun 23, 2008 4:07am

    Ingmar

    29245 posts

    No worries, Andy, it happens 😊 Glad you figured it out.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases