It is the same behavior if I remove the locale attribute.
I also found no valid javascript in the page :
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
What generates that script because the struts validator javascript scripts are
well formed :
<script type="text/javascript">
//<![CDATA[
var bCancel = false;
function validateUserForm(form) {
Laurie Harper wrote:
Note that the 'locale' attribute is deprecated. What happens if you
remove it? I think that might be what's causing the 'lang' attribute
to be generated.
L.
Xavier Vanderstukken wrote:
In the top on my jsp page :
<html:html xhtml="true" locale="true">
The generated html page looks like that :
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
--> 2lang attributes
and the w3c validation fails :
/Result:
Failed validation, 1 error
/
/
Error /Line 8 column 48/: there is no attribute "lang"./
/|<html xmlns="http://www.w3.org/1999/xhtml" lang=*"*fr-BE"
xml:lang="fr-BE">|/
/ 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./
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]