Path: csiph.com!.POSTED.188.120.216.11!not-for-mail From: Cezary Tomczyk Newsgroups: comp.lang.javascript Subject: Re: Element ids as global names Date: Thu, 14 Feb 2019 17:11:45 +0100 Organization: csiph.com Internet News Service Message-ID: References: <18pygd4tukp3u.1i0v2p2nfrl0d.dlg@40tude.net> <3c6e5038-3558-8396-8322-54ed773696aa@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 14 Feb 2019 16:11:45 -0000 (UTC) Injection-Info: csiph.com; posting-host="188.120.216.11"; logging-data="81817"; mail-complaints-to="admin@kev009.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.javascript:36018 On 14/02/2019 14:01, Evertjan. wrote: > Jon Ribbens wrote on 14 Feb 2019 in > comp.lang.javascript: > >> On 2019-02-14, Thomas 'PointedEars' Lahn wrote: >>> Jon Ribbens wrote: >>>> * as an illustration, the window object has 771 properties in >>>> Firefox 65, 827 in Chrome 71, 819 in Chrome 72 and 821 in >>>> Chrome 73. >>> >>> How did you obtain these figures? >> >> I opened "about:blank" in a browser and ran the following in the >> browser console: >> >> Object.getOwnPropertyNames(window).length >> >> I figured this would give good enough figures to illustrate the >> point that 'window' has a *lot* of properties and that the list of >> them is not standardised and varies a lot. > > 919 on my Chrome 72 > Chrome MacOS 72.0.3626.109 (Official Build) (64-bit): 1049 -- Cezary Tomczyk http://www.ctomczyk.pl/