Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #17002
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Confused about window size |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | (1 earlier) <XnsA0FC5B5916FA2eejj99@194.109.133.133> <NsSdnXbM-rUcPBLNnZ2dnUVZ_oidnZ2d@westnet.com.au> <XnsA0FCAC96CD96Beejj99@194.109.133.133> <xqadnUaGppla_w3NnZ2dnUVZ_uWdnZ2d@westnet.com.au> <k6si4q$nt3$1@speranza.aioe.org> |
| Date | 2012-11-01 18:14 +0100 |
| Message-ID | <XnsA0FEB9A08516eejj99@194.109.133.133> (permalink) |
J.R. wrote on 01 nov 2012 in comp.lang.javascript: > On 30-10-2012 20:29, Andrew Poulos wrote: > <snip> > >>> ======================================= >>> <!DOCTYPE HTML> >>> >>> <script type='text/javascript'> >>> alert([window.document.documentElement.clientWidth, >>> window.document.documentElement.clientHeight]) >>> </script> >>> ======================================= Wrong attribution, I wrote that! > In IE, the HTML element (document.documentElement) is used for the > viewport in standards mode (also known as "strict mode") and the body > (document.body) is used in "quirks mode". No matter, as the Q was about viewpordt in mobile browsers. > document.documentElement.clientHeight (in strict mode) may output a > slightly different value from document.body.clientHeight (in quirks > mode). Mobile browsers, do they have a strict and a quircks mode. Methinks not, but have no proof. >> Sorry,my bad. I should've made it clearer that I'm using appMobi to >> create an android app from HTML5 pages. While I can get a HTML5 page >> to display the viewport size correctly it fails as an app. >> >> I was hoping it was just some misunderstanding on my part but now it >> seems to be a flaw in appMobi. > > Although you are supplying the HTML 5 Doctype (<!DOCTYPE HTML>), I > can't see if the page is rendered in strict mode. Maybe this appMobi > is doing something wrong. No, he did not suply that, I used the HTML 5 Doctype. Again, this test is only ment for mobie browsers. > See: > <http://www.quirksmode.org/mobile/viewports.html> > <http://www.cinsoft.net/viewport.asp> Inconsequential. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Confused about window size Andrew Poulos <ap_prog@hotmail.com> - 2012-10-30 18:02 +1100
Re: Confused about window size "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-30 08:58 +0100
Re: Confused about window size Andrew Poulos <ap_prog@hotmail.com> - 2012-10-30 20:44 +1100
Re: Confused about window size "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-30 16:57 +0100
Re: Confused about window size Andrew Poulos <ap_prog@hotmail.com> - 2012-10-31 10:29 +1100
Re: Confused about window size "J.R." <groups_jr-1@yahoo.com.br> - 2012-10-31 22:09 -0300
Re: Confused about window size "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-11-01 18:14 +0100
Re: Confused about window size David Mark <dmark.cinsoft@gmail.com> - 2012-10-30 01:39 -0700
csiph-web