Joomla contact form doesn't pass W3C validation
Posted
by
aramaz
on Stack Overflow
See other posts from Stack Overflow
or by aramaz
Published on 2010-12-30T18:39:44Z
Indexed on
2010/12/30
19:53 UTC
Read the original article
Hit count: 222
Hi,
I get the following error when I try to validate a contact page on my site:
document type does not allow element "script" here
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).
I am using Joomla 1.5.7, and the doctype is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Any idea how to fix this?
© Stack Overflow or respective owner