Bug Tracker

Changes between Initial Version and Version 1 of Ticket #9833


Ignore:
Timestamp:
Jul 15, 2011, 6:51:15 AM (11 years ago)
Author:
mathias
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9833

    • Property Cc addyosmani added
    • Property Status changed from new to open
    • Property Component changed from unfiled to attributes
  • Ticket #9833 – Description

    initial v1  
    55
    66Test case: http://jsfiddle.net/mathias/Vc9ap/ tests `$(el).prop('maxlength')`, `$(el).prop('maxLength')`, and `el.maxlength`.
    7 It should say `42,42,undefined`.
    8 IE8: undefined,undefined,42
    9 IE9: undefined,undefined,undefined (WTF)
    10 IE10 (and others) gets it right.
    117
    12 In my code, I’m using something like `el.maxLength || el.maxlength || el.getAttribute('maxlength')` now.
     8It should say `42,42,undefined`. Results:
     9
     10* IE8: undefined,undefined,42
     11* IE9: undefined,undefined,undefined (WTF)
     12* IE10 and others get it right.
     13
     14In my code, I’m using something like `el.maxLength || el.maxlength || el.getAttribute('maxlength')` now. It seems jQuery should do the same.