Bug 25497

Summary: Input tags generate invalid XHTML,
Product: Taglibs Reporter: Ben Meadowcroft <apache>
Component: Input TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: All   
OS: other   
Attachments: Checkbox input taglib patch
Input Form taglib patch
Input Option taglib patch
Input Radio taglib patch
Input Select taglib patch

Description Ben Meadowcroft 2003-12-13 10:20:10 UTC
The input tags for forms, options, selects, radio buttons and check boxes all
generate invalid XHTML due to using selected="true" style or similar. See
http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.11 for more info.

examples:
action="GET" instead of action="get"
encType="..." instead of enctype="..."
selected="true" instead of selected="selected"
checked="true" instead of checked="checked"

Generating these values creates invalid XHTML (and I don't think the ="true"
syntac is valid HTML either).
Comment 1 Ben Meadowcroft 2003-12-13 10:22:51 UTC
Created attachment 9555 [details]
Checkbox input taglib patch
Comment 2 Ben Meadowcroft 2003-12-13 10:24:40 UTC
Created attachment 9556 [details]
Input Form taglib patch
Comment 3 Ben Meadowcroft 2003-12-13 10:25:04 UTC
Created attachment 9557 [details]
Input Option taglib patch
Comment 4 Ben Meadowcroft 2003-12-13 10:25:25 UTC
Created attachment 9558 [details]
Input Radio taglib patch
Comment 5 Ben Meadowcroft 2003-12-13 10:25:45 UTC
Created attachment 9559 [details]
Input Select taglib patch
Comment 6 Ben Meadowcroft 2003-12-13 10:33:11 UTC
These modifications may affect the following bugs, 12688 and 11992, which assert
that the select="true" syntax is required for XSLT pages. XSLT (and XPath) does
not suffer this limitation as far as I am aware and I believe this assertion is
incorrect and leads to the creation of invalid pages (meaning that the produced
XHTML page could not be processed with a validating parser).
Comment 7 Karl von Randow 2004-10-26 22:20:29 UTC
Tag changes finally committed to support XHTML strict