-
-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature-request] Ignore validation for certain values #415
Comments
I'm glad you find this repository helpful. I'll try to address your issue ASAP. You can watch the repo for new changes or star it. |
I believe the only issue here is |
Thank you very much for your fast reply! It seems that none of them is the issue, though I wonder if validator should complain about both. Ampersand is also a special symbol and perhaps validator should not allow ampersand after ampersand. Validator can validate both cases. |
Validator is not giving error for both of the examples currently. So, yes, it is a bug. And I believe it's quite easy to fix. |
I'm leaving the bug open for sometimes, if someone want to try to fix it. Changes are required in validator.js:322. I believe current regular expression can't be fixed. So the function I'm even wondering if the validator code slowly can be merged to parser. 🤔 |
Description
It would be great if validator skipped certain expressions.
A case I noticed this could be useful is a framework that allows using javascript expressions as attribute values in XML.
The format is usually like this:
As you can see, there is the case of using XML special characters for different functionality.
I wonder if validator could be instructed to skip validation of attribute values using a regular expression.
The text was updated successfully, but these errors were encountered: