Skip to main content

Bug Tracker

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 jitter comment:1

owner: → anonymous
status: newpending

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

Changed November 20, 2010 06:28PM UTC by rwaldron comment:2

component: unfiledattributes
priority: undecidedlow

I'm going to bet that this is a duplicate of #7500

Changed November 23, 2010 10:58AM UTC by sasfater@freemail.hu comment:3

Changed November 28, 2010 05:41PM UTC by addyosmani comment:4

resolution: → duplicate
status: pendingclosed

Closing as a duplicate of #7500 and #7607, both of which were related to the known attributes bug.

Changed November 28, 2010 05:41PM UTC by addyosmani comment:5

Duplicate of #7607.

Changed December 03, 2010 01:05PM UTC by anonymous 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;
        }