Open Bug 1327740 Opened 8 years ago Updated 1 day ago

Inspector "Search HTML" finds ::before pseudoelements as text, but not by selector

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: arni2033, Unassigned)

References

(Blocks 2 open bugs)

Details

>>> My Info: Win7_64, Nightly 49, 32bit, ID 20160526082509 STR_1: 1. Open url data:text/html,<style>body:before{content:"z"} 2. Open devtools -> inspector 3. Type "::before" in search field "Search HTML", press Enter AR: Inspector finds ::before pseudoelement. "There's no "::before" in HTML, so it must be selector" STR_2: 1. Open url data:text/html,<style>body:before{content:"z"} 2. Open devtools -> inspector 3. Type "body::before" in search field "Search HTML", press Enter AR: Inspector doesn't find anything ER: Either X or Y. X is better X) Inspector should search for "body::before" as selector Y) Inspector shouldn't find "::before" to avoid confusion, just like GoogleChrome does
Component: Untriaged → Developer Tools: Animation Inspector
No longer blocks: 1277113
Component: Developer Tools: Animation Inspector → Developer Tools: Inspector
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P3
Product: Firefox → DevTools
See Also: → 1542277
Severity: normal → S3

Note that this would require dedicated work, as the markup search will use querySelectorAll(query) to get matching nodes, and pseudo elements can be retrieved that way

See Also: → 1097991
You need to log in before you can comment on or make changes to this bug.