Skip to main content

Bug Tracker

Side navigation

#6938 closed bug (fixed)

Opened August 24, 2010 02:26PM UTC

Closed August 24, 2010 02:29PM UTC

Last modified December 03, 2010 08:42PM UTC

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.

Attachments (0)
Change History (3)

Changed August 24, 2010 02:29PM UTC by john comment:1

resolution: → fixed
status: newclosed

Changed December 03, 2010 01:04PM UTC by anonymous comment:2

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;

Changed December 03, 2010 08:42PM UTC by jitter comment:3

priority: → 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.