0

I am using jQuery version 1.7.2

I found these lines in Google Chrome Developer Tools:

body.scrollTop is deprecated in strict mode. Please use 'documentElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mode. jquery-1.7.2.min.js:4
body.scrollLeft is deprecated in strict mode. Please use 'documentElement.scrollLeft' if in strict mode and 'body.scrollLeft' only if in quirks mode. jquery-1.7.2.min.js:4
event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery-1.7.2.min.js:3

Is that an error or is it normal? Does it affect my website?

André Alves
  • 6,535
  • 3
  • 17
  • 23
Kodr.F
  • 13,932
  • 13
  • 46
  • 91

2 Answers2

0

The problem you are facing is general one for chrome.....it uses body.scrollTop to represent the view-port's scroll position in standards mode.

Possible reason i can think of is that the makers of chrome want the developers to switch to more formal or universal style of coding....as for other browsers like Mozilla, I don't think your problem would be there (have you checked in other browsers too !!? looks fine on my mozilla.

Try this Fix

Milind Anantwar
  • 81,290
  • 25
  • 94
  • 125
0

No it is not a problem. It is just a suggestion. Although it is a best practice to use the latest version of jQuery. So in my opinion you should update to the latest version.