Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1486

QTextBroswer doesn't display XML string correctly when <!DOCTYPE> is present

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.12.2
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      I tried to use QTextBrowser to display file contents as strings. 

      Most of these files I am working with are xmls, users are able to choose them from their directory. 

       

      In case the xml file contains in the beginning of any line: <!DOCTYPE>

      The tags will not appear in the browser area, only the element values are listed one after another. 

      I'll upload a dummy file to test with. (tst1.xml)

       

        Attachments

        1. file_content.PNG
          file_content.PNG
          3 kB
        2. pyside1486.py
          0.7 kB
        3. textbrowser.PNG
          textbrowser.PNG
          0.7 kB
        4. tst1.xml
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            scharlotten Anna Semjen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes