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

Paul Benedict resolved STR-2598.
--------------------------------

    Resolution: Duplicate
      Assignee: Paul Benedict

Issue is resolved by commits against STR-2740. Added "xhtmlVersion" attribute 
to the <html:html> tag for XHTML 1.0, 1.1, 2.0, and 5.0.

> Support XHTML 1.1+ Output
> -------------------------
>
>                 Key: STR-2598
>                 URL: https://issues.apache.org/struts/browse/STR-2598
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Tag Libraries
>    Affects Versions: 1.2.7
>         Environment: Operating System: All
> Platform: All
>            Reporter: Xavier Vanderstukken
>            Assignee: Paul Benedict
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> 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.

Reply via email to