Ticket #2548 (closed enhancement: fixed)
|Reported by:||flesler||Owned by:|
I really think something is not right, with the way attr works. You need a huge hash ($.props) to store names, where most of them are xyz: xyz, still, many users complain that attr doesn't return the expected value.
I'll attach a proposal that gives priority to DOM 0 methods, that are, in the end, oftenly used (scrollLeft, parentNode, etc). It also includes a fix for ticket 2537, where attr returns undefined when it should return 0.
Also slightly optimizes the amount of code.