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

wrong HTML parsing in QTextBrowser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Incomplete
    • Affects Version/s: 4.7.0
    • Fix Version/s: None
    • Component/s: GUI: Text handling
    • Labels:
      None

      Description

      Function QTextBrowser::setSource() don't parse HTML file correctly to determine HTML encoding.

      The problem is in long comments and possible "unknown" meta names in <head> section.

      Original file (bad.html) have problem with NON-ASCII text. After removing large comments and 2 lines:

      <meta name="distribution" content="global">
      <meta name="Generator" content="texi2html 1.82">

      the file (good.html) can be viewed normally.

        Attachments

        1. bad.html
          2 kB
        2. good.html
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              abalakin Alexey Balakin
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes