Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
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.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Duplicated of (fixed) #3053.