Author | Topic: Another HRF bug | |
---|---|---|
Thomas Braun | Another HRF bug on Wed, 25 Aug 2010 11:39:19 +0200 Hi, it seems as if the handling of <span> tags (at least inside tables) is messed up. Unfortunately I do not have the time right now to build a comprehensive sample, so I just have this. Consider a html text template with the following markup: <table> <tr> <td> <span id="test"> <p>some Paragraph</p> </span> </td> </tr> </table> Now I create a table element from this: oTable := HtmlTableElement():New(,,, cTemplateText ) But the actual content of the table object looks different: cText := oTable:ToHtml() The <span> is completely moved to the beginning of the <td> cell, this is what cText looks like: <table> <tr> <td> <span id="test"></span> <p>some Paragraph</p> </td> </tr> </table> Thomas | |
Andreas Herdt | Re: Another HRF bug on Tue, 31 Aug 2010 10:36:29 +0200 Hi Thomas, I have opened PDR 6320 in order to cover the defect: http://www.alaska-software.com/scripts/waa001.dll?WAA_PACKAGE=PUBLICDTS&WAA_FORM=DISPLAYPDR&PDRID=6320 Thank's for reporting this. Am 25.08.2010 11:39, schrieb Thomas Braun: > Hi, > > it seems as if the handling of<span> tags (at least inside tables) is > messed up. > > Unfortunately I do not have the time right now to build a comprehensive > sample, so I just have this. > > Consider a html text template with the following markup: > > <table> > <tr> > <td> > <span id="test"> > <p>some Paragraph</p> > </span> > </td> > </tr> > </table> > > Now I create a table element from this: > > oTable := HtmlTableElement():New(,,, cTemplateText ) > > But the actual content of the table object looks different: > > cText := oTable:ToHtml() > > The<span> is completely moved to the beginning of the<td> cell, this is > what cText looks like: > > <table> > <tr> > <td> > <span id="test"></span> > <p>some Paragraph</p> > </td> > </tr> > </table> > > Thomas Andreas Herdt Alaska Software -------------------------------------------------------------------- Technical Support: support@alaska-software.com News Server: news.alaska-software.com Homepage: http://www.alaska-software.com WebKnowledgeBase: http://www.alaska-software.com/kbase.shtm Fax European Office: +49 (0) 61 96 - 77 99 99 23 Fax US Office: +1 (646) 218 1281 -------------------------------------------------------------------- | |
Pascal Boivin | Re: Another HRF bug on Tue, 31 Aug 2010 10:03:45 -0400 This PDR look funny trough a web browser! | |
Thomas Braun | Re: Another HRF bug on Wed, 01 Sep 2010 10:17:49 +0200 Pascal Boivin wrote: > This PDR look funny trough a web browser! Yes - it basically is useless since the HTML tags are not encoded. The PDR web frontend must encode HTML specific characters in the description text like "<", ">" for example as < and > - otherwise they are treated as html tags instead. Thomas | |
Andreas Herdt | Re: Another HRF bug on Wed, 01 Sep 2010 11:13:04 +0200 Hi, Indeed, the PDR looks funny. Beside of that, the description becomes completely useless. I have followed Thomas' suggestion. Now the PDR makes more sense. Thank you. Am 01.09.2010 10:17, schrieb Thomas Braun: > Pascal Boivin wrote: > >> This PDR look funny trough a web browser! > > Yes - it basically is useless since the HTML tags are not encoded. > > The PDR web frontend must encode HTML specific characters in the > description text like "<",">" for example as< and> - otherwise > they are treated as html tags instead. > > Thomas Andreas Herdt Alaska Software -------------------------------------------------------------------- Technical Support: support@alaska-software.com News Server: news.alaska-software.com Homepage: http://www.alaska-software.com WebKnowledgeBase: http://www.alaska-software.com/kbase.shtm Fax European Office: +49 (0) 61 96 - 77 99 99 23 Fax US Office: +1 (646) 218 1281 -------------------------------------------------------------------- | |
Thomas Braun | Re: Another HRF bug on Wed, 01 Sep 2010 13:21:05 +0200 Andreas Herdt wrote: > Indeed, the PDR looks funny. Beside of that, the description becomes > completely useless. I have followed Thomas' suggestion. Now the PDR > makes more sense. Nice - and fast - thanks! Thomas |