We can simplify the attr code by using getAttributeNode for everything in IE6/7
|Reported by:||timmywil||Owned by:|
Right now, the formHook(or the main hook for IE6/7 that uses getAttributeNode) is used in all of the cases that have been found to be absolutely necessary. The problem is, it's a lot of cases. Switching to getAttributeNode for everything in IE6/7 is safe, surprisingly removes the need for jQuery.attrFix completely (except to provide the tabIndex hook to both tabindex and tabIndex), and reduces the number of checks to see if getAttributeNode is needed. In IE6/7, getAttributeNode behaves almost exactly the same way as getAttribute in modern browsers.
Change History (5)
comment:4 Changed 5 years ago by timmywil
- Component changed from unfiled to attributes
- Priority changed from undecided to low