[
https://issues.apache.org/jira/browse/VELTOOLS-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christopher Schultz resolved VELTOOLS-152.
------------------------------------------
Resolution: Fixed
Fix Version/s: 2.1
2.0.x
> ValidatorTool generates invalid XHTML even when in XHTML mode
> -------------------------------------------------------------
>
> Key: VELTOOLS-152
> URL: https://issues.apache.org/jira/browse/VELTOOLS-152
> Project: Velocity Tools
> Issue Type: Bug
> Components: VelocityStruts
> Affects Versions: 2.0
> Reporter: Christopher Schultz
> Assignee: Christopher Schultz
> Fix For: 2.0.x, 2.1
>
>
> When using the validator tool in XHTML mode, the main "validate" method emits
> code like this:
> function validateMyForm(form) {
> if (bCancel)
> return true;
> else
> {
> var formValidationResult; formValidationResult = validateInteger(form) &&
> validateRequired(form) && validateMaxLength(form) && validateMask(form) &&
> validateIntRange(form);
> return (formValidationResult == 1);
> }
> Note the use of bare "&" characters, which is not valid XHTML.
> Most web browsers will ignore this little quirk unless they are in XML
> parsing mode (usually enabled by setting the content-type to
> "application/xhtml+xml").
> Here is a reference to the discussion on the user list:
> http://markmail.org/thread/jtuqduopuikwtvqm
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]