getAttribute('size') should begin to let me debug this