Skip to main content

Bug Tracker

Side navigation

#9835 closed bug (invalid)

Opened July 15, 2011 03:01PM UTC

Closed July 30, 2011 07:48AM UTC

anchor link fails when linking to a page that includes jquery 1.6 +

Reported by: benlivermore Owned by: benlivermore
Priority: undecided Milestone:
Component: unfiled Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Browser: Mobile Safari, iOS 4

OS: iOS 4

Device: iPad 2

Steps to reproduce:

1. Create an html 5 page that has a paragraph tag with an id and is taller than the height of the viewport and include jquery 1.6 or higher within it.

<html lang="en">
	<meta charset="utf-8">
	<script type="text/javascript" src=""></script>

<p style="height:1024px;">Test out jquery anchor link bug</p>
<p id="test">This anchor should work</p>
<p style="height:1024px;">Test out jquery anchor link bug</p>


2. Link to this page via another html page's "test" anchor via the hash #test

<a href="anchorpage.html?#test">Test bug</a>

3. Now open up the page from step 2 in the ipad safari browser.

4. Click the link from step 2.

Expected: I should arrive at the page from step 2 and immediately anchor down to the middle paragraph with the id of "test"

Actual Result: I stay at the top of the page.

Note: this works in jquery 1.5 and 1.4.2 but no longer works in 1.6 +

Attachments (0)
Change History (2)

Changed July 15, 2011 05:09PM UTC by rwaldron comment:1

owner: → benlivermore
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, I've created this boilerplate: Open the link and click to "Fork" in the top menu.

Changed July 30, 2011 07:48AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!