• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cflayout does not validate in strict XHTML

Guest
Oct 12, 2011 Oct 12, 2011

Copy link to clipboard

Copied

Greetings

Is there a workaround for this?

# Error Line 6, Column 70: there is no attribute "align"

…ript">_cf_loadingtexthtml="<div align='center'><img src='/CFIDE/scripts/ajax/r…

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.

# Error Line 6, Column 78: document type does not allow element "div" here

…f_loadingtexthtml="<div align='center'><img src='/CFIDE/scripts/ajax/resources…

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

# Error Line 6, Column 142: required attribute "alt" not specified

…ign='center'><img src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

# Error Line 10, Column 9: end tag for "div" omitted, but OMITTAG NO was specified

</script><script type="text/javascript" src="/CFIDE/scripts/ajax/messages/cfmes…

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

# Info Line 6, Column 59: start tag was here

…text/javascript">_cf_loadingtexthtml="<div align='center'><img src='/CFIDE/scr…

Thanks.....

TOPICS
Advanced techniques

Views

770

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 03, 2011 Nov 03, 2011

Copy link to clipboard

Copied

LATEST

Could you show us an example of the cflayout code?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation