Closed
Bug 328878
Opened 19 years ago
Closed 6 years ago
Clipboard commands on nodes should work between DOM Inspector windows
Categories
(Other Applications :: DOM Inspector, enhancement)
Other Applications
DOM Inspector
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: jason.barnabe, Unassigned)
References
Details
DOM Inspector provides the ability to copy, cut, and paste attributes, elements, and the like to different parts of the inspected document. Because of the way this is currently implemented (stored as variables instead of using the system clipboard), you can't copy or cut from one Inspector window and paste to another.
We should allow clipboard commands between DOM Inspector widnows.
Comment 1•19 years ago
|
||
Whew, that's a tall order. The issue I have with this is cross-document DOM operations. I honestly don't know what sort of support Mozilla's codebase has for that...
Reporter | ||
Comment 2•19 years ago
|
||
You can already do cross-document DOM operations by copying a node, inspecting a new document in the same domi window, and pasting.
![]() |
||
Comment 3•19 years ago
|
||
Note that moving a node from one document to another should throw per DOM spec. It doesn't in Gecko, but we really need to fix that. Just keep that in mind as you work on this.
Comment 4•19 years ago
|
||
Per comment 3, I recommend WONTFIXing this bug. It's far likelier a user will have one Inspector window per document; thus, if two Inspector windows are open, they're likely pointing to different documents.
bz: just out of curiousity, what about Document::ImportNode? That's DOM Level 2, and I've never fully understood it. If we correctly support that, I'd not be so quick to WONTFIX this bug.
![]() |
||
Comment 5•19 years ago
|
||
Current trunk builds have correct support for ImportNode.
Reporter | ||
Comment 6•19 years ago
|
||
The current inspector code for pasting attributes just creates new a new attribute on the target document with the same nodeName and nodeValue. The code for pasting anything from the left side is indeed inserting the source document's node.
this seems like a perfectly reasonable enhancement request, albeit understandably technically challenging.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•18 years ago
|
Assignee: dom-inspector → nobody
QA Contact: timeless → dom-inspector
Comment 9•6 years ago
|
||
Bulk close. This component is no longer supported or maintained.
https://bugzilla.mozilla.org/show_bug.cgi?id=1499023
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Comment 10•6 years ago
|
||
Bulk close. This component is no longer supported or maintained.
https://bugzilla.mozilla.org/show_bug.cgi?id=1499023
You need to log in
before you can comment on or make changes to this bug.
Description
•