Closed Bug 170837 Opened 22 years ago Closed 18 years ago

Using typeaheadfind, Ctrl-G highlights next search but then jumps to top of section

Categories

(SeaMonkey :: Find In Page, defect, P5)

x86
Windows 2000

Tracking

(Not tracked)

RESOLVED WORKSFORME
Future

People

(Reporter: leo, Assigned: aaronlev)

References

()

Details

Attachments

(1 file, 1 obsolete file)

To reproduce, go to the reference URL, then in text search mode, type in
"words", then hit ctrl-G. There are 6 occurrences of "words" on the page, and
regular ctrl-F find finds them easily. But, when every time I hit ctrl-G, I
momentarily see the next match highlighted, then the web page rewinds to show
the section title. This holds true for every time when the "words" is the first
occurrence in the section. 

This happens to me with all builds I've tried, including 2002092508.
Blocks: isearch
With regular Ctrl+F, but checking "Wrap around", do you experience the same problem?
No, regular find with wrap around works fine. I hit Ctrl-F, enter words, then
keep clicking find and it goes through the 6 entries. At the bottom of the page,
it says "The text you entered was not found", but then I click OK, and find
again and it keeps going nicely.

Ah, but you see what you mean - when I cancel out of the ctrl-F box, and hit
ctrl-G, I observe the same behavior - except when I get to the bottom of the
page it doesn't wrap around and just gives the alert box.
Why does all the text get underlined on mouseover in Mozilla but not IE?
I have a feeling that has to do with some weird html, perhaps some <a> tags that
aren't closed or something.
Marking it P5/minor/Future until it's clear that this problem exists on more
than 1 website.
Severity: normal → minor
Priority: -- → P5
Target Milestone: --- → Future
I have no idea why the text gets underlined the way it does.

I didn't think that was related to the problem since if you go to the
"printer-friendly" link on top to get to:
http://216.127.88.11/tracing/on/index.php?printer=1
it doesn't do the weird underlining thing, but the find fails the exact same way.
hover problem is the <a name="header"><a name="header> on line 273.
http://validator.w3.org/check?uri=http%3A%2F%2F216.127.88.11%2Ftracing%2Fon%2F&doctype=HTML+4.01+Transitional

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021010
(i think this is the 1.2b release)
verify, moz1.2b winxp.

ctrl+f with wrap-around works in all manners ...except it does not wrap around.
by "titles" he means each anchor in the page (like <a name="black"></a> for example)
typeaheadfind does not wrap either.

note: the referenced page is currently channelled to a mirror,
http://216.127.88.11/tracing/on/
and bugzilla is best served by an attachment specifically designed to exhibit
the bug
(in this case that would entail a html doc with >2 pages of text and several
anchors.  there would be 'word' spread throughout the body.)
i could not recreate this bug in a test document.
i downloaded and fixed a few html/css errors (but not all), here it is.
(i can edit this later, right? need to run through validator...)

i was thinking the problem is due to html/css errors, trying to eliminate that
this should fix the problems with <a name="blah"> w/out end tags and/or in
illicit places.
Attachment #103719 - Attachment is obsolete: true
(sorry about all the emails)
i crashed mozilla twice testing this...
talkback id's are TB12913796M and TB12911743Y

and it looks like i failed to fix the 'Error: element "A" not allowed here'
validation problem (needs to be in a proper text wrapper like <p>...</p>)
i still think that's the culprit.
still happens in today's nightly, so confirming.

not sure this is a bug that needs fixing - Aaron's guess in comment 3 is
correct. the page has <a name=> tags which aren't closed, which results in
multiply nested <a> tags. it seems that type ahead find is jumping to what it
thinks is the beginning of the <a> tag which contains the searched term. if you
close all the <a> tags (HTMLTidy does it...), then it works as usual.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: Keyboard: Navigation → Keyboard: Find as you Type
I don't see a reproducable test case here anymore.

Is this bug still happening?
WFM Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
No specific bug / patch referenced as the fix.

-> WORKSFORME
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → WORKSFORME
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: