Skip to main content

Bug Tracker

Side navigation

#8591 closed bug (invalid)

Opened March 22, 2011 05:51PM UTC

Closed March 24, 2011 02:49PM UTC

Last modified March 25, 2011 01:49AM UTC

`$.get(undefined)` treated wholly differently than `$.ajax(undefined)`) in 1.5.1

Reported by: Már Örlygsson <> Owned by:
Priority: undecided Milestone:
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:

the way jQuery.get() handles undefined url values, has changed in version 1.5.1

Previously $.get(undefined) would be treated the same as $.get("")

Since 1.5.1 it's treated as $.get("undefined").

However, jQuery.ajax()'s treatment of undefined URLs is unchanged in 1.5.1 -- they're still resolved to "".

Attachments (0)
Change History (2)

Changed March 24, 2011 02:49PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

Garbage in, garbage out. The behavior of $.get(undefined) was never documented.

Changed March 25, 2011 01:49AM UTC by maranomynet comment:2

I still can't see why $.get and $.ajax should treat an input of undefined so differently.