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

wrong HTML parsing in QTextBrowser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.0
    • GUI: Text handling
    • None

      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.

        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.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes