tags:

views:

97

answers:

1

Hi,

I am using "node.attributes" to retrieve all the attributes of a DOM node using JavaScript in IE. It gives me additional attributes which are not specified in the source .In Firefox it gives only those which are specified in html source (which is expected).

is there any way to retrieve "only the attributes" of a DOM elements which are specified in its HTML source in IE?

Thanks in advance.

-Sourabh

+5  A: 

The attributes have a specified property which is true if the attribute was specified in the HTML source or explicitly set by script.

NickFitz
Thanks NickFitz. That solved my problem.
Sourabh
Marking helpful for correct answer.
coderjoe