Menu

"Current" HTML

Help
2009-12-04
2013-05-28
  • Steven Padfield

    Steven Padfield - 2009-12-04

    Is there any way to access the current HTML content of the control?  The DocumentText property only returns the original content and doesn't take into account changes made to the document by scripts on the page.

    I looked at the webView private field and didn't find anything that worked there.  I even attempted the following:

    webView.stringByEvaluatingJavaScriptFromString("document.documentElement.innerHTML")

    but it crashes the application (no exception, it just crashes straight to the O/S).

     
  • Stephan Unrau

    Stephan Unrau - 2013-02-15

    Yes this is exactly my problem.  With standard WebControl I GetElementById returns an HTMLElement that I can read the Current DOM HTML string from.

     

Log in to post a comment.