Open
Bug 302976
Opened 19 years ago
Updated 2 years ago
Named anchors don't work in documents created with document.write
Categories
(Core :: DOM: Navigation, defect)
Core
DOM: Navigation
Tracking
()
NEW
People
(Reporter: julien.lecomte, Unassigned)
Details
(Keywords: testcase)
Attachments
(2 files)
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Look at the attached test case. Tested using Firefox 1.0.6 and Deer Park Alpha 2. Reproducible: Always
| Reporter | ||
Comment 1•19 years ago
|
||
Just click on the 'test' button, and then click on the link within the IFRAME. Try the same operation in IE.
| Reporter | ||
Comment 2•19 years ago
|
||
If I set the src attribute of the IFRAME to an HTML document with such an anchor, it works well.
| Reporter | ||
Comment 4•19 years ago
|
||
It might be related to bug 116680, but bug 116680 does not appear to have been fixed, at least not in Firefox 1.0.6.
| Reporter | ||
Comment 5•19 years ago
|
||
Changing product. Firefox 1.5 Beta 2 still has this problem...
Component: DOM: Level 0 → General
Product: Core → Firefox
Version: Trunk → 1.5 Branch
Comment 6•19 years ago
|
||
still reproducible in (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051215 Firefox/1.6a1 ...
Comment 7•19 years ago
|
||
Confirmed using Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060222 Firefox/1.6a1
Assignee: general → adamlock
Status: UNCONFIRMED → NEW
Component: General → Embedding: Docshell
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Core
QA Contact: ian → adamlock
Hardware: PC → All
Summary: Anchor within same document in IFRAME when content of IFRAME written using document.write does not work → Named anchors don't work in documents created with document.write
Version: 1.5.0.x Branch → Trunk
Comment 8•19 years ago
|
||
Updated•15 years ago
|
Assignee: adamlock → nobody
QA Contact: adamlock → docshell
Comment 9•12 years ago
|
||
I hate to bump a really old bug but, uh, this still isn't fixed. The first test case demonstrates it. Tested in 16.0.1 and 17.0 on OS X Mountain Lion, and 16.0.2 on Windows 7. Bumping this after investigating this issue: https://github.com/remy/jsbin/issues/397
Comment 10•12 years ago
|
||
Seeing this in Zimbra as well. Problematic for HTML emails that have anchor links.
One place to start debugging might be nsDocShell::ScrollToAnchor (docshell/base/nsDocShell.cpp), the things it calls, and the things that call it. (See whether it's hit when expected, etc.) Another place to start debugging might be that there's some dependency on the document URI being an instance of nsIURL, and in this case it might be only an nsIURI and not an nsIURL. (That shouldn't be a factor even if it is the case, though.)
Comment 12•11 years ago
|
||
Additional workaround if someone needs it - I describe one here: https://github.com/remy/jsbin/issues/589 It is a bit of a pain to implement, but the only workaround I have found so far.
Comment 13•5 years ago
|
||
I can't reproduce this with Firefox 66.0.1 on Linux. Could it be that this was fixed?
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•