Markup search autocomplete suggestions are sorted based on number of matching elements in page, can lead to issues
Categories
(DevTools :: Inspector, defect, P2)
Tracking
(firefox-esr115 wontfix, firefox-esr128 wontfix, firefox139 wontfix, firefox140 fixed)
People
(Reporter: arni2033, Assigned: nchevobbe)
References
(Blocks 2 open bugs)
Details
(Keywords: regression, regressionwindow-wanted)
Attachments
(1 file)
Updated•7 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Comment 2•5 months ago
|
||
(In reply to arni2033 from comment #0)
My Info: Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:
- Open url data:text/html,<div class="menu"><a class="menu_item"></a><a
class="menu_item"></a>- Open inspector
- Type ".menu" in search field in inspector
- Press Enter
AR: Inspector replaces typed text with autocomplete suggestion ".menu_item"
ER: Inspector should find first occurrence of ".menu"
The search results are ordered based on the number of matching elements, which leads to the situation that is described here.
It seems that it is this way since the server search function was added (when autocomplete was added to style editor)
This can be confusing, and I'm not sure it brings a lot of benefits here?
Note: (STR_3)
Most of the times I doubleclick classname in markup to edit it, then
doubleclick to select one of
classes like "long-class-name" separated by " "s, then focus search field,
type ".", press Ctrl+V,
then press Enter. Too often classname is copied with " " in the end, so I
run into this bug.
looks slightly something that should be handled in Bug 1327153
Assignee | ||
Comment 3•5 months ago
|
||
The suggestions were sorted by the number of element matching the item, which could
be confusing and get in the way of the user when they wanted to search for the
least used version.
We now sort the suggestions by "type" (id, class, tag, …), and then, within those
groups, alphabetically.
Updated•5 months ago
|
Assignee | ||
Updated•5 months ago
|
Comment 5•4 months ago
|
||
bugherder |
Updated•4 months ago
|
Updated•4 months ago
|
Description
•