Re: Validation code on the site.

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 UTC