W3C home > Mailing lists > Public > public-webplatform@w3.org > July 2014

Javascript data types

From: Rob^_^ <iecustomizer@hotmail.com>
Date: Mon, 14 Jul 2014 18:35:31 +1000
Message-ID: <BLU168-DS507F352389BC5852D29553D40A0@phx.gbl>
To: "List WebPlatform public" <public-webplatform@w3.org>
Hi,

re: http://docs.webplatform.org/wiki/dom/Range/cloneRange

as Range and RangeError are not in the list at http://docs.webplatform.org/wiki/Property:Javascript_data_type

I end up with a nonsense Return Value description....

“Returns an object of type Object” 
[object Range]

I am pressed for time, so I have flagged the item as almost ready.... awaiting Range object to js data-types.

Comments/Advice?

...seems to me that the js object types should be open to editor discretion as ‘objects’ can be anything one wants....

var WPO={‘toString’:function(){return ‘[object WPO]’;}}

there are ‘core’ data-types... number, date, boolean, string, regex and Array, but what were once ‘object’ can now be [object Anything]

eg. var test=2; typeof test returns ‘number’

Regards.
Received on Monday, 14 July 2014 08:36:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:21:02 UTC