Search code examples
c#htmlvisual-studio-2015xulrunnergeckofx

xulrunner, C#: how to change html?


I moved my project to custom WebBrowser and I choose XULRunner. I am use XULRunner 33 and GeckoFX 33. So, I adding it in project and initialize it.

In my program I use custom html scenaries, but how I can change html? WebBrowser example is: webBrowser1.DocumentText = "html code here"; But XULRunner have only Document (read only), DocumentTitle, DomDocument (also), Text (doesn't affect) and I can't use it to change html. How it is possible?


Solution

  • The Geckofx 33 have the LoadHtml method instead of the DocumentText. So, for example:

    geckoWebBrowser.LoadHtml("html code here", "url of a page here");