Which of these two: THtmlPort, TurboPower, is better rendering complex HTML files, with CSS included, etc?
Seems THtmlPort wiki page is big, so it is better/bigger maybe? TurboPower is not ok at rendeding my homepage w/o JS (cannot test 2nd yet).

Mailing lists / lazarus / 2017-07
7 messages · 5 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Which of these two: THtmlPort, TurboPower, is better rendering complex HTML files, with CSS included, etc?
Seems THtmlPort wiki page is big, so it is better/bigger maybe? TurboPower is not ok at rendeding my homepage w/o JS (cannot test 2nd yet).
In my Delphi times I had a few projects which used the original THtmlPort component (THtmlViewer), and this worked great. Later, I tried the Lazarus version in ccr, but it did not even compile, and it still does not today. There is a newer version on BerndGabriel's gitbub (https://github.com/BerndGabriel/HtmlViewer), it contains a Lazarus package, but it does not compile either (I did not investigate how difficult it is to fix this). The old Delphi version ignored JavaScript, I don't know whether this has changed in Bernd Garbriel's version, but I don't think so.
Then I switched to the TurboPower Ipro HTMLPanel. It was very buggy then, I could improved it to some degree, but it still has lots of issues (look at our LHelp viewer). It has some css support, but I would not expect too much. Certainly no support of JavaScript. It is good for small pages, such as for some more interesting renderuing of the acknowledgements on the About page of an application.
So, THtmlPort has more html features (and css too). Thanks. will try on test project too.
AlexeyT.
In my Delphi times I had a few projects which used the original THtmlPort component…
I also seen error on compile THtmlPort, and fixed it, posted fix to github, then Lazarus demo crashes in loading 35K HTML file. and doesn't show simpler html file.
Not ok code
AlexeyT
Chromium embedded would be the best HTML rendering option as of today. http://wiki.freepascal.org/fpCEF3
It would actually put a heavy toll on a size of any project, but it takes care of it all (html, js... whatever).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170705/38f00548/attachment.html>
Which of these two: THtmlPort, TurboPower, is better rendering complex HTML files, with…
Alexey wroteWhich of these two: THtmlPort, TurboPower, is better rendering complex HTML files, with CSS included, etc?
Those are the two main native HTML renderers, but both have their problems. My main complaint would be that neither uses the DOM internally, which makes extensions a bit difficult and DHTML almost impossible.
Depending on your platform target, Microsofts IE COMControl is actually pretty good. Or use the CEF, but that bloats your application by about 35MB...
AFAIK, we don't have anything as small and simple as a QWebView in Qt. I have a fairly complete concept for a completely CSS-based renderer flying around. "Only" a matter of actually writing it.
Martok wroteOr use the CEF, but that bloats your application by about 35MB...
I think more...
maybe 35mb back in the cef 1 days?
But now it is larger with cef3