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.
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.