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

DOM, JavaScript, and Browser differences

P: n/a
I am looking for more information on what browsers do with HTML
elements. I noticed that in Firefox after grabbing an html element
through a dom method (getElementById was what i used) you can do
things that you can't do in IE. For instance. I can use a For in
loop with the element, there is a constructor property attached with
the element, and doing a toString I can find out what type of element
it is [object HTMLInputElement] (or something like that). These are
things that I can not do in IE. I am looking to get more information
on this. Any site that explains these differences? Anyone can
elaborate on this for me?

Feb 12 '07 #1
Share this Question
Share on Google+
2 Replies

P: n/a
NeoAlchemy wrote:
I am looking for more information on what browsers do with HTML
elements. I noticed that in Firefox after grabbing an html element
through a dom method (getElementById was what i used) you can do
things that you can't do in IE. For instance.
I can use a For in
loop with the element,
I am sure IE allows you to use for..in too. But if you do a for..in with
a host object then it depends on the implementation of the host object
which properties are enumerable respectively whether there are any
enumerable properties.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Feb 12 '07 #2

P: n/a
On Feb 12, 7:23 am, Martin Honnen <mahotr...@yahoo.dewrote:
I am sure IE allows you to use for..in too. But if you do a for..in with
a host object then it depends on the implementation of the host object
which properties are enumerable respectively whether there are any
enumerable properties.
Is there any place that talks about the implementations for the host
objects for different browsers?

Feb 16 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.