Bug Tracker

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6938 closed bug (fixed)

Blackberry 4.7: .attr("missing") returns ""

Reported by: john Owned by:
Priority: undecided Milestone: 1.4.3
Component: attributes Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:


Should return undefined.

Change History (3)

comment:1 Changed 5 years ago by john

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 5 years ago by anonymous

This fix is not really a fix This will fix the problem...

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

comment:3 Changed 5 years ago by jitter

  • Priority set to undecided

Please add more information and or a test case if you think the fix for this bug report is incomplete instead of just posting a piece of code with no explanation at all.

Note: See TracTickets for help on using tickets.