Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8591 closed bug (invalid)

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

Reported by: Már Örlygsson <[email protected]…> Owned by:
Priority: undecided Milestone: 1.next
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 "".

Change History (2)

comment:1 Changed 12 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

comment:2 Changed 12 years ago by maranomynet

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

Note: See TracTickets for help on using tickets.