"target=" in Strict DTD

From: Glyn Williams (Glyn.Williams@Synergy-Logistics.co.uk)
Date: Wed, May 30 2001

  • Next message: Brian Gilkison: "Re: "target=" in Strict DTD"

    Message-ID: <60779EBEFA89D311859300105A420FFB1C5D68@SYNDICATE>
    From: Glyn Williams <Glyn.Williams@Synergy-Logistics.co.uk>
    To: "'www-validator@w3.org'" <www-validator@w3.org>
    Date: Wed, 30 May 2001 15:16:55 +0100
    Subject: "target=" in Strict DTD
    
    I have a little problem - I'm not sure whether its a problem with the
    validator, or with the HTML spec, or with my understanding of one or both of
    them.
    
    My website is written for the most part without frames, and with stylesheets
    - an ideal candidate (I imagined) to try to get to conform to HTML 4.01
    strict DTD.
    
    I know my site is often displayed within a frame (by my "web diversion"
    service), and it is therefore logical that any access to external links (not
    on my site) should "break out" of the frame by using 'target="_top"' in the
    anchor start tag. I also sometimes use 'target="_blank"' when accessing
    sites that I know to give problems with the browser "Back" button.
    
    Problem is, the HTML validator tells me that "target=" is not allowed with
    strict DTD, only with frameset. Just changing the doctype statement on its
    own will not work, as it then complains that I should have a "frameset"
    instead of a "body". Since I do not really wish to rewrite all my html in
    frames form do you have any suggestions for a way round this, that would
    still validate correctly?
    
    A related problem is the HTML file representing the content of a particular
    frame (where I have used them), which in its present form doubles as the
    file that can be accessed by browsers without frames capability. Would I
    need to have two versions of this file in order to get a satisfactory
    validation?
    
    Thanks for any help, and my apologies if I am missing something obvious.
    Glyn Williams
    
    
     ---------------------------------------------------------------------------
    
    The information transmitted is intended only for the person or entity to 
    which it is addressed and may contain confidential and/or privileged
    material.
    Any views or opinions presented in this Email message are solely those 
    of the author and do not necessarily represent those of Synergy 
    Logistics Limited  unless specifically stated. 
    Email communications are not necessarily secure and therefore 
    Synergy Logistics Limited does not accept legal responsibility for the 
    contents of this message. 
    If you are not the intended recipient and have received this message in 
    error, Please notify Synergy Logistics Limited immediately. 
    
             Synergy Logistics Ltd. 01509 232706