W3C home > Mailing lists > Public > www-validator@w3.org > October 2002

Re: <A target="_blank"> bug?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 26 Oct 2002 14:40:16 +0200
To: ian@lemnet.com
Cc: www-validator@w3.org
Message-ID: <3de98ccc.83295272@smtp.bjoern.hoehrmann.de>

* Ian Thomas wrote:
>I have a page with a doctype of HTML 4.01 Strict, containing the tag:
><A target="_blank" href="foo">
>
>According to the HTML4 spec:
>http://www.w3.org/TR/1998/REC-html40-19980424/present/frames.html#target-info
>
>and the FAQ:
>http://www.htmlhelp.com/faq/html/links.html#new-window
>
>this is the correct syntax to use. However, the validator throws up an 
>error:
>"Error: there is no attribute "TARGET" for this element (in this HTML 
>version)"

>Is this a bug in the validator, or is the FAQ & spec wrong?

Take a look at <http://www.w3.org/TR/html4/index/attributes.html>. You
will note that HTML 4.01 *Strict* does not include the target attribute,
HTML 4.01 Transitional does. Either use Transitional or remove the
target attribute.
Received on Saturday, 26 October 2002 08:40:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT