LINQPad raw html script works in LINQPad 5 but not working in LINQPad 7
Script:
<Query Kind="Statements">
<NuGetReference>FSharp.Core</NuGetReference>
<NuGetReference>XPlot.GoogleCharts</NuGetReference>
<NuGetReference>XPlot.Plotly</NuGetReference>
<Namespace>Microsoft.FSharp.Core</Namespace>
<Namespace>static XPlot.GoogleCharts.Configuration</Namespace>
<Namespace>XPlot.GoogleCharts</Namespace>
</Query>
var rnd = new Random();
var data = Enumerable.Range(0, 700).Select(x => Tuple.Create(new DateTime(2019, 1, 1).AddDays(x), rnd.Next(5)));
string html = Chart.Calendar(data, FSharpOption<IEnumerable<string>>.None, FSharpOption<Options>.None)
.GetHtml();
Util.RawHtml(html).Dump();
Expected result (using LINQPad 5):
Actually result (in LINQPad 7):
nothing
Likely caused by difference by WebView2 rendering engine and Internet Explorer.
Comments
-
You're trying to dump a complete HTML document inside another HTML document.
Have you considered an iFrame?
var iframe = new LINQPad.Controls.Control ("iframe"); iframe.Styles ["width"] = "100%"; iframe.Styles ["height"] = "80vh"; iframe.HtmlElement ["srcdoc"] = html; iframe.Dump(); -
Thank you!
