Skip to main content

Bug Tracker

Side navigation

#7607 closed bug (duplicate)

Opened November 23, 2010 10:54AM UTC

Closed November 23, 2010 12:09PM UTC

Last modified March 13, 2012 08:26PM UTC

$(window.location).attr('href', 'foo');

Reported by: sasfater@freemail.hu Owned by:
Priority: undecided Milestone: 1.5
Component: attributes Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

I use this with jquery 1.4.2. and it was ok.

After upgrading 1.4.4 it says: a.setAttribute is not a function

Attachments (0)
Change History (2)

Changed November 23, 2010 12:09PM UTC by jitter comment:1

_comment0: Thanks for taking the time to contribute to the jQuery project by writing a bug report! But why do you even use `.attr()` on a non DOM element? It's easier and faster to do `window.location.href = foo`. \ \ The next time please also submit a reduced test case along, which reproduces the issue you are experiencing (on http://jsfiddle.net). So that we can more easily investigate your issue further. \ \ Btw. did you try searching the bug tracker for similar tickets, because you should have found [http://bugs.jquery.com/ticket/7500 #7500]. If/When that bugs gets fixed this should all be happily working again. In the mean time just use `window.location.href = foo`1290514200267744
_comment1: Thanks for taking the time to contribute to the jQuery project by writing a bug report! But why do you even use `.attr()` on a non DOM element? It's easier and faster to do `window.location.href = foo`. \ \ The next time please also submit a reduced test case along, which reproduces the issue you are experiencing (on http://jsfiddle.net). So that we can more easily investigate your issue further. \ \ Btw. did you try searching the bug tracker for similar tickets, because you should have found [http://bugs.jquery.com/ticket/7500 #7500].\\\\ If/When that bugs gets fixed this should all be happily working again. In the mean time just use `window.location.href = foo`1290514931918173
component: unfiledattributes
resolution: → duplicate
status: newclosed

Thanks for taking the time to contribute to the jQuery project by writing a bug report! But why do you even use .attr() on a non DOM element? It's easier and faster to do window.location.href = foo.

The next time please also submit a reduced test case along, which reproduces the issue you are experiencing (on http://jsfiddle.net). So that we can more easily investigate your issue further.

Btw. did you try searching the bug tracker for similar tickets, because you should have found #7500 and #7605 or one of the other many duplicates of #7500.\\\\ If/When that bugs gets fixed this should all be happily working again. In the mean time just use window.location.href = foo

Changed November 28, 2010 05:41PM UTC by addyosmani comment:2

#7582 is a duplicate of this ticket.