Ticket #9476 (closed bug: invalid)
Calling jQuery("html")[0].removeAttribute throws exception in IE <9
| Reported by: | rwaldron | Owned by: | rwaldron |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | data | Version: | 1.6.1 |
| Keywords: | Cc: | jdalton | |
| Blocking: | Blocked by: |
Description
As reported on twitter:
Change History
comment:1 Changed 2 years ago by rwaldron
- Owner set to rwaldron
- Priority changed from undecided to low
- Status changed from new to assigned
- Component changed from unfiled to support
comment:2 Changed 2 years ago by rwaldron
See also: https://gist.github.com/1001726
comment:3 Changed 2 years ago by rwaldron
- Cc jdalton added
- Component changed from support to data
Initially I assumed this would be straight forward, however attempts at writing a failing test ( based on Line 6-7 of the gist provided by Angus Croll [ here: https://gist.github.com/1001726 ]) are unsuccessful.
This test case produced by jdalton was also unsuccessful in reproducing the issue. https://dl.dropbox.com/u/513327/jq_removeAttribute.html
Verification of approach is appreciated, here is the current test I've written:
comment:4 Changed 2 years ago by timmywil
This is a common enough problem, I don't think we need a working test case for it. IE calls the function even when accessed. This often works anyway, but it's best practice to check with typeof or do "removeAttribute" in elem (I prefer the latter).
comment:5 Changed 2 years ago by anonymous
I don't think it's a common enough problem. I am pretty well versed on IE bugs and this one I am not familiar with. Without a working (failing) test case I would simply consider this dev error in diagnosing the problem.
comment:6 Changed 2 years ago by jdalton
I forgot to login. The previous comment was mine :P
However I do use an isHostType() function to help avoid these kinda of errors in IE for known problem properties and unknown properties.
comment:7 Changed 21 months ago by dmethvin
- Status changed from assigned to closed
- Resolution set to invalid
Lacking a test case, I'm going to close this bug. Twitter is not a good way to report bugs, and his suggested fix of checking for typeof==function doesn't work in IE anyway, as I'm sure we all know.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
