You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2006/11/26 06:22:57 UTC
[jira] Updated: (STR-2598) Support xhtml1.1 output
[ http://issues.apache.org/struts/browse/STR-2598?page=all ]
Paul Benedict updated STR-2598:
-------------------------------
Bugzilla Id: (was: 36813)
Component/s: Taglibs
(was: Unknown)
Assignee: (was: Struts Developers)
> Support xhtml1.1 output
> -----------------------
>
> Key: STR-2598
> URL: http://issues.apache.org/struts/browse/STR-2598
> Project: Struts 1
> Issue Type: Improvement
> Components: Taglibs
> Affects Versions: 1.2.7
> Environment: Operating System: All
> Platform: All
> Reporter: Xavier Vanderstukken
> Priority: Minor
>
> 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). /
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira