I'm migrating an old project to WebKit.NET 0.5 Cairo. Most roadblocks I've gotten past but I can't figure out how to get the HTML for an individual WebKit.DOM.Element object.
I can read the HTML of the entire document using WebKitBrowser.DocumentText, but that is not what I need.
Below is basically what I'm trying to accomplish. I've browsed through the docs and done a lot of searching and have come up empty on all fronts. I've found no way to accomplish the last line in the snippet.
WebKit.DOM.Element newdiv = webKitBrowser1.Document.CreateElement("DIV");
...
[ Create some SPAN's and append them to newdiv ]
...
String divHTML = newdiv.DocumentText // <-- DocumentText is not a member of WebKit.DOM.Element
With the IE control, I could just do divHTML = newdiv.InnerHTML, but can't find any equivalent to that for WebKit.NET.
As an alternative, I would accept a solution to inject HTML into an element such that I can manually add an IMG tag without creating a DOM element specifically for it. Using divHTML.TextContent, the html is interpreted as plain text.
Thanks in advance!