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)
DevTools
Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 11
People
(Reporter: pedro.alves, Assigned: paul)
Details
Attachments
(2 files)
|
4.20 KB,
patch
|
dao
:
review+
jwalker
:
feedback+
|
Details | Diff | Splinter Review |
|
4.20 KB,
patch
|
Details | Diff | Splinter Review |
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
| Assignee | ||
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
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+
| Assignee | ||
Comment 3•14 years ago
|
||
(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
| Assignee | ||
Updated•14 years ago
|
Attachment #577515 -
Flags: review?(dao)
Comment 4•14 years ago
|
||
(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 5•14 years ago
|
||
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+
Updated•14 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Version: 11 Branch → Trunk
Updated•14 years ago
|
Severity: normal → enhancement
| Assignee | ||
Updated•14 years ago
|
Whiteboard: [land-in-fx-team]
| Assignee | ||
Comment 7•14 years ago
|
||
Sorry, I missed it.
| Assignee | ||
Comment 8•14 years ago
|
||
Addressed Dao's comment.
Comment 9•14 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 10•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 11
| Reporter | ||
Comment 11•14 years ago
|
||
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 → ---
| Reporter | ||
Comment 12•14 years ago
|
||
Working in tonight's build, thanks!
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 13•14 years ago
|
||
This happens again (can't copy).
| Assignee | ||
Comment 14•14 years ago
|
||
Any idea of what going on here? See bug 722398?
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•