Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#10749 closed bug (duplicate)

.text(null) breaks chaining

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:


Calling text on an element with null as the argument breaks chaining. See: http://jsfiddle.net/GGSNE/1/

Change History (4)

comment:1 Changed 11 years ago by dmethvin

Owner: set to anonymous
Status: newpending

I'm not a Javascript engine, admittedly, but null doesn't look like a string to me so it seems like it's inappropriate to pass there. What would be your desired outcome?

comment:2 Changed 11 years ago by anonymous

Status: pendingnew

I only came across this as I was adding numerical data to a table. In the data null is used to indicate no value. I'm not sure what should happen in terms of actually setting the text. I guess either nothing at all, or the same as passing undefined or an empty string. My problem was that it unexpected broke chaining.

comment:3 Changed 11 years ago by Rick Waldron

Resolution: duplicate
Status: newclosed

comment:4 Changed 11 years ago by Rick Waldron

Duplicate of #9427.

Note: See TracTickets for help on using tickets.