W3C home > Mailing lists > Public > www-validator@w3.org > May 2013

Re: Validating issue

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 30 May 2013 08:34:13 +0300
Message-ID: <51A6E4D5.4000809@cs.tut.fi>
To: Pieter de Vries <pieterdevries86@hotmail.com>
CC: "www-validator@w3.org" <www-validator@w3.org>
2013-05-29 23:50, Pieter de Vries wrote:

> I'm validating http://www.graszodengroningen.com and i received the
> following error:
>
> there is no attribute "target"

Thatís because the page declares the XHTML 1.0 Strict document type, 
which does not have that attribute-

> How can I make sure that the attribute target will be correct?|

You could declare the XHTML 1.0 Transitional document type instead:

<!DOCTYPE html
      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

This change may affect the browser mode. The details of doctype sniffing 
are messy; the compilation http://hsivonen.iki.fi/doctype/ is not quite 
up-to-date (itís table of browser modes does not cover currently used 
browsers).

So it might be better to just ignore this error message. Or maybe remove 
the attribute Ė it is seldom useful to try to force pages to open in a 
new window or a new tab.

Yucca
Received on Thursday, 30 May 2013 05:34:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC