You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/09/26 13:17:59 UTC

DO NOT REPLY [Bug 36813] New: - Invalid xhtml1.1 output

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36813>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36813

           Summary: Invalid xhtml1.1 output
           Product: Struts
           Version: 1.2.7
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: dev@struts.apache.org
        ReportedBy: xavan18@hotmail.com


Generated xhtml output is invalid when using xhtml="true" attribute for
html:html tags.

In the code of this tag :
if ((this.lang || this.locale || this.xhtml) && validLanguage) {
            sb.append(" lang=\"");
            sb.append(language);
            if (validCountry) {
                sb.append("-");
                sb.append(country);
            }
            sb.append("\"");
        }

So the output look like this :
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

Giving the following error during w3c validation :
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). /

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org