Have to validate twice to get warnings?

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Have to validate twice to get warnings?

Postby Lee » Wed Jan 12, 2011 2:25 pm

I have used CSE HTML Validator for years but have never had this issue, that I know of, before. I just downloaded that latest pro version and am using it as it comes, I haven't changed any settings. Under "Validate" - "full" is checked.

I have several files that are all the same except they show different addresses and different pictures for different branches of our company. I went through and validated approx. 6 of the files and all came back fine - "congratulations you have no errors or warnings". Great. I get to the next one and I guess I must have pressed validate twice because I got the warning Message [117] telling me that my image height and width values are different than the actual image.

This confused me because as I said, all the other files use the same size image and same coding and it occurred to me that they are all different sizes than the values show in their files too - but I didn't get the warning with them. So I open one of them up again, validate, and get "congratulations" again. I hit validate again, and low and behold, I get the two [117] warnings about image size. I went through and did this with all 13 files and all files came through fine on first click of "validate" but with the warnings on a second click :? . No other changes were made.

Why is this happening? Is there something that changes with multiple clicks of "validate"? Now I feel like I should go back over the few hundred files I've put through and make sure I double and triple click validate to see what shows up even though they all validated fine the first time through.

Thanks for any help you can offer.
Lee
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Wed Jan 12, 2011 2:10 pm

Re: Have to validate twice to get warnings?

Postby Albert Wiersch » Wed Jan 12, 2011 3:11 pm

Hi Lee,

Sorry for the confusion. I've added a note to the flag 117 description in the documentation that should explain this:
NOTE: Image dimensions checks are only made when the needed information (the actual image dimensions) are immediately available. Because of this, any messages generated may not be generated on the first validation, but instead may be generated on subsequent validations after the link checker (which runs in the background after the validation is complete) has obtained the actual image dimensions.

I hope this explains what is happening and how this particular check works.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Have to validate twice to get warnings?

Postby Lee » Wed Jan 12, 2011 3:16 pm

That makes total sense - thanks for the quick response!
Lee
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Wed Jan 12, 2011 2:10 pm


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest