Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98045

QTextDocument: CSS comments are not completely ignored, a html tag there will mess up view

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2
    • GUI: Text handling
    • None

    Description

      I have a CSS sheet embedded in my HTML that contains some html tags in the comments, e.g.

      /*<td> table data cells related to .item*/

      This should be ignored by QTextDocument parser, but isn't and results in a garbled content shown by the widget. 

       

      FYI, using QTextBrowser, specifically, and setting the HTML with setHtml()

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            wrobelda Dawid Wrobel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes