Opened 11 years ago
Closed 11 years ago
#10482 closed bug (worksforme)
removeAttr method doesn't work in IE 8 quirks mode
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This seems to only affect quirks mode, so to reproduce:
- In IE 8, open the developer toolbar and change the document mode to Quirks.
- use the removeAttr() method on an element.
- Inspect element; Did it work?
My result was that removeAttr did not work in IE but worked in other browsers (Chrome, Firefox, Safari on both Windows and Mac OS)
Note: See
TracTickets for help on using
tickets.
I used this test case in quirks mode and it worked:
http://jsfiddle.net/UJXtw/
If you are attempting to remove DOM0 attributes such as
class
, *don't*. Set their corresponding properties to an appropriate value such as an empty string.