WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
33736
Inspector: Allow selection and copy of element panel contents
https://bugs.webkit.org/show_bug.cgi?id=33736
Summary
Inspector: Allow selection and copy of element panel contents
Daniel Bates
Reported
2010-01-15 13:52:46 PST
We should allow selection and copying of the markup content in the elements panel. Unlike View Source, the elements panel is capable of showing the hierarchy of programmatically generated DOM elements. When debugging a JavaScript application that generates such elements, it would be beneficial be able to copy such markup of the structure. Also, we should be able to right click on a particular node and be able to either copy that the markup for that node or copy the markup for that node and its children.
Attachments
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2010-01-15 13:58:29 PST
> We should allow selection and copying of the markup content in > the elements panel.
That should already be possible. The copy shortcut copies the element's outerHTML, which includes both the element and its contents.
> Also, we should be able to right click on a particular node and be > able to either copy that the markup for that node or copy the markup > for that node and its children.
This should also be possible. "Copy as HTML" shows up in my right click menu. Am I overlooking something?
Timothy Hatcher
Comment 2
2010-01-15 14:00:19 PST
You can already copy a node and its contents. Select it and Command - C. The context menu option "Copy as HTML" works too. As far as arbitrary text selection, this is something we don't want to do. We want this to be tree hierarchy and need node level selection so the sidebar can reflect properties about that selected node. Text selection does not work with this outline list model.
Daniel Bates
Comment 3
2010-01-15 14:19:46 PST
There is no such "Copy as HTML" when I right click on a node using Windows Safari 4.0.4. And neither selecting "copy" from the contextual menu nor Cntrl-C works (nothing is copied). I tried to grab the last nightly, but for some reason the executable in the nightly does not work for me. That is, it opens Safari 4.0.4 but not with the latest WebKit. So, I will need to wait until I get home to test.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug