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
The attributes have a specified property which is true if the attribute was specified in the HTML source or explicitly set by script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With