Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#7202 closed bug (fixed)

$(location).attr('href', hrefString) not working in jquery.latest

Reported by: stephenrichter@… Owned by:
Priority: high Milestone: 1.5
Component: attributes Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:


was using jquery-latest.min.ms in my code.

<script type="text/javascript"


this morning, $(location).attr('href', someHrefString ) was not working for me like it did yesterday. I changed my code to use jquery 1.4.2 from googleapis and the code worked again.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"


Change History (5)

comment:1 Changed 6 years ago by john

  • Component changed from unfiled to attributes
  • Resolution set to wontfix
  • Status changed from new to closed

You shouldn't use .attr() on non-DOM elements. You can just do: window.location.href = hrefstring;

comment:2 Changed 6 years ago by john

  • Milestone 1.4.4 deleted
  • Resolution wontfix deleted
  • Status changed from closed to reopened

comment:3 Changed 6 years ago by john

  • Milestone set to 1.4.5
  • Priority changed from undecided to high
  • Resolution set to fixed
  • Status changed from reopened to closed

Welp, we ended up fixing this anyway: https://github.com/jquery/jquery/pull/92

comment:4 Changed 6 years ago by anonymous

with html5 everthing will be a dom element

comment:5 Changed 6 years ago by jitter

  • Milestone changed from 1.4.5 to 1.5

Move fixed tickets to appropriate milestone

Note: See TracTickets for help on using tickets.