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

Christopher Schultz reopened VELTOOLS-152:
------------------------------------------


So, this doesn't fix the issue properly.

What I did was essentially change '&' to '&amp', but that's not appropriate 
unless the page is actually in XML rendering mode, not just XHTML.

This needs a more nuanced fix.

                
> 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: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to