Subj : Rhino/E4X: what should typeof return for an XMLList object? To : netscape.public.mozilla.jseng From : Martin Honnen Date : Wed Aug 11 2004 08:19 pm When trying to use typeof with the Rhino preview for E4X I get the following result: js> var xmlList = new XMLList("Kibo<\/god>Xibo<\/god>"); js> typeof xmlList xml js> xmlList instanceof XML false js> xmlList instanceof XMLList true The specification seems to be ambigious as to what should be returned as section 11.3.2 The typeof Operator says in its text When UnaryExpression evaluates to a value of type XMLList, the typeof operator returns the string "xmllist". while the table defining the results says Type Result XML "xml" XMLList "xml" so Rhino is doing the right thing according to the table but the wrong thing according to the text. Is there an errata for the specification that clears that up? -- Martin Honnen http://JavaScript.FAQTs.com/ .