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 2007/08/27 04:58:34 UTC

[jira] Updated: (STR-2598) Support xhtml1.1 output

     [ https://issues.apache.org/struts/browse/STR-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict updated STR-2598:
-------------------------------

    Fix Version/s: Future

Adding an xhtmlVersion attribute probably makes sense.

> Support xhtml1.1 output
> -----------------------
>
>                 Key: STR-2598
>                 URL: https://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
>             Fix For: Future
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.