Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set CSS style of already parsed elements is not yet supported #383

Open
GoogleCodeExporter opened this issue Aug 12, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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
  • Changed state: Accepted
  • Added labels: Milestone-Release12.0, Priority-Low

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Thanks for the assessment of this issue. Then we have to help ourselves in 
another way.

Original comment by [email protected] on 14 Nov 2014 at 5:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant