Closed Bug 705932 Opened 14 years ago Closed 14 years ago

Inspector should allow copying the current element's id/classes

Categories

(DevTools :: Inspector, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 11

People

(Reporter: pedro.alves, Assigned: paul)

Details

Attachments

(2 files)

Use case: I'm finding the elements I want to style with the inspector. I want to copy the selected element's id and class to my CSS code. The inspector doesn't allow me to do that and I need to manually type them Would be great to have the ability either to select the text or copy it to the clipboard somehow
Attached patch patch v1 — — Splinter Review
Assignee: nobody → paul
Status: NEW → ASSIGNED
Attachment #577515 - Flags: feedback?(jwalker)
Comment on attachment 577515 [details] [diff] [review] patch v1 Review of attachment 577515 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/base/content/highlighter.css @@ +69,5 @@ > + > +#highlighter-nodeinfobar-id, > +.highlighter-nodeinfobar-class, > +#highlighter-nodeinfobar-tagname { > + -moz-user-select: text; My understanding is that this is the default. I can't see anywhere else in highlighter.css where moz-user-select would be set to something else, but I'll assume this is needed?
Attachment #577515 - Flags: feedback?(jwalker) → feedback+
(In reply to Joe Walker from comment #2) > Comment on attachment 577515 [details] [diff] [review] [diff] [details] [review] > patch v1 > > Review of attachment 577515 [details] [diff] [review] [diff] [details] [review]: > ----------------------------------------------------------------- > > ::: browser/base/content/highlighter.css > @@ +69,5 @@ > > + > > +#highlighter-nodeinfobar-id, > > +.highlighter-nodeinfobar-class, > > +#highlighter-nodeinfobar-tagname { > > + -moz-user-select: text; > > My understanding is that this is the default. Not in XUL: http://mxr.mozilla.org/mozilla-central/source/toolkit/content/xul.css#15
Attachment #577515 - Flags: review?(dao)
(In reply to Paul Rouget [:paul] from comment #3) > (In reply to Joe Walker from comment #2) > > > + -moz-user-select: text; > > > > My understanding is that this is the default. > > Not in XUL: > http://mxr.mozilla.org/mozilla-central/source/toolkit/content/xul.css#15 Duh - I didn't think that this might be XUL. Thanks.
Comment on attachment 577515 [details] [diff] [review] patch v1 >+#highlighter-nodeinfobar-container[locked] #highlighter-nodeinfobar { #highlighter-nodeinfobar-container[locked] > #highlighter-nodeinfobar {
Attachment #577515 - Flags: review?(dao) → review+
OS: Mac OS X → All
Hardware: x86 → All
Version: 11 Branch → Trunk
Severity: normal → enhancement
Whiteboard: [land-in-fx-team]
Comment 5 needs to be addressed.
Whiteboard: [land-in-fx-team]
Sorry, I missed it.
Attached patch patch v1.1 — — Splinter Review
Addressed Dao's comment.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 11
Dunno if it's a regression or I just never tested it, but I can select the test (in OSX) but not copy to clipboard
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Working in tonight's build, thanks!
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
This happens again (can't copy).
Any idea of what going on here? See bug 722398?
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: