ThtmlPort Component not working properly on FPC 3.0. lazarus / 31-LCL ---------------------------------------------------------------------- toplek · 2016-05-27 07:34 Hi, I have just upgraded Lazarus from FPC 2.6.4 to 3.0, the component ThtmlPort is compiling properly but some below tags are not interpreter properly: -   - - etc. do you have an idea how to fix the problem ? br Piort Polok ---------------------------------------------------------------------- bulrush · 2016-06-06 19:44 That's not valid HTML. The HTML would be: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i blah ---------------------------------------------------------------------- lainz · 2016-06-06 22:16 Don't rely too much on that component, maybe your code works outside it. Better use other web browser solution. ---------------------------------------------------------------------- wp · 2016-06-06 22:48 Did you try the TurboPower IPro browser (TIpHtmlPanel). It comes with Lazarus which uses it to display the HTML-formatted popup hints. It does have some bugs of its own, but it can handle the font attributes event with the unquoted color value (I just tested it). ---------------------------------------------------------------------- Phil · 2016-06-07 00:38 Quote from: toplek on May 27, 2016, 09:34:46 amI have just upgraded Lazarus from FPC 2.6.4 to 3.0, the component ThtmlPort is compiling properly but some below tags are not interpreter properly: I assume you're using this package: http://wiki.lazarus.freepascal.org/THtmlPort If so, the bugs you report have probably always been there; I doubt if upgrading FPC made any difference. It appears from the wiki page that there's another port of David Baldwin's original components. Are you (or anyone else) familiar with it? I did the original port to Lazarus (THtmlPort), but never used it since it never felt like something that would be usable in production code in the 21st century. I'm not familiar with the other port at all. Perhaps it works better in Lazarus. Certainly one of the biggest limitations of LCL is that it doesn't have a decent Web browser control that supports the current HTML spec, CSS, and JavaScript. When I wanted to create a demo for my GIS article that used a browser control, I had to resort to creating a Mac-only version in Swift to get what I wanted. (Articles: https://dl.dropboxusercontent.com/u/28343282/MacXPlatform/P ascalDynLibs.html) (Screenshot of what I mean by a real Web browser control in action:  h ttps://dl.dropboxusercontent.com/u/28343282/MacXPlatform/SwiftCast.jpg ) -Phil