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

QCss::Parser does not handle spacing between «@charset» and following string.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6
    • 5.7.0
    • GUI: Text handling
    • None
    • 1753d696070895f309c46ba5aee662b0f3a18bde

    Description

      When including a CSS file in a HTML file sent to QTextDocument, and the CSS file starts with «@charset "UTF-8";», which is the correct way of declaring that, the parsing fails.

      If you omit the space, like «@charset"UTF-8";» the parsing succeeds, which is wrong.

      The bug is at line 2179 or so in src/gui/text/qcssparser.cpp, but I'm not sure what the correct way to get it to process the whitespace there is.

      Attachments

        For Gerrit Dashboard: QTBUG-54829
        # Subject Branch Project Status CR V

        Activity

          People

            sandsmark Martin Sandsmark
            sandsmark Martin Sandsmark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes