hramenko / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

HtmlId and GlobalId both empty #395

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which steps will reproduce the problem?
1. ShowMessage(ASectionBase.TagClass + ' - ' + ASectionBase.Id);
2. Example given in attachments

What is the expected output?

p - pid
span - spanid

What do you see instead?

p - spanid
span - 

Which version of the product are you using? Which compiler version are you
using? On which operating system?

THTMLViewer 11.5
Delphi 2007 (11.0.2902.10471)
Windows 7

Please attach test html files and screenshots, if appropriate.
Please provide any additional information:

Original issue reported on code.google.com by initest...@gmail.com on 10 Feb 2015 at 5:52

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for spotting this issue.

Original comment by OrphanCat on 17 Feb 2015 at 9:15

GoogleCodeExporter commented 9 years ago
commit 
https://github.com/BerndGabriel/HtmlViewer/commit/bc29d9765e9be01bf4e7b17cfb3412
2e3b404011 fixes this issue.

Please notice that because of the 'optimized' representation of inline tags 
there is only 1 TSection for all consecutive inline tags. This sections gets 
class and name of the first tag that is part of it. In some cases sections are 
created 'in advance'. Those sections may have no class and id at all. 

Original comment by OrphanCat on 17 Jun 2015 at 8:04