New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 592001 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit 29 days ago
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

DevTools: Elements search does not count duplicates properly within script tags

Reported by turig...@gmail.com, Mar 4 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Steps to reproduce the problem:
1. Right Click > Inspect (open inspector window)
2. Select Elements Tab 
3. Click ctrl +f to try and find something

What is the expected behavior?
To find that thing :)

What went wrong?
I did not find that thing please see screenshot.

Did this work before? No 

Chrome version: 48.0.2564.116  Channel: stable
OS Version: OS X 10.9.4
Flash Version: Shockwave Flash 20.0 r0

The screenshot shows 3 yellow highlighted words

While in the find box you will only get 2 showing. 

Actually that source code contains 4 occurrences of selected_payment string but the fourth is not on the screen shot. 

Now if I try and use the up and down arrows next to the search box it appears that all those three which are highlighted treated as one.
 
Screen Shot 2016-03-04 at 15.17.47.png
496 KB View Download

Comment 1 by turig...@gmail.com, Mar 4 2016

Sorry I messed up the title it meant to say "CTRL + F search on Elements"
Labels: Needs-Feedback
Summary: CTRL + F search on Elements (was: CTRL + F search on )
Unable to replicate on V 50.0.2657.0. Trying many different combinations of things they all come to the right count on any page I've tried.

Is there a specific page where this problem happens? Is it reproducible among many sites you visit?
Cc: jonathan.garbee@chromium.org

Comment 4 by turig...@gmail.com, Mar 4 2016

It is a common thing for me that the search box does not find occurrence of
 a string I know for sure are there. So it will not be limited to this page
only.

In fact here is a link to page I made up just now.
http://testing.gallowaywildfoods.com/newEmptyPHP.php

1. Right click inspect.
2. Click element tab.
3. ctrl +f
4. begin to type selected
5. result will show 1 yet see source has many.

See another screenshot.

On 4 March 2016 at 15:43, jonathan.garbee@chromium.org via Monorail <
monorail@chromium.org> wrote:

Comment 5 by turig...@gmail.com, Mar 4 2016

was not included in mail so here is screenshot
Screen Shot 2016-03-04 at 16.09.39.png
67.2 KB View Download

Comment 6 by turig...@gmail.com, Mar 4 2016

This is another screenshot to show what happens after i reload the page and try and click on the arrows next the search box
Screen Shot 2016-03-04 at 16.14.37.png
79.4 KB View Download
Labels: -Needs-Feedback
Status: Untriaged (was: Unconfirmed)
Summary: DevTools: Elements search does not count duplicates properly within script tags (was: CTRL + F search on Elements)
Reload is a known thing. iirc the search happens as you type and isn't initiated on load itself based on existing input.

Ah, so looks like the bug is specific to searching within *script* tags.

So, Elements find filter is not counting all the finds within inline scripts properly. This should be looked at and addressed.

Thanks for the bug report and providing a quick simple demonstration.

Comment 8 by caseq@chromium.org, Mar 14 2016

Cc: caseq@chromium.org
Components: -Platform>DevTools Platform>DevTools>HTML
Owner: lushnikov@chromium.org
Status: Assigned (was: Untriaged)
Confirmed -- multiple matches within one element are counted as one (not specific to scripts tag, though).
Labels: Hotlist-Polish
Labels: -Pri-2 Pri-3
Status: WontFix (was: Assigned)
Closing as WontFix due to lack priority / resources.

Sign in to add a comment