Bug 26961 - need an api to extract the html content from the document
Summary: need an api to extract the html content from the document
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-03 21:59 PDT by damaru+webkit.bugzilla
Modified: 2010-05-31 10:57 PDT (History)
2 users (show)

See Also:


Attachments
implements webkit_web_frame_get_html (1.31 KB, patch)
2009-07-03 22:01 PDT, damaru+webkit.bugzilla
no flags Details | Formatted Diff | Diff
moved the content to webkitwebframe.* (1.18 KB, patch)
2009-07-04 23:59 PDT, damaru+webkit.bugzilla
no flags Details | Formatted Diff | Diff
implements webkit_web_frame_get_html (1.17 KB, patch)
2009-07-05 00:02 PDT, damaru+webkit.bugzilla
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description damaru+webkit.bugzilla 2009-07-03 21:59:24 PDT
We have the gtk webkit_web_view_set_editable api to make the web view editable. But there is no api to get the modified content. I am attaching a patch to enable extraction of HTML from the document.
Comment 1 damaru+webkit.bugzilla 2009-07-03 22:01:02 PDT
Created attachment 32251 [details]
implements webkit_web_frame_get_html
Comment 2 Jan Alonzo 2009-07-04 14:16:12 PDT
(In reply to comment #1)
> Created an attachment (id=32251) [details]
> implements webkit_web_frame_get_html

Hi! Where is this used and why is it in webkitprivate.h?h
Comment 3 damaru+webkit.bugzilla 2009-07-04 20:41:43 PDT
I have put it in webkitprivate.h since it is similar in function to webkit_web_frame_get_inner_text which is also in webkitprivate.h.

Also, webkitprivate was the only header that I found had extern "C" - and I needed this api for my C based project.
Comment 4 Jan Alonzo 2009-07-04 22:05:26 PDT
(In reply to comment #3)
> I have put it in webkitprivate.h since it is similar in function to
> webkit_web_frame_get_inner_text which is also in webkitprivate.h.
> 
> Also, webkitprivate was the only header that I found had extern "C" - and I
> needed this api for my C based project.

Ok. I think you might want to put this in webkitwebframe.h for it to be an API. webkitprivate.h is currently being used for SPIs, which atm only DRT being the consumer.
Comment 5 damaru+webkit.bugzilla 2009-07-04 23:59:19 PDT
Created attachment 32269 [details]
moved the content to webkitwebframe.*

ok. i have moved the code to webkitwebframe.h
Comment 6 damaru+webkit.bugzilla 2009-07-05 00:02:30 PDT
Created attachment 32270 [details]
implements webkit_web_frame_get_html

fixed the comment
Comment 7 Gustavo Noronha (kov) 2010-05-31 10:57:38 PDT
I believe the data source API has provided a solution to this problem.