RESOLVED DUPLICATE of bug 86196 91713
Web Inspector: Elements: find by selector
https://bugs.webkit.org/show_bug.cgi?id=91713
Summary Web Inspector: Elements: find by selector
Randall Farmer
Reported 2012-07-18 22:53:10 PDT
When I type '#foo' in the Search Elements box, I get the results of a full-text search for #foo, and not the element with id="foo". I'm probably not the only one to try using selectors to search. There are lots of ways selector search could be tied in: The box could try feeding the search to querySelector before falling back to its current fulltext search if no results are found. It could choose between querySelector and fulltext search based on whether the search string "looks like" certain common kinds of selector (e.g., if it matches /^\w*[\.\#\[]\w+/). It could always yield both fulltext search results and any selector matches. Or there could be some distinct UI for searching by selector: a keystroke+additional toolbar like the one for "search all scripts", or a UI that temporarily puts a selector search box where the breadcrumb bar is now (maybe prepopulated with a selector based on any highlighted element). I don't know the first thing about how it should be done, of course, just noting interest in doing it any way at all.
Attachments
Pavel Feldman
Comment 1 2012-07-19 00:29:08 PDT
*** This bug has been marked as a duplicate of bug 86196 ***
Note You need to log in before you can comment on or make changes to this bug.