Skip to main content

Bug Tracker

Side navigation

#3492 closed bug (duplicate)

Opened October 17, 2008 10:24PM UTC

Closed October 18, 2008 08:23PM UTC

$(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:

When using .html, it doesn't handle the int 0 correctly as an argument. It handles other ints, just not 0.

Browsers Tested:


Code: $('div').html(0)

Expected Result:

All divs have the innerHTML of "0".

Actual Result:

All divs have an empty innerHTML.

Attachments (0)
Change History (1)

Changed October 18, 2008 08:23PM UTC by flesler comment:1

resolution: → duplicate
status: newclosed

Duplicated of (fixed) #3053.