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

QTextBrowser loose HTML tags contents.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11.1
    • GUI: Text handling
    • None
    • Linux/X11

    Description

      Hello,

      When I setHtml in QTextBrowser with some <a name="Named"> tags with text, if I retrieve html from cursor selection, text get outside of anchor.

      Like this <a name="T1">Text</a> becomes <a name="T1"><a/>Text.

      Look that all plays here:

      [https://code.woboq.org/qt5/qtbase/src/gui/text/qtextdocument.cpp.html#_ZN17QTextHtmlExporter12emitFragmentERK13QTextFragment|QTextHtmlExporter::emitFragment]

      Why close anchor before adding text?

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            phenom RetroShare Phenom
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes