[ http://issues.apache.org/jira/browse/VALIDATOR-210?page=all ]

Niall Pemberton resolved VALIDATOR-210.
---------------------------------------

    Fix Version/s: 1.3.1
       Resolution: Fixed
         Assignee: Niall Pemberton

Fixed thanks!

http://svn.apache.org/viewvc?view=rev&revision=478518

You will be able to test this out by dowloading the next nightly build:

http://people.apache.org/builds/jakarta-commons/nightly/commons-validator/

> Generated JavaScript Causes HTML Page to Contain Illegal HTML
> -------------------------------------------------------------
>
>                 Key: VALIDATOR-210
>                 URL: http://issues.apache.org/jira/browse/VALIDATOR-210
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: JavaScript
>    Affects Versions: 1.3.0 Release
>         Environment: All
>            Reporter: Neil Sherman
>         Assigned To: Niall Pemberton
>            Priority: Minor
>             Fix For: 1.3.1
>
>
> Various JavaScript functions contain JavaDoc comments at the start such as:
>      /*$RCSfile: validateMaxLength.js,v $ $Rev: 376673 $ $Date: 2006-02-10 
> 13:42:31 +0000 (Fri, 10 Feb 2006) $ */
>      /**
>      * A field is considered valid if less than the specified maximum.
>      * Fields are not checked if they are disabled.
>      * <p>
>      * <strong>Caution:</strong> Using <code>validateMaxLength</code> on a 
> password field in a
>      *  login page gives unnecessary information away to hackers. While it 
> only slightly
>      *  weakens security, we suggest using it only when modifying a 
> password.</p>
>      * @param form The form validation is taking place on.
>      */
>      function validateMaxLength(form) {
> This causes the W3C tidy application to report the following:
>  "<" + "/" + letter not allowed here
>  Cause:
>  The 2 characters "</" have been detected in a wrong place.
>  Solution:
>  In most case, this is due to wrong javascript:
>  BAD   <document.write("</h1>");
>  GOOD  <document.write("<\/h1>");
>  References:
>  W3C faq: http://validator.w3.org/docs/help.html#faq-javascript
>  HtmlHelp: http://www.htmlhelp.com/tools/validator/problems.html#script
> And thus produces illegal HTML.
> The proposed solution is to remove the offending tags.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.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]

Reply via email to