Side navigation
#7582 closed bug (duplicate)
Opened November 20, 2010 04:03PM UTC
Closed November 28, 2010 05:41PM UTC
Last modified March 13, 2012 07:58PM UTC
a.setAttribute is not a function
| Reported by: | anonymous | Owned by: | anonymous |
|---|---|---|---|
| Priority: | low | Milestone: | 1.5 |
| Component: | attributes | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
Erreur : a.setAttribute is not a function
Fichier Source : jquery-1.4.4.min.js
Ligne : 55
works fine with 1.4.3
Attachments (0)
Change History (6)
Changed November 20, 2010 04:59PM UTC by comment:1
| owner: | → anonymous |
|---|---|
| status: | new → pending |
Changed November 20, 2010 06:28PM UTC by comment:2
| component: | unfiled → attributes |
|---|---|
| priority: | undecided → low |
I'm going to bet that this is a duplicate of #7500
Changed November 23, 2010 10:58AM UTC by comment:3
same here http://bugs.jquery.com/ticket/7607
Changed November 28, 2010 05:41PM UTC by comment:4
Changed December 03, 2010 01:05PM UTC by comment:6
This could fix it...
// Ensure that missing attributes return undefined
// Blackberry 4.7 returns "" from getAttribute #6938
if (elem.attributes == null ||!elem.attributes[ name ] && (elem.hasAttribute && !elem.hasAttribute( name )) ) {
return undefined;
}
Thanks for taking the time to contribute to the jQuery project by writing a bug report!
Please submit a reduced test case, which reproduces the issue you are experiencing, on http://jsfiddle.net. So that we can investigate this issue further.
How to report bugs