Skip to main content

Bug Tracker

Side navigation

#10749 closed bug (duplicate)

Opened November 10, 2011 03:01PM UTC

Closed November 10, 2011 03:42PM UTC

Last modified November 10, 2011 03:42PM UTC

.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:
Description

Calling text on an element with null as the argument breaks chaining.

See: http://jsfiddle.net/GGSNE/1/

Attachments (0)
Change History (4)

Changed November 10, 2011 03:06PM UTC by dmethvin comment:1

owner: → 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?

Changed November 10, 2011 03:30PM UTC by anonymous comment:2

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.

Changed November 10, 2011 03:42PM UTC by rwaldron comment:3

resolution: → duplicate
status: newclosed

Changed November 10, 2011 03:42PM UTC by rwaldron comment:4

Duplicate of #9427.