HOW TO: Disable Validator Messages

Post here if your topic is about CSS HTML Validator but doesn't fit in another forum.
Post Reply
User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3589
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

HOW TO: Disable Validator Messages

Post by Albert Wiersch »

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, 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

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
Tadiew
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 2
Joined: Mon Dec 03, 2007 4:02 pm

Re: HOW TO: Disable Validator Messages

Post by Tadiew »

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.
User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3589
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: HOW TO: Disable Validator Messages

Post by Albert Wiersch »

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.
Hello,

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
Tadiew
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 2
Joined: Mon Dec 03, 2007 4:02 pm

Re: HOW TO: Disable Validator Messages

Post by Tadiew »

Well, I guess I better buy the update before I ask for anything. Thank you very much for your help!
Post Reply