This project is archived and is in readonly mode.

#1203 ✓resolved
mattcoz

Element.getProperty returning null when the value is an empty string

Reported by mattcoz | March 21st, 2011 @ 06:58 PM | in 1.4.0 (closed)

http://jsfiddle.net/mattcoz/ggvuT/

The problem is this line:

(key = this.getAttributeNode(attribute)) ? key.nodeValue : null) || null;

The "|| null" at the end is what's causing it to return null instead of the actual value.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages