Closed
Bug 341781
Opened 19 years ago
Closed 14 years ago
Copying an attribute from a text editor doesn't paste into the DOM Inspector
Categories
(Other Applications :: DOM Inspector, enhancement)
Other Applications
DOM Inspector
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 328878
People
(Reporter: sdwilsh, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 LNSE/1.0.0 RTSE/1.1.0a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4 LNSE/1.0.0 RTSE/1.1.0a1
Trying to copy an attribute like href="https://bugzilla.mozilla.org/" from a text editor (or anywhere for that matter) doesn't paste into the DOM Inspector as an attribute.
Reproducible: Always
Steps to Reproduce:
1. Select this text: href="https://bugzilla.mozilla.org/"
2. Copy it.
3. Try to paste it as an attribute to a node in the DOM Inspector
Actual Results:
Nothing happens
Expected Results:
A new attribute is created from the text.
This is originally from Bug 341256 Comment 27.
Comment 1•19 years ago
|
||
As I mentionned in bug 341256 comment 27, the problem in doing this is that inspector has to know whether to read from the real system clipboard or the fake one it uses to store nodes.
So for example, I copy an attribute in inspector
System clipboard: String - foo="bar"
Inspector clipboard: DOM Attribute Node (foo="bar")
Then I copy the string baz="nih" from a text editor.
System clipboard: String - baz="nih"
Inspector clipboard: DOM Attribute Node (foo="bar")
Then I go and try to paste an attribute into the inspector, should it paste foo="bar" or baz="nih"?
The ideal solution is bug 328870, which would let us put the node itself on the system clipboard.
Until then, perhaps inspector should maintain an internal copy of what it put on the system clipboard, and if that value != the value currently in the system clipboard, assume someone has put something new on the clipboard and use the system clipboard rather than the internal one?
Depends on: 328870
Updated•18 years ago
|
Assignee: dom-inspector → nobody
QA Contact: timeless → dom-inspector
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•14 years ago
|
||
(In reply to comment #1)
> So for example, I copy an attribute in inspector
...
> Then I copy the string baz="nih" from a text editor.
>
> System clipboard: String - baz="nih"
> Inspector clipboard: DOM Attribute Node (foo="bar")
>
> Then I go and try to paste an attribute into the inspector, should it paste
> foo="bar" or baz="nih"?
The latter.
This is bug 328878 by another name; that bug may as well be "DOM Inspector shouldn't use a fake clipboard".
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•