Bug Tracker

Modify

Ticket #3492 (closed bug: duplicate)

Opened 5 years ago

Last modified 5 years ago

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

comment:1 Changed 5 years ago by flesler

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicated of (fixed) #3053.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.