Opened 14 years ago
Closed 14 years ago
#3492 closed bug (duplicate)
$(selector).html(0) Does not work when given the number 0 (zero)
Reported by: | w1234cj | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | core | Version: | 1.2.6 |
Keywords: | html .html | Cc: | |
Blocked by: | Blocking: |
Description
When using .html, it doesn't handle the int 0 correctly as an argument. It handles other ints, just not 0.
Browsers Tested: Firefox/3.0.3
Code: $('div').html(0)
Expected Result: All divs have the innerHTML of "0".
Actual Result: All divs have an empty innerHTML.
Note: See
TracTickets for help on using
tickets.
Duplicated of (fixed) #3053.