W3C home > Mailing lists > Public > www-validator@w3.org > January 2010

Re: Validation code on the site.

From: David Dorward <david@dorward.me.uk>
Date: Mon, 18 Jan 2010 10:32:37 +0000
Cc: www-validator@w3.org
Message-Id: <B1020AF3-2548-4631-8236-4ED03898A5E8@dorward.me.uk>
To: Служба Поддержки Secret-Idea.com <support@secret-idea.com>

On 17 Jan 2010, at 01:07, Служба Поддержки Secret-Idea.com wrote:
> 
> Line 21, Column 71: required attribute "alt" not specified:
> … width="15" height="15" border="0" />
> 
> Perhaps the symbol ">" indicates a missing indication of "alt"

The validator didn't know the attribute was missing until it reached the end of the tag, so it highlights the end of the tag. Insert a suitable alt attribute there.

> , but then that means the error:
> 
> Line 239, Column 31: document type does not allow element "script" here:
> <script type="text/javascript">
> 
> in which the symbol ">" is also highlighted in red?


The validator processes entire tags before reporting errors about a particular element being allowed as a child of another element. You can't have a script element as a child of an html element.

-- 
David Dorward
http://dorward.me.uk
Received on Monday, 18 January 2010 10:33:16 GMT

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