xdiepx Posted January 30, 2014 Share Posted January 30, 2014 I am new to Phaserjs and i have tried to create a stage or a game using the following code var stage = new Phaser.Game(1024,768,Phaser.AUTO,'mainCanvas'); However i keep getting these following message in my console: body.scrollTop is deprecated in strict mode. Please use 'documentElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mode. body.scrollLeft is deprecated in strict mode. Please use 'documentElement.scrollLeft' if in strict mode and 'body.scrollLeft' only if in quirks mode. Phaser v1.1.4 - Renderer: WebGL - Audio: WebAudio any ideas of what it is? Link to comment Share on other sites More sharing options...
rich Posted January 31, 2014 Share Posted January 31, 2014 Quirks mode is to do with the html document type. Also I've fixed the above error in the dev branch, but probably not in the version in the build folder. Link to comment Share on other sites More sharing options...
xdiepx Posted January 31, 2014 Author Share Posted January 31, 2014 Oh right, I thought I was doing something wrong. Thanks Link to comment Share on other sites More sharing options...
jerome Posted February 2, 2014 Share Posted February 2, 2014 I confirm the same problem now happens on Chromium 32 (same console log) and FF26 (OS : Linux ubuntu 12.04) exemple :http://gametest.mobi/phaser/examples/_site/view_full.html?d=games&f=invaders.js&t=invaders The tileSprite 'background2.png' is well downloaded but can't be vertically scrolled. It's even not displayed. Chromium log :body.scrollTop is deprecated in strict mode. Please use 'documentElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mode.body.scrollLeft is deprecated in strict mode. Please use 'documentElement.scrollLeft' if in strict mode and 'body.scrollLeft' only if in quirks mode.Phaser v1.1.3 - Renderer: WebGL - Audio: WebAudio phaser.min.js:5 Not tested on dev branch Link to comment Share on other sites More sharing options...
CaueCR Posted March 21, 2014 Share Posted March 21, 2014 From what I've learned, quirks mode is a compatibility mode for old browsers. When the browser is old and finds something in your code that he does not support, your HTML page should enters Quirks Mode (That is, if you said that she must).What the console is telling you, is that Phaser is using an method that is too old (and that is risky, because if the new browsers decide to stop giving support to old methods, that part of Phaser will stop working). That's why it says you should use that old method only in quirks mode. Link to comment Share on other sites More sharing options...
rich Posted March 21, 2014 Share Posted March 21, 2014 That is also why you should keep Phaser up to date. Because we address things like this as that happen CaueCR 1 Link to comment Share on other sites More sharing options...
Recommended Posts