Re: [VE][81] Error Message Feedback

On Mon, 11 Oct 2004, Kevin May wrote:

> I get the following 
> Line 18, column 23: character ";" not allowed in attribute specification
> list
> for (i=0;i<rowlen;i++) {
> 
> Line 18, column 23: element "rowlen" undefined
> for (i=0;i<rowlen;i++) {
> You have used the element named above in your document, but the document
> type you are using does not define an element of that name. This error is
> often caused by incorrect use of the "Strict" document type with a document
> that uses frames (e.g. you must use the "Frameset" document type to get the
> "<frameset>" element), or by using vendor proprietary extensions such as
> "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the
> desired effect instead). 
> 
> Line 36, column 8: end tag for "rowlen" omitted, but OMITTAG NO was
> specified
> </script>
> 
> 
> when using a javascript for loop within my strict XHTML 1.0 code.
> 
> How can I avoid this validation error?

Use HTML instead of XHTML, or put the script in an external file (using 
the "src" attribute for "script"), or use rowlen>i instead of i<rowlen.  
Also see 

http://www.w3.org/TR/xhtml1/#h-4.8
http://www.w3.org/TR/xhtml1/#C_4

-- 
Liam Quinn

Received on Monday, 11 October 2004 23:17:42 UTC