Implement Copy Selector feature

NEW
Unassigned

Status

Other Applications
DOM Inspector
--
enhancement
11 years ago
8 years ago

People

(Reporter: Jason Barnabe (np), Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
I think DOM Inspector should implement a Copy Selector feature. This would be a context menu item in the Document - DOM Nodes view that would copy to the clipboard various possible selectors for the selected element.

Possible selectors types:
-node name selector
-ID selector
-class selector
-"combined attribute" selector (ex: table[cellpadding=1][cellspacing=2])
-"positional" selector (ex: #foo > TABLE > TBODY > TR:first-child + TR)

Stylish 0.5 (https://addons.mozilla.org/firefox/2108/) adds this feature with the selector types listed above.

Comment 1

8 years ago
see also Bug 208500 - Copy XPath of Node in DOMInspector
You need to log in before you can comment on or make changes to this bug.