When I search content in a xml file, not everything is found




13 years ago
8 years ago


(Reporter: craquerpro, Unassigned)


Firefox Tracking Flags

(Not tracked)


(Whiteboard: CLOSEME - 06/29, URL)



13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv: Gecko/20060111 Firefox/
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; es-ES; rv: Gecko/20060508 Firefox/

When searching in XML content, I only get results in tag names and attributes are found

Reproducible: Always

Steps to Reproduce:
1.Open an URL with XML content in the browser
2.Press Ctrl+F
3.Find some text

Actual Results:  
Finds only tag and attribute names.

In this xml fragment:

<mytag b="hello">hi</mytag>

I can find "mytag", "hello" but no "hi"

Expected Results:  
Find any kind of content, including text nodes.

Searching in the view source does work
This is wfm with:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20060728 Firefox/

I can see bug 263049, though.

Comment 2

12 years ago
I can confirm this behavior at

1. Go to http://fedoraproject.org/buildgroups/development/i386/buildroots.xml
2. C-f gettext
3. You see "Phrase not found", even though the phrase is on the page.

Firefox 2.0

Comment 3

12 years ago
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2007051502 Firefox/

This WFM.  Using the URL in comment #2, I can never get Firefox to the point where it allows you to search tags but not the content between the tags.  In fact, I can only reproduce, in certain situations, the opposite behavior (see bug 285594).

Reporter, can you verify whether you still see this specific problem in the latest release of Firefox when using a clean profile?

Whiteboard: CLOSEME - 06/29

Comment 4

12 years ago
WFM with
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070713 Firefox/

Comment 5

12 years ago
No response for five weeks, WFMs → resolving WORKSFORME.

Feel free to reopen in case it still happens with the latest Firefox and clean profile.
Last Resolved: 12 years ago
Resolution: --- → WORKSFORME

Comment 6

12 years ago
Latest versions of Firefox ( have improved the behavior, and finds also text.  

But still it doesn't work fully.  It searches well, but it searches from the last valid position, even for new search text.

Steps to reproduce:

1) Open this URL: http://peccatte.karefil.com/Software/MetadataXmpSample.xml
2) Find "Jane".  It is found ok
3) Click with the mouse a few lines later
4) Find "John", it isn't found, because in step we have set the current position to a line after where the match is located.

I think that the current position shouldn't be taken into account for new searches.
Resolution: WORKSFORME → ---
David, that's a separate bug (though probably a duplicate). Can you file a new bug report for your comment 6? The bug you filed in comment 0 here has been fixed or is at least working for you now.
Last Resolved: 12 years ago11 years ago
Resolution: --- → WORKSFORME


11 years ago
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.