Re: Javascript data types

Hi, Rob!

There is a Range object in the spec.[1] So I would add it. But where? I noticed the ES6 draft separates out the language & specification types.[2]

Maybe we should have a separate type section for specifications?

What do others think?

J

[1] http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ecma-script-binding.html

[2] https://people.mozilla.org/~jorendorff/es6-draft.html (see table of contents)

-------------------
Julee Burdekin
Content Strategist
Adobe Web Platform
@adobejulee
julee@adobe.com

From: Rob^_^ <iecustomizer@hotmail.com<mailto:iecustomizer@hotmail.com>>
Date: Monday, July 14, 2014 at 1:35 AM
To: WebPlatform Public List <public-webplatform@w3.org<mailto:public-webplatform@w3.org>>
Subject: Javascript data types
Resent-From: WebPlatform Public List <public-webplatform@w3.org<mailto:public-webplatform@w3.org>>
Resent-Date: Monday, July 14, 2014 at 1:36 AM

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 17:34:27 UTC