« Return to Thread: [jira] [Created] (VELTOOLS-152) ValidatorTool generates invalid XHTML even when in XHTML mode

[jira] [Created] (VELTOOLS-152) ValidatorTool generates invalid XHTML even when in XHTML mode

by Velocity - Dev mailing list-2 :: Rate this Message:

| View in Thread

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


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-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: [jira] [Created] (VELTOOLS-152) ValidatorTool generates invalid XHTML even when in XHTML mode