[Webkit-unassigned] [Bug 31238] Web Inspector: Inspector should support copy() in the command line

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 8 20:32:17 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31238





--- Comment #4 from Keishi Hattori <casey.hattori at gmail.com>  2009-11-08 20:32:16 PDT ---
(In reply to comment #3)
> (From update of attachment 42713 [details])
> What you should do instead is:
> - Introduce copyText in InspectorBackend.(idl, h, cpp). Just mimic copyNode
> there and pass text instead of node id.
> - Implement it as Pasteboard::generalPasteboard()->writePlainText(text); (see
> copyNode again)
> - Make a simple call to it from your new copy API method.
> 
> We could be even more cleaver here and copy markup in case selected object is
> node (make an instanceof check under copy and choose between copyText and
> copyNode to call). [object HTMLElement] is not too informative otherwise…

I was able to get the copyText method working. I wanted to use copyNode for
nodes but I couldn't figure out how to get the node id from a node?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list