From: Asen Bozhilov on 22 Mar 2010 12:19 Thomas 'PointedEars' Lahn wrote: > Yes, they botched this one. On the other hand, the key words here might be > "semantics ... fully defined". Semantics of native objects is defined in "8.6 The Object Type". If some object has different behaviour from described by specification it's a host object.
From: Thomas 'PointedEars' Lahn on 22 Mar 2010 13:19 Asen Bozhilov wrote: > Thomas 'PointedEars' Lahn wrote: >> Yes, they botched this one. On the other hand, the key words her >> might be "semantics ... fully defined". > > Semantics of native objects is defined in "8.6 The Object Type". If > some object has different behaviour from described by specification > it's a host object. Not true; your logic is flawed, because (A --> B) <=/=> (B --> A). What is true is that host objects *do* *not* *need* *to* implement the internal properties and methods as their specified algorithms describe, but they do need to implement those properties and methods (8.6.2), and they MAY implement them as specified. PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
From: John G Harris on 22 Mar 2010 16:17 On Sun, 21 Mar 2010 at 13:29:22, in comp.lang.javascript, Peter Michaux wrote: >On Mar 20, 6:00�pm, "FAQ server" <javascr...(a)dotinternet.be> wrote: >> ----------------------------------------------------------------------- >> FAQ Topic - What are object models? >> ----------------------------------------------------------------------- <snip> >1) This is not a frequently asked question. There's only one kind of question that's asked frequently here. It goes like this : Q Why doesn't this code do what I expect ... ? A Because javascript isn't like that ... Today's thread about arrays is a good example. <snip> >I think this FAQ entry should be removed. I disagree. <FAQENTRY> That said, I think this FAQ topic could do with one or two extra sentences at the front saying what an Object Model is. The current text says what it is not, and what it allows you to do, but no more. John -- John Harris
From: Asen Bozhilov on 22 Mar 2010 17:10 Thomas 'PointedEars' Lahn wrote: > What is true is that host objects *do* *not* *need* *to* implement the > internal properties and methods as their specified algorithms describe, > but they do need to implement those properties and methods (8.6.2), and > they MAY implement them as specified. It's not true. Specification is completely about this case: | 8.6.2 | The following table summarises the internal properties | used by this specification. The description indicates their | behaviour for native ECMAScript objects. | Host objects may implement these internal methods with any | implementation-dependent behaviour, or it may be | that a host object implements only some internal methods and | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | not others. ^^^^^^^^^^^^ Native objects should follow specification in "8.6.2" and if they differ from that behavior, they are host objects. Think about it.
From: Dr J R Stockton on 22 Mar 2010 14:21
In comp.lang.javascript message <41a8ac2a-6368-4a40-87ab-842a3f0c7fec(a)e1 g2000yqh.googlegroups.com>, Sun, 21 Mar 2010 15:42:33, Peter Michaux <petermichaux(a)gmail.com> posted: >On Mar 21, 4:02�pm, Garrett Smith <dhtmlkitc...(a)gmail.com> wrote: >> Potential alternative question: >> "What is a host object?" > >That is a way better question and the answer will be much more >valuable. "DOM" is commonly used in the group - over 10% of the articles currently in my newsbase include the acronym - and should be explained in the FAQ. -- (c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME. Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links. Proper <= 4-line sig. separator as above, a line exactly "-- " (RFCs 5536/7) Do not Mail News to me. Before a reply, quote with ">" or "> " (RFCs 5536/7) |