hasOwnProperty doesn't work properly in FF on the text attribute