Bug Tracker

Opened 11 years ago

Closed 11 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.

Change History (1)

comment:1 Changed 11 years ago by flesler

Resolution: duplicate
Status: newclosed

Duplicated of (fixed) #3053.

Note: See TracTickets for help on using tickets.