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.
Attachments (0)
Change History (4)
Changed November 10, 2011 03:06PM UTC by comment:1
owner: | → anonymous |
---|---|
status: | new → pending |
Changed November 10, 2011 03:30PM UTC by comment:2
status: | pending → new |
---|
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 comment:3
resolution: | → duplicate |
---|---|
status: | new → closed |
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?