Closed Bug 206404 Opened 23 years ago Closed 21 years ago

Grep feature for HTML pages

Categories

(SeaMonkey :: UI Design, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: malx, Assigned: jag+mozilla)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 Just imagine long page with price list or text. And you need to find all about some item. Ok you run "Find in page" and got all instances, but you can't compare them :( It whould be just great to "grep" all page for some "keyword" and get (same page or new window) a page with only <tr></tr>,<li> and <p></p> containing that keyword. Interface could be "Location[ grep: keyword ]" It is possible it could be implemented as bookmarklet (JS bookmark)... Could any one try? Reproducible: Always Steps to Reproduce:
*** This bug has been marked as a duplicate of 32641 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
I do not think it is duplicate of that bug. That one mostly about "regexp" and at most "list of found word". My is about "grep"-ing (grep result contains _all string_ with the keyword). Reopening bug
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Well, grep is implemented with the regular expressions library (regex). The rest is just a matter of presentation. (see also bug 122061)
Presentation is essential here. Regexp is not. I whould be happy if it will search strict "keyword" even without case-insentivity (no regexp), but it should present page the way I have desribed. I should not be "list box". I should be HTML page. Just an example. :) Here is a page (long page actually): http://www.freebsd.org/ports/www.html I whould like to grep it for "PHP" and get HTML page with only PHP packages descriptions included. That means (see source) only thouse <dd></dd> with PHP word inside. BTW. regexp will not help here - they work with lines, but here is HTML with anpredictable line-separation. DOM will be of more help here.
Product: Core → Mozilla Application Suite
-> wontfix This would be great as extension but this shouldn`t be in Mozilla itself because only a few people need this.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago → 21 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.