After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 128905 - 'Find' featuredoes NOT find all matching text
'Find' featuredoes NOT find all matching text
Status: RESOLVED FIXED
Product: yelp
Classification: Applications
Component: General
git master
Other Linux
: Normal major
: ---
Assigned To: Shaun McCance
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2003-12-09 16:42 UTC by Chee Bin HOH
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch file for bug #128905 and #128784 (10.73 KB, patch)
2003-12-12 14:15 UTC, Chee Bin HOH
committed Details | Review

Description Chee Bin HOH 2003-12-09 16:42:17 UTC
Description:

The 'Find' feature does NOT enable users to find all matching text on a
page.  click on 'Next' button on the 'Find' dialog box, or select
'Edit'->'Find again (Ctrl+G)' will skip certain matching text on the html page.

Steps to reproduce:

0) open yelp,
1) load a page (with a few paragraphs , more)
2) use 'Find' feature to find common text, like 'The'.
3) click on the 'NExt' button on the 'Find' dialog box.

Results:
Certain 'The' on the page are skipped, without highlighting.

Expected Results:
Click on 'NExt' or 'Ctrl+G' will find next matching characters on the page.

Possible Caused:

yelp_html_find in yelp-html-gtkhtml2.c.

a parsed html doc is a linked list of nodes which has children, and
HtmlBoxText is also linked list of chunk of text box, so we need to
traverse through the next or children of each htmlbox we get from a node.
Comment 1 Chee Bin HOH 2003-12-12 14:15:36 UTC
Created attachment 22370 [details] [review]
patch file for bug #128905 and #128784
Comment 2 Chee Bin HOH 2003-12-12 14:22:05 UTC
Fix bug #128784:

0) invokes html_clear_find_data inside yelp_html_clear
1) invokes html_selection_clear inside yelp_clear_find_data

Change 0) will make sure that whenever a new page is loading, we clear
existing DomNode and DomNodeIterator that use for searching through
the old html page.

Change 1) will clear text selected.


Fix bug #128905:

Rewrite yelp_html_find with full searching through the html page for
matching text, change to _YelpHtmlPriv too.

Comment 3 Shaun McCance 2003-12-12 23:51:15 UTC
I think there's still a problem here, but I've committed this because
it's clearly an improvement.  I'm going to leave this bug open until
I'm certain.
Comment 4 Luis Villa 2004-01-02 22:52:45 UTC
Upping this to major- a search function that doesn't work is pretty 
seriously broken for a help browser :/
Comment 5 Don Scorgie 2004-10-12 16:34:39 UTC
Hi,

I cannot reproduce this in Yelp 2.6.2 or HEAD, so I'm closing this.

If you are still experiencing this problem with Yelp (2.6 onwards) please reopen
this bug.

Thanks