You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which version of the product are you using? Which compiler version are you
using? On which operating system?
r487, C++Builder XE4, Win 7
Please attach test html files and screenshots, if appropriate.
Please provide any additional information:
<html>
<head></head>
<body>
<table border='0' align='center'>
<tr>
<td id='t123'>Hello world!</td>
</tr>
</table>
<style type="text/css">
#t123 { border: 2px solid red; }
</style>
</body>
</html>
In a current web browser you will see a red rectangle around the text "Hello
world!". In HTMLViewer you will see no rectangle.
Original issue reported on code.google.com by [email protected] on 29 Oct 2014 at 4:29
The text was updated successfully, but these errors were encountered:
Dear Mr. Kunz,
it is not that HtmlViewer does not supports styles via ID, but it assigns the
styles while parsing the source. As the style is set after the table it is not
recognized.
In the source:
<html>
<head></head>
<body>
<table border='0' align='center'>
<tr>
<td id='t123'>Hello world!</td>
</tr>
</table>
<style type="text/css">
#t123 { border: 2px solid red; }
</style>
<table border='0' align='center'>
<tr>
<td id='t123'>Hello world!</td>
</tr>
</table>
</body>
</html>
the second table is rendered with the border.
Because of this basical weakness it is almost impossible to fix this issue in
the current HtmlViewer.
Original comment by OrphanCat on 7 Nov 2014 at 9:32
Changed title: Set CSS style of already parsed elements is not yet supported
Original issue reported on code.google.com by
[email protected]
on 29 Oct 2014 at 4:29The text was updated successfully, but these errors were encountered: