Brian -- I'm actually just trying to use window.getSelection() on a tab that has a view-source: displayed so that raw HTML can be posted through a form in a Chrome extension's popup window.
I have it working for 'normal' window / tab displays but getSelection () returns nothing on view-source: tabs. I'm basically just building a variation of one of the samples: http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/email_this_page/ The same issue I'm trying to fix holds true in the sample (a selection from view-source won't get passed to the email via that sample extension). Paul On Jan 9, 6:53 pm, Brian Kennish <bkenn...@chromium.org> wrote: > On Sat, Jan 9, 2010 at 1:10 PM, Brian Kennish <bkenn...@chromium.org> wrote: > > But getting the original HTML from "view-source:" pages won't be > > trivial because they're heavily marked up for syntax highlighting. > > Well, I'd say jQuery makes doing so kind of easy anyway: > "$('html').text()". Even their implementation is pretty compact.
-- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.