Is there a validator message that doesn't apply to you and that you don't want to see anymore? If so then there is a good chance that you can disable that message.
CSS HTML Validator is extremely configurable. Many validator messages can be individually disabled or the message type can be changed to suit your specific requirements.
For more information about disabling validator messages, please visit this documentation page:
https://www.htmlvalidator.com/current/d ... ssages.htm
If you don't want to disable a message but you want to change its type (like from error to warning or warning to error) then you can (in many cases) do that as well:
https://www.htmlvalidator.com/current/d ... _types.htm
Getting too many messages? Want to concentrate on only the most important messages? Try doing an 'Errors only' validation (Alt+2) that shows only error messages:
https://www.htmlvalidator.com/current/d ... _modes.htm
And if you want to get more advanced with more control, you can do that also (in the pro or higher edition) using TNPL scripts. See the "Disable Messages by Using TNPL (Advanced)" section at the bottom of this page:
https://www.htmlvalidator.com/current/d ... ssages.htm
HOW TO: Disable Validator Messages
- Albert Wiersch
- Site Admin
- Posts: 3783
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
HOW TO: Disable Validator Messages
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Re: HOW TO: Disable Validator Messages
Hi. I use the following in my IMG tags when sending code via email:
moz-do-not-send="true"
I have been unable to figure out how to add that to CSE so that it validates as right if done as above and wrong if there is an error in it.
I hope that made sense. Thank you.
moz-do-not-send="true"
I have been unable to figure out how to add that to CSE so that it validates as right if done as above and wrong if there is an error in it.
I hope that made sense. Thank you.
- Albert Wiersch
- Site Admin
- Posts: 3783
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
Re: HOW TO: Disable Validator Messages
Hello,Tadiew wrote: ↑Tue Mar 23, 2021 4:18 pm Hi. I use the following in my IMG tags when sending code via email:
moz-do-not-send="true"
I have been unable to figure out how to add that to CSE so that it validates as right if done as above and wrong if there is an error in it.
I hope that made sense. Thank you.
Thank you for bringing this attribute to my attention. The next update will simply ignore the "moz-do-not-send" attribute for "img" tags except when doing a 'standards-compliant check'.
If you'd like, I can make the new config file for this update available right away. Let me know if you'd like this.
If you want to 'validate' that attribute and make sure the value is 'true', then you can write a user function that checks this in the pro or higher edition. The function you can use is onStartTag_img(). I can assist with this if this is what you'd like to do.
https://www.htmlvalidator.com/2021/docs ... agname.htm
Finally, you should be able to simply ignore the error message for "moz-do-not-send" by right-clicking on the message and disabling it using 'Exact Text Match', per the documentation I posted a link to above:
https://www.htmlvalidator.com/current/d ... ssages.htm
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Re: HOW TO: Disable Validator Messages
Well, I guess I better buy the update before I ask for anything. Thank you very much for your help!
- DimitriAus
- Rank I - Novice
- Posts: 14
- Joined: Thu Sep 15, 2011 7:10 am
- Location: Sydney
Re: HOW TO: Disable Validator Messages
How to do the same from Batch Wizard output ?
- Albert Wiersch
- Site Admin
- Posts: 3783
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
Re: HOW TO: Disable Validator Messages
Hello,
To disable a message in the Batch Wizard output, you'll need to disable it in the editor. So bring up the document that generates the message you want to disable in the editor and disable it. It should then also be disabled in the Batch Wizard.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial