Dhliwayo

W3C Validation

Discussion created by Dhliwayo on Nov 7, 2011
Latest reply on Nov 8, 2011 by Dhliwayo
I have a site built using JSAPI which I need to validate using http://validator.w3.org/. Unfortunately I get errors right at the start of the html document for example this line
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
gives the error
"# Warning Line 4, Column 76: NET-enabling start-tag requires SHORTTAG YES

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

â??

The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
"


And I have 40 of these errors some of which refer to dojo attributes being unrecognised eg.

# Error Line 35, Column 33: there is no attribute "DOJOTYPE"

<input dojoType="dijit.form.RadioButton" checked="checked" onClâ?¦

â??

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. 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 "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


Has anyone successfully validated a JSAP version 2.5 app using W3C validator or its an impossible task?

Thank you very much,
Lawrence

Outcomes