Bug Tracker

Modify

Ticket #7582 (closed bug: duplicate)

Opened 3 years ago

Last modified 14 months ago

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:
Blocking: Blocked by:

Description

Erreur : a.setAttribute is not a function Fichier Source : jquery-1.4.4.min.js Ligne : 55

works fine with 1.4.3

Change History

comment:1 Changed 3 years ago by jitter

  • Owner set to anonymous
  • Status changed from new to pending

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

comment:2 Changed 3 years ago by rwaldron

  • Priority changed from undecided to low
  • Component changed from unfiled to attributes

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

comment:3 Changed 2 years ago by sasfater@…

comment:4 Changed 2 years ago by addyosmani

  • Status changed from pending to closed
  • Resolution set to duplicate

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

comment:5 Changed 2 years ago by addyosmani

Duplicate of #7607.

comment:6 Changed 2 years ago by anonymous

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;
        }

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.