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=34027>.
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=34027

           Summary: org.apache.struts.taglib.FormTag.java does not render
                    XHTML-Strict valid output when in XHTML mode
           Product: Struts
           Version: 1.2.6 Beta
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Custom Tags
        AssignedTo: dev@struts.apache.org
        ReportedBy: [EMAIL PROTECTED]


FormTag.renderFormStartElement does not check isXhtml() before outputting a 
'name' attribute, which 
is not a valid tag in XHTML-Strict.

Patch:

--- FormTag.java.orig    2005-03-15 17:39:55.246044246 -0500
+++ FormTag.java        2005-03-15 17:41:04.177935225 -0500
@@ -475,7 +475,9 @@
         StringBuffer results = new StringBuffer("<form");
 
         // render attributes
-        renderName(results);
+        if (!this.isXhtml()) {
+            renderName(results);
+        }
         renderAttribute(results, "method", getMethod() == null ? "post" : 
getMethod());
         renderAction(results);
         renderAttribute(results, "accept-charset", getAcceptCharset());

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to