diff options
Diffstat (limited to 'WebCore/inspector/front-end/InjectedScript.js')
-rw-r--r-- | WebCore/inspector/front-end/InjectedScript.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/WebCore/inspector/front-end/InjectedScript.js b/WebCore/inspector/front-end/InjectedScript.js index 106668f..fb6b796 100644 --- a/WebCore/inspector/front-end/InjectedScript.js +++ b/WebCore/inspector/front-end/InjectedScript.js @@ -700,11 +700,9 @@ CommandLineAPI.prototype = { copy: function(object) { - if (injectedScript._type(object) === "node") { - var nodeId = InjectedScriptHost.pushNodePathToFrontend(object, false, false); - InjectedScriptHost.copyNode(nodeId); - } else - InjectedScriptHost.copyText(object); + if (injectedScript._type(object) === "node") + object = object.outerHTML; + InjectedScriptHost.copyText(object); }, clear: function() |