Open Bug 1542277 Opened 6 years ago Updated 1 day ago

Inspector search discards pseudo selector nth-of-type

Categories

(DevTools :: Inspector, defect, P3)

66 Branch
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: progonkpa, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

  • Open developer mode F12
  • Navigate to Inspector tab
  • In the search field enter: h4:nth-of-type(2)

Actual results:

The element was not found.
The search field discarded the pseudo selector colon included. The search field is then H4.

Expected results:

The element should be found, it was found in Chrome.
The search field should not manipulate the user input.

Component: Untriaged → Inspector
Product: Firefox → DevTools

Typing or pasting in the selector won't do a selector match, but a text match instead. Same issue as in Bug 1327740.

To reproduce this issue, make sure to type the selector, and select the first option from the auto-suggest dropdown (note the selector is cut-off there).

After pressing enter to use the suggestion option, notice the selector is trimmed to drop the pseudo-class part.

Priority: -- → P3
See Also: → 1327740
Severity: normal → S3
Duplicate of this bug: 1574642
See Also: → 1871881
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: