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

Issue 605559 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Searching HTML elements for <attribute>= does not return the correct results

Reported by dave...@gmail.com, Apr 21 2016

Issue description

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

Steps to reproduce the problem:
1. Navigate to http://www.cnet.com
2. Open DevTools to Elements tab
3. cmd+f or ctrl+f to search elements
4. Type in class= or content=
5. Observe low amount of results matching a string that should definitely be found in the source

What is the expected behavior?
Searching a string of text should find all strings that match what was typed.

What went wrong?
I assume what is going wrong is that typing in the equals sign (=) is causing the find engine to search as a selector or XPath and not as a string search.  Essentially nothing is being found when typing in class= 

Did this work before? N/A 

Chrome version: 49.0.2623.112  Channel: n/a
OS Version: OS X 10.10.5
Flash Version: Shockwave Flash 21.0 r0

I have confirmed with several other devs in my office.  Note that the find on "View Page Source" works as intended.
 
Your assumption is right, what you need to type is [class] or //*[@class]

Comment 2 by allada@chromium.org, Apr 25 2016

Owner: lushnikov@chromium.org
Status: Available (was: Unconfirmed)
Status: Assigned (was: Available)
Status: WontFix (was: Assigned)
Comment #1 gave a good explanation for the behavior.

Comment 5 by dave...@gmail.com, Dec 7 2017

It still seems busted to me that I can be looking at the raw html and see something like data-item="trigger" and then type that exact string into the search bar and turn up zero results.  Could there be some kind of fallback behavior if no results are found?

Sign in to add a comment