Site WTF



  • I was checking the source of this site when the DTD struck me in the face with great vengeance and furious anger:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> 
     I rest my case.


  • It's a wtf because there are no frames on the site?



  • Is the WTF that there is no frameset dtd for XHTML?

    Or the "HTML programmer" that did this, just took an ordinary HTML4 page changed the paths to say xhtml1 (and probably not modifying the rest of the html at all). Instant XHTML!
     



  • Is the WTF that there is no frameset dtd for XHTML?

    Or the "HTML programmer" that did this, just took an ordinary HTML4 page changed the paths to say xhtml1 (and probably not modifying the rest of the html at all). Instant XHTML!

     

    It exists just fine. From the dtd link itself:

       Extensible HTML version 1.0 Frameset DTD
    

    This is the same as HTML 4 Frameset except for
    changes due to the differences between XML and SGML.

    Namespace = http://www.w3.org/1999/xhtml

    For further information, see: http://www.w3.org/TR/xhtml1

    Copyright (c) 1998-2002 W3C (MIT, INRIA, Keio),
    All Rights Reserved.

    This DTD module is identified by the PUBLIC and SYSTEM identifiers:

    PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
    SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"

    $Revision: 1.2 $
    $Date: 2002/08/01 18:37:55 $



  • [quote user="growse"]It's a wtf because there are no frames on the site?
    [/quote]

    The frames DTD allows target= to be used. The target attribute is not found in the strict DTD.

     



  • [quote user="ikegami"]

    [quote user="growse"]It's a wtf because there are no frames on the site?
    [/quote]

    The frames DTD allows target= to be used. The target attribute is not found in the strict DTD. 

    [/quote]

    "target" also exists in the Transitional DTD.  The Frameset DTD requires there to be a frameset.



  • [quote user="iwpg"]The Frameset DTD requires there to be a frameset.[/quote]

    Yes, that is the WTF. A page with the XHTML 1.0 Frameset doctype isn't even supposed to have a body element! There should be no content on a page with such a doctype, only frames that contain content!

    <!DOCTYPE ...Frameset...>
    <html xlmns="...">
    <head>
    <title>...</title>
    </head>
    <frameset>
    <frame ... />
    <frame ... />
    </frameset>
    </html>

Log in to reply