Closed Bug 328878 Opened 18 years ago Closed 6 years ago

Clipboard commands on nodes should work between DOM Inspector windows

Categories

(Other Applications :: DOM Inspector, enhancement)

enhancement
Not set
normal

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.
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...
You can already do cross-document DOM operations by copying a node, inspecting a new document in the same domi window, and pasting.
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.
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.
Current trunk builds have correct support for ImportNode.
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
Assignee: dom-inspector → nobody
QA Contact: timeless → dom-inspector
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
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.