By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,247 Members | 1,427 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,247 IT Pros & Developers. It's quick & easy.

an Exception with IE7, Wrong number of arguments

P: n/a
hi guys,

I have XML node object o,and I am trying to know if getAttribute is a
function in the object o, by using
if(typeof o.getAttribute == 'function'), now firefox returns "function", but
IE returns it as "unknown",
when I tried to access the property as o.getAttribute , it through an
exception as :
"Wrong number of arguments or invalid property assignment".

any help ?

thanks.

Hamza

Jan 9 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
alhalayqa wrote:
I have XML node object o,and I am trying to know if getAttribute is a
function in the object o, by using if(typeof o.getAttribute ==
'function'), now firefox returns "function", but IE returns it as
"unknown", when I tried to access the property as o.getAttribute , it
through an exception as : "Wrong number of arguments or invalid property
assignment".

any help ?
I get the same results here. The questions is: why would you attempt to get
the value of a host object's method? The result in IE, as odd as it may
seem, complies with the ECMAScript Specification which says that a host
object may implement the internal [[Get]] method "in any manner" (ES3 Final,
section 8.6.2).

BTW, your From and Message-ID headers do not comply with Internet standards;
please fix that. Also, you should avoid manual word-wrap in automatically
wrapped text; it reduces the legibility of your postings.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Jan 9 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.