DevTools: Elements search does not count duplicates properly within script tags
Reported by
turig...@gmail.com,
Mar 4 2016
|
||||||||
Issue descriptionUserAgent: 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.
,
Mar 4 2016
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?
,
Mar 4 2016
,
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:
,
Mar 4 2016
was not included in mail so here is screenshot
,
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
,
Mar 4 2016
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.
,
Mar 14 2016
Confirmed -- multiple matches within one element are counted as one (not specific to scripts tag, though).
,
Dec 9 2016
,
Dec 5 2017
,
Dec 20 2017
Closing as WontFix due to lack priority / resources. |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by turig...@gmail.com
, Mar 4 2016