JavaScript Tutorial - attributes property of HTMLElement objects
У вашего броузера проблема в совместимости с HTML5
attributes property is defined on the Element interface.
[SameObject] readonly attribute Attr[] attributes;
The attributes attribute must return a read only array of the context object's attribute list. The returned read only array must be
live. I.e. changes to the associated attributes are reflected.
Elements also have an ordered attribute list. Unless explicitly given when an element is created, its attribute list is empty. An
element has an attribute A if A is in its attribute list.
interface Attr {
readonly attribute DOMString localName;
attribute DOMString value;
readonly attribute DOMString name;
readonly attribute DOMString? namespaceURI;
readonly attribute DOMString? prefix;
};
https://github.com/webtunings
https://www.facebook.com/pages/WebTunings/339234242822202
I highly recommend this book for beginners as well as advanced programmers:
http://www.amazon.com/gp/product/0596805527/ref=as_li_qf_sp_asin_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0596805527&linkCode=as2&tag=webtuningscom-20